![在参考书目条目末尾添加短标题](https://linux22.com/image/476084/%E5%9C%A8%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E6%9D%A1%E7%9B%AE%E6%9C%AB%E5%B0%BE%E6%B7%BB%E5%8A%A0%E7%9F%AD%E6%A0%87%E9%A2%98.png)
我正在尝试在参考书目末尾添加一个简称(或另一个字段,如 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}