我正在尝试在参考书目末尾添加一个简称(或另一个字段,如 usera)。
这是我的 MWE:
\documentclass[
12pt,
oneside
]{scrartcl}
\usepackage[
backend=biber,
style=ext-authoryear,
firstinits=false
]{biblatex}
\addbibresource{test.bib}
\begin{document}
\section{Test}
\cite{author01}
\cite{author02}
\printbibliography[]
\end{document}
还有围兜:
@book{author01,
author = {John, Doe},
year = {2015},
title = {How to use BibLaTex the wrong way},
edition = {12},
publisher = {{Catoso}},
subtitle = {BibLaTex for Dummys},
location = {Denmark},
shorttitle = {Biblatex wrong way}
}
@article{author02,
author = {Mary, Doe},
year = {2015},
title = {How to use BibLaTex the right way},
edition = {12},
publisher = {{Catoso}},
subtitle = {BibLaTex (not) for Dummys},
location = {Denmark},
pages = {835--854},
shorttitle = {Biblatex right way}
}
可以将短标题设置为条目的最后一个位置吗?您知道如何实现吗?谢谢!
诚挚问候,马克
答案1
使用标准样式和大多数第三方样式,您可以重新定义 bibmacrofinentry
以在参考书目条目末尾添加一些内容。
\documentclass[
12pt,
oneside
]{scrartcl}
\usepackage[
backend=biber,
style=ext-authoryear,
firstinits=false
]{biblatex}
\DeclareFieldFormat{bibshorttitle}{\mkbibbrackets{#1}}
\renewbibmacro*{finentry}{%
\setunit{\addcomma\space}%
\printfield[bibshorttitle]{shorttitle}%
\finentry}
\begin{filecontents}{\jobname.bib}
@book{author01,
author = {John, Doe},
year = {2015},
title = {How to use BibLaTex the wrong way},
edition = {12},
publisher = {{Catoso}},
subtitle = {BibLaTex for Dummys},
location = {Denmark},
shorttitle = {Biblatex wrong way}
}
@book{author02,
author = {Mary, Doe},
year = {2015},
title = {How to use BibLaTex the right way},
edition = {12},
publisher = {{Catoso}},
subtitle = {BibLaTex (not) for Dummys},
location = {Denmark},
pages = {835--854},
shorttitle = {Biblatex right way}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\section{Test}
\cite{author01}
\cite{author02}
\printbibliography[]
\end{document}