`biblatex-nature` で `intitle` を使用して章のタイトルを表示するとエラーが発生する

`biblatex-nature` で `intitle` を使用して章のタイトルを表示するとエラーが発生する

私はbiblatex-nature論文の参考文献の書式設定に使用していますが、これまでのところすべて順調に進んでいます。ただし、@incollection参考文献の章タイトルを表示したいのですが、デフォルトでは表示されません。biblatex パッケージ呼び出しにオプションを追加するとintitleこれが可能になるという提案を他の場所で見つけたのですが、これを実行しようとするとエラーが発生します! Package keyval Error: intitle undefined.

ここで何が間違っているのか、または参考文献に章のタイトルを含める別の方法を提案してくださる方はいらっしゃいますか?

私の MWE ファイルは次のとおりです:

@collection{hsu2015pathogen,
  title={Pathogen-Host Interactions: Antigenic Variation V. Somatic Adaptations},
  author={Hsu, Ellen and Du Pasquier, Louis},
  volume={57},
  year={2015},
  publisher={Springer}
}

@incollection{jack2015evolution,
    series = {Results and {Problems} in {Cell} {Differentiation}},
    title = {Evolution of {Immunity} and {Pathogens}},
    indextitle = {Evolution of {Immunity} and {Pathogens}},
    url = {https://doi.org/10.1007/978-3-319-20819-0_1},
    urldate = {2019-02-27},
    booktitle = {Pathogen-{Host} {Interactions}: {Antigenic} {Variation} v. {Somatic} {Adaptations}},
    publisher = {Springer},
    author = {Jack, Robert S.},
    editor = {Hsu, Ellen and Du Pasquier, Louis},
    year = {2015},
    doi = {10.1007/978-3-319-20819-0_1},
    pages = {1--20}
}
\documentclass{article}

\RequirePackage[backend=biber, citestyle=numeric-comp, style=nature,
  sorting=none, natbib=true, maxnames=3, minnames=1, url=false,
  giveninits=true, sortcites=true, date=year,
  doi=false,isbn=false,intitle=false]{biblatex}

\bibliography{mwe}

\begin{document}
\parencite{jack2015evolution} is a chapter in \parencite{hsu2015pathogen}.

\printbibliography[heading=bibintoc, title={References}]
\end{document}

答え1

このオプションは、v1.2i/v1.3 (2016-10-23)intitleで追加されました。MWE は、3.12、Biber 2.12、v1.3c で完全に更新されたシステムで正常に動作します。エラーが発生する場合は、バージョンが古すぎることが原因です。可能であれば、TeX ディストリビューション全体を更新してください。biblatex-naturebiblatexbiblatex-naturebiblatex-nature

権限が制限されている職場のコンピュータやOverleafを使用しているためにそれが不可能な場合は、最も安全な方法は、次のようにドライバを書き換えることです。https://github.com/josephwright/biblatex-nature/commit/0a58f60bb385e8f8c383d156434470649840dc99

\documentclass{article}

\RequirePackage[backend=biber, style=nature,
  maxnames=3, minnames=1, url=false,
  giveninits=true, sortcites=true, date=year,
  doi=false, isbn=false]{biblatex}

\providetoggle{bbx:intitle}
\toggletrue{bbx:intitle}

\DeclareBibliographyDriver{inbook}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \iftoggle{bbx:intitle}
    {%
      \usebibmacro{title}%
      \newblock
    }
    {}%
  \usebibmacro{in:}%
  \usebibmacro{bybookauthor}%
  \setunit*{\newunitpunct}\newblock
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \newunit\newblock
  \usebibmacro{related}%
  \usebibmacro{finentry}%
}

\DeclareBibliographyDriver{incollection}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \iftoggle{bbx:intitle}
    {%
      \usebibmacro{title}%
      \newblock
    }
    {}%
  \usebibmacro{in:}%
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \newunit\newblock
  \usebibmacro{related}%
  \usebibmacro{finentry}%
}


\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@collection{hsu2015pathogen,
  title={Pathogen-Host Interactions: Antigenic Variation V. Somatic Adaptations},
  author={Hsu, Ellen and Du Pasquier, Louis},
  volume={57},
  year={2015},
  publisher={Springer}
}

@incollection{jack2015evolution,
    series = {Results and {Problems} in {Cell} {Differentiation}},
    title = {Evolution of {Immunity} and {Pathogens}},
    indextitle = {Evolution of {Immunity} and {Pathogens}},
    url = {https://doi.org/10.1007/978-3-319-20819-0_1},
    urldate = {2019-02-27},
    booktitle = {Pathogen-{Host} {Interactions}: {Antigenic} {Variation} v. {Somatic} {Adaptations}},
    publisher = {Springer},
    author = {Jack, Robert S.},
    editor = {Hsu, Ellen and Du Pasquier, Louis},
    year = {2015},
    doi = {10.1007/978-3-319-20819-0_1},
    pages = {1--20}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
\parencite{jack2015evolution} is a chapter in \parencite{hsu2015pathogen}.

\printbibliography[heading=bibintoc]
\end{document}

あるいは、安全性は劣るかもしれませんが、biblatex-natureCTAN (https://ctan.org/pkg/biblatex-nature) をクリックし、nature.bbxと をファイルnature.cbxの横にドロップします.tex。これによりバージョンの競合が発生する可能性がありますが、正常に動作する場合は、基本的に の更新バージョンが作成されることになりますbiblatex-nature

ところで、 には@collection通常著者がいません。@incollectionは の恩恵を受けることができるcrossrefので、エントリは次のようになります。

@collection{hsu2015pathogen,
  title     = {Pathogen-Host Interactions: Antigenic Variation v. Somatic Adaptations},
  editor    = {Hsu, Ellen and Du Pasquier, Louis},
  series    = {Results and Problems in Cell Differentiation},
  number    = {57},
  year      = {2015},
  publisher = {Springer},
}
@incollection{jack2015evolution,
  title      = {Evolution of Immunity and Pathogens},
  author     = {Jack, Robert S.},
  doi        = {10.1007/978-3-319-20819-0_1},
  pages      = {1--20},
  crossref   = {hsu2015pathogen},
}

残念ながら、出力は期待通りではありませんでしたが、それがNatureの意図したものなのか、それともスタイルのバグなのかはわかりません。出力をNatureのガイドラインに照らし合わせて再確認し、バグとして報告していただければ幸いです。https://github.com/josephwright/biblatex-nature見た目が正しくない場合は、お知らせください。

関連情報