我正在嘗試在參考書目末尾添加一個短標題(或其他字段,如 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}