
Ich verwende es, biblatex-nature
um die Bibliographie für meine Abschlussarbeit zu formatieren, und bisher läuft alles gut, außer dass ich möchte, dass Kapitelüberschriften für @incollection
Referenzen angezeigt werden, was standardmäßig nicht der Fall ist. Ich habe anderswo Vorschläge gefunden, dass das Hinzufügen der Option intitle
zum Biblatex-Paketaufruf dies bewirken könnte, aber wenn ich das versuche, erhalte ich eine ! Package keyval Error: intitle undefined.
Fehlermeldung.
Kann mir jemand sagen, was hier schief läuft, oder mir eine alternative Möglichkeit nennen, die Kapitelüberschriften in meine Referenzen aufzunehmen?
Hier sind meine MWE-Dateien:
@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}
Antwort1
Die Option intitle
wurde in biblatex-nature
v1.2i/v1.3 (23.10.2016) hinzugefügt. MWE funktioniert auf meinem vollständig aktualisierten System mit biblatex
3.12, Biber 2.12 und biblatex-nature
v1.3c einwandfrei. Wenn Sie eine Fehlermeldung erhalten, liegt das wahrscheinlich daran, dass Ihre Version biblatex-nature
zu alt ist. Aktualisieren Sie nach Möglichkeit Ihre gesamte TeX-Distribution.
Wenn das nicht möglich ist, weil Sie einen Arbeitsrechner mit eingeschränkten Rechten oder Overleaf verwenden, ist der sicherste Weg, den Treiber analog zuhttps://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}
Alternativ, aber möglicherweise weniger sicher, können Sie die aktuelle Version von biblatex-nature
von CTAN beziehen (https://ctan.org/pkg/biblatex-nature) und legen Sie nature.bbx
und nature.cbx
neben Ihrer .tex
Datei ab. Dies könnte zu Versionskonflikten führen, würde aber bedeuten, dass Sie im Wesentlichen eine aktualisierte Version von hätten, biblatex-nature
wenn es funktioniert.
Übrigens: @collection
s haben normalerweise keinen Autor und @incollection
s können von profitieren crossref
, also würde ich die Einträge so aussehen lassen
@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},
}
Leider war das Ergebnis nicht ganz so, wie ich es mir erhofft hatte, aber ich bin mir nicht sicher, ob das so gewollt ist oder ob es sich um einen Fehler im Stil handelt. Wenn Sie das Ergebnis noch einmal anhand der Richtlinien von Nature überprüfen und dies als Fehler melden könnten, unterhttps://github.com/josephwright/biblatex-naturewenn es nicht richtig aussieht, wäre das willkommen.