
Estoy usando biblatex-nature
para formatear la bibliografía de mi tesis y todo va bien hasta ahora, excepto que quiero que muestre títulos de capítulos para @incollection
las referencias, lo cual no hace de forma predeterminada. Encontré sugerencias en otros lugares de que agregar la opción intitle
a la llamada del paquete biblatex podría hacer que haga esto, pero cuando intento hacerlo, aparece un ! Package keyval Error: intitle undefined.
error.
¿Alguien podría sugerir qué está mal aquí o una forma alternativa de incluir los títulos de los capítulos en mis referencias?
Aquí están mis archivos 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}
Respuesta1
La opción intitle
se agregó en biblatex-nature
v1.2i/v1.3 (23/10/2016). El MWE funciona bien en mi sistema completamente actualizado con biblatex
3.12, Biber 2.12 y biblatex-nature
v1.3c. Si recibe un error, debe deberse a que su versión biblatex-nature
es demasiado antigua. Si es posible, actualice toda su distribución TeX.
Si eso no es posible porque está utilizando una computadora de trabajo con derechos restringidos o al dorso, la forma más segura es reescribir el controlador de forma análoga ahttps://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}
Alternativamente, pero posiblemente menos seguro, puede obtener la versión actual de biblatex-nature
CTAN (https://ctan.org/pkg/biblatex-nature) y suelte nature.bbx
y nature.cbx
junto a su .tex
archivo. Esto podría causar conflictos de versiones, pero significaría que esencialmente tendría una versión actualizada biblatex-nature
si funciona.
Por cierto: @collection
los s normalmente no tienen un autor y @incollection
pueden beneficiarse de crossref
, por lo que haría que las entradas se vieran así
@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},
}
Desafortunadamente, el resultado no fue el que esperaba, pero no estoy seguro de si eso es lo que quiere la naturaleza o un error en el estilo. Si pudiera verificar el resultado con las pautas de Nature e informar esto como un error enhttps://github.com/josephwright/biblatex-natureSi no se ve bien, se lo agradeceríamos.