biblatex 样式的定制 - 与 natbib plainnat 相同

biblatex 样式的定制 - 与 natbib plainnat 相同

在切换到之前biblatex,我的使用方式bibtex如下:

\usepackage[round, semicolon, authoryear]{natbib}
\bibliographystyle{plainnat}

我希望获得完全相同的风格biblatex(但不使用natbib向后兼容性)。

在文本中,如果有两位作者,我只希望“Smith and Jones (2017)”(作为\citet)或“(Smith and Jones 2017)”(作为\citep)。我不介意用“et”或“&”代替“and”。如果有 3 位或更多作者,我只希望“Smith et al. (2017)”(作为\citet)或“(Smith et al., 2017)”(作为\citep)。

在参考书目列表中,我希望所有作者,并且我希望标题用粗体表示而不是用引号表示,但没有它我也可以接受。

natbib上面的这些操作都非常简单,但我不知道如何使用citet/来citep实现。我改用的主要原因是基本上没有合理的方法来实现biblatexbiberbiblatex对重音字符进行排序bibtex

简单来说,在最好的情况下,它应该如下图所示:

参考

我设法设置了一些设置(例如反向引用),但对于上述设置,我真的很挣扎......

我还必须说我更喜欢的某些功能biblatex,例如可点击的 DOI 或反向引用“(引用第 XX 页)”。

有问题的工作示例是

\documentclass{article}
\usepackage{xltxtra}
\usepackage{fontspec}
\usepackage{realscripts}
\usepackage{metalogo}
\usepackage{xunicode}
\usepackage[autostyle=true, english=british]{csquotes}
\usepackage{polyglossia}
\setdefaultlanguage[variant=british]{english}
\usepackage{filecontents}
\usepackage[x11names]{xcolor}
\usepackage[
backend=biber,
bibstyle=authortitle,
citestyle=authoryear-comp,
autocite=inline,
sorting=ynt,
sortcase=true,
sortcites=true,
maxbibnames=100,
mincitenames=1,
maxcitenames=2,
hyperref=true,
backref=true,
backrefstyle=none,
maxalphanames=1
]{biblatex}
\usepackage[
breaklinks=true,
colorlinks=true,
linkcolor={Firebrick4},
anchorcolor={Blue4},
citecolor={Green4},
filecolor={DeepPink4},
menucolor={Chocolate4},
urlcolor={DodgerBlue4},
bookmarks=true,
pdfencoding=auto,
unicode=true,
xetex
]{hyperref}
\addbibresource{references.bib}
\begin{document}
\begin{filecontents}{references.bib}
@article{Shaw2005,
author={Shaw, Joey and Lickey, Edgar B and Beck, John T and Farmer, Susan B and Liu, Wusheng and Miller, Jermey and Siripun, K C and Winder, Charles T and Schilling, Edward E and Small, Ramdall L},
doi={10.3732/ajb.92.1.142},
issn={0002-9122},
journal={American Journal of Botany},
month={01},
number={1},
pages={142--166},
title={{The tortoise and the hare II: relative utility of 21 noncoding chloroplast DNA sequences for phylogenetic analysis}},
url={https://onlinelibrary.wiley.com/doi/full/10.3732/ajb.92.1.142},
volume={92},
year={2005}
}
@article{Shaw2007,
author={Shaw, Joey and Lickey, Edgar B and Schilling, Edward E and Small, Ramdall L},
doi={10.3732/ajb.94.3.275},
issn={0002-9122},
journal={American Journal of Botany},
month={03},
number={3},
pages={275--288},
title={{Comparison of whole chloroplast genome sequences to choose noncoding regions for phylogenetic studies in angiosperms: the tortoise and the hare III}},
url={https://onlinelibrary.wiley.com/doi/full/10.3732/ajb.94.3.275},
volume={94},
year={2007}
}
\end{filecontents}
XXX \textcite{Shaw2005} XXX \textcite{Shaw2007} XXX \textcite{Shaw2005,Shaw2007}, XXX \parencite{Shaw2005} XXX \parencite{Shaw2007} XXX  \parencite{Shaw2005,Shaw2007} XXX.
\printbibliography
\end{document}

其呈现形式为:

参考文献格式错误。

应该只有“Shaw et al (2005)”等等。“et al”之前只有一个名字,没有更多。

答案1

在@moeve 的帮助和建议下,我可以这样解决它:

\documentclass{article}
\usepackage[british]{babel} % Languages
\usepackage{filecontents} % Included exemplary file
\usepackage[x11names]{xcolor} % Color names
\usepackage[ % Bibliography settings
backend=biber,
bibstyle=authoryear,
citestyle=authoryear-comp,
autocite=inline,
maxbibnames=100,
mincitenames=1,
maxcitenames=2,
hyperref=true,
backref=true,
backrefstyle=none,
uniquelist=false
]{biblatex}
\DeclareFieldFormat[article]{title}{\mkbibbold{#1}} % Bold article title
\addbibresource{test.bib}
\usepackage[ % Links settings
breaklinks=true,
colorlinks=true,
linkcolor={Firebrick4},
anchorcolor={Blue4},
citecolor={Green4},
filecolor={DeepPink4},
menucolor={Chocolate4},
urlcolor={DodgerBlue4},
bookmarks=true,
pdfencoding=auto,
unicode=true,
xetex
]{hyperref}
\begin{document}
% Exemplary bibliography
\begin{filecontents}{test.bib}
@article{Shaw2005,
author={Shaw, Joey and Lickey, Edgar B and Beck, John T and Farmer, Susan B and Liu, Wusheng and Miller, Jermey and Siripun, K C and Winder, Charles T and Schilling, Edward E and Small, Ramdall L},
doi={10.3732/ajb.92.1.142},
issn={0002-9122},
journal={American Journal of Botany},
month={01},
number={1},
pages={142--166},
title={{The tortoise and the hare II: relative utility of 21 noncoding chloroplast DNA sequences for phylogenetic analysis}},
url={https://onlinelibrary.wiley.com/doi/full/10.3732/ajb.92.1.142},
volume={92},
year={2005}
}
@article{Shaw2007,
author={Shaw, Joey and Lickey, Edgar B and Schilling, Edward E and Small, Ramdall L},
doi={10.3732/ajb.94.3.275},
issn={0002-9122},
journal={American Journal of Botany},
month={03},
number={3},
pages={275--288},
title={{Comparison of whole chloroplast genome sequences to choose noncoding regions for phylogenetic studies in angiosperms: the tortoise and the hare III}},
url={https://onlinelibrary.wiley.com/doi/full/10.3732/ajb.94.3.275},
volume={94},
year={2007}
}
\end{filecontents}
% The document
XXX \textcite{Shaw2005} XXX \textcite{Shaw2007} XXX \textcite{Shaw2007,Shaw2005}, XXX \parencite{Shaw2005} XXX \parencite{Shaw2007} XXX  \parencite{Shaw2007,Shaw2005} XXX.
\printbibliography
\end{document}

上述代码的结果。

相关内容