在下面的文件中,我希望将三篇参考文献引用为 Inger et al 2006a、Inger et al 2006b 和 Inger et al 2006c。我可以使用 biblatex 实现此目的吗?如果不行,我可以修改 .bib 文件来实现此目的吗?
\documentclass{article}
\usepackage[style=authoryear-comp, maxcitenames=2, maxbibnames=50]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{IngerEtAl2006a,
title={Using daily ration models and stable isotope analysis to predict biomass depletion by herbivores},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Mackie, Kerry and Robinson, James A and Bearhop, Stuart},
journal={Journal of Applied Ecology},
volume={43},
number={5},
pages={1022--1030},
year={2006},
publisher={Wiley Online Library},
tag={}
}
@article{IngerEtAl2006b,
title={Prey choice affects the trade-off balance between predation and starvation in an avian herbivore},
author={Inger, Richard and Bearhop, Stuart and Robinson, James A and Ruxton, Graeme},
journal={Animal Behaviour},
volume={71},
number={7},
pages={1335--1341},
year={2006},
publisher={Elsevier}
}
@article{IngerEtAl2006c,
title={Temporal and intrapopulation variation in prey choice of wintering geese determined by stable isotope analysis},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Robinson, James A and Jackson, Andrew L and Bearhop, Stuart},
journal={Journal of Animal Ecology},
volume={75},
number={5},
pages={1190--1200},
year={2006},
publisher={Wiley Online Library}
}
\end{filecontents}
\begin{document}
\cite{IngerEtAl2006a}\\\\
\cite{IngerEtAl2006b}\\\\
\cite{IngerEtAl2006c}
\printbibliography
\end{document}
答案1
如果您希望所有引用都是“Inger et al.”,则需要设置uniquename=false
。
这并不能解决排序问题,因为biblatex
所有三篇文章都是由不同的作者撰写的,并且参考书目首先按作者排序。因为 Bearhop 先生是IngerEtAl2006b
该论文的第二作者,所以在排序时,该论文排在 Ruxton 先生为第二作者的另外两篇论文之前。
您现在可以做两件事。
你也可以让你的参考书目最多显示两个名字,例如
\usepackage[style=authoryear-comp, maxnames=2, uniquelist=false]{biblatex}
当然,所有引用都会排在“Inger, Richard et al.”下,然后根据标题对条目进行排序。
或者,您可以biblatex
通过添加以下选项强制对“Inger, Richard et al.”下的所有条目进行排序:
sortname = {Inger, Richard and others},
到条目。
无论如何,现在所有引用都会按照“Inger, Richard et al.”为作者的方式进行排序。
现在顺序仍然不正确,因为标题的字母顺序与您的顺序不一致,因此我们可以sortyear
按如下方式添加字段(如果您还添加,它将看起来像这样sortname
,有关更多信息,请参阅下面的 MWE)
@article{IngerEtAl2006a,
title={Using daily ration models and stable isotope analysis to predict biomass depletion by herbivores},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Mackie, Kerry and Robinson, James A and Bearhop, Stuart},
journal={Journal of Applied Ecology},
volume={43},
number={5},
pages={1022--1030},
year={2006},
publisher={Wiley Online Library},
sortyear = {2006-1},
sortname = {Inger, Richard and others},
}
@article{IngerEtAl2006b,
title={Prey choice affects the trade-off balance between predation and starvation in an avian herbivore},
author={Inger, Richard and Bearhop, Stuart and Robinson, James A and Ruxton, Graeme},
journal={Animal Behaviour},
volume={71},
number={7},
pages={1335--1341},
year={2006},
sortyear = {2006-2},
sortname = {Inger, Richard and others},
publisher={Elsevier}
}
@article{IngerEtAl2006c,
title={Temporal and intrapopulation variation in prey choice of wintering geese determined by stable isotope analysis},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Robinson, James A and Jackson, Andrew L and Bearhop, Stuart},
journal={Journal of Animal Ecology},
volume={75},
number={5},
pages={1190--1200},
sortyear = {2006-3},
sortname = {Inger, Richard and others},
year={2006},
publisher={Wiley Online Library}
}
其中A条目获取sortyear = {2006-1}
,b进入sortyear = {2006-2}
和C sortyear = {2006-3}
。有关该字段的另一个示例,请sortyear
查看knuth:ct
biblatex-examples.bib
。
MWE 用于sortname
\documentclass{article}
\usepackage[style=authoryear-comp,
maxcitenames=2, maxbibnames=999,
uniquelist=false, uniquename=false]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{IngerEtAl2006a,
title={Using daily ration models and stable isotope analysis to predict biomass depletion by herbivores},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Mackie, Kerry and Robinson, James A and Bearhop, Stuart},
journal={Journal of Applied Ecology},
volume={43},
number={5},
pages={1022--1030},
year={2006},
publisher={Wiley Online Library},
sortyear = {2006-1},
sortname = {Inger, Richard and others},
}
@article{IngerEtAl2006b,
title={Prey choice affects the trade-off balance between predation and starvation in an avian herbivore},
author={Inger, Richard and Bearhop, Stuart and Robinson, James A and Ruxton, Graeme},
journal={Animal Behaviour},
volume={71},
number={7},
pages={1335--1341},
year={2006},
sortyear = {2006-2},
sortname = {Inger, Richard and others},
publisher={Elsevier}
}
@article{IngerEtAl2006c,
title={Temporal and intrapopulation variation in prey choice of wintering geese determined by stable isotope analysis},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Robinson, James A and Jackson, Andrew L and Bearhop, Stuart},
journal={Journal of Animal Ecology},
volume={75},
number={5},
pages={1190--1200},
sortyear = {2006-3},
sortname = {Inger, Richard and others},
year={2006},
publisher={Wiley Online Library}
}
\end{filecontents*}
\begin{document}
One \cite{IngerEtAl2006a}, Two \cite{IngerEtAl2006b}, Three \cite{IngerEtAl2006c}.
\printbibliography
\end{document}
请注意这里按名称排序是多么混乱。
MWE 用于maxnames=2
\documentclass{article}
\usepackage[style=authoryear-comp,
maxnames=2,
uniquelist=false, uniquename=false]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{IngerEtAl2006a,
title={Using daily ration models and stable isotope analysis to predict biomass depletion by herbivores},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Mackie, Kerry and Robinson, James A and Bearhop, Stuart},
journal={Journal of Applied Ecology},
volume={43},
number={5},
pages={1022--1030},
year={2006},
publisher={Wiley Online Library},
sortyear = {2006-1},
}
@article{IngerEtAl2006b,
title={Prey choice affects the trade-off balance between predation and starvation in an avian herbivore},
author={Inger, Richard and Bearhop, Stuart and Robinson, James A and Ruxton, Graeme},
journal={Animal Behaviour},
volume={71},
number={7},
pages={1335--1341},
year={2006},
sortyear = {2006-2},
publisher={Elsevier}
}
@article{IngerEtAl2006c,
title={Temporal and intrapopulation variation in prey choice of wintering geese determined by stable isotope analysis},
author={Inger, Richard and Ruxton, Graeme D and Newton, Jason and Colhoun, Kendrew and Robinson, James A and Jackson, Andrew L and Bearhop, Stuart},
journal={Journal of Animal Ecology},
volume={75},
number={5},
pages={1190--1200},
sortyear = {2006-3},
year={2006},
publisher={Wiley Online Library}
}
\end{filecontents*}
\begin{document}
One \cite{IngerEtAl2006a}, Two \cite{IngerEtAl2006b}, Three \cite{IngerEtAl2006c}.
\printbibliography
\end{document}
请注意这里的排序稍微更有意义,但当然是以删除所有合著者为代价的。