在参考书目条目末尾添加短标题

在参考书目条目末尾添加短标题

我正在尝试在参考书目末尾添加一个简称(或另一个字段,如 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}

John, Doe (2015)。如何以错误的方式使用 BibLaTex。BibLaTex for Dummys。第 12 版。丹麦:Catoso,[Biblatex 错误方式]。Mary, Doe (2015)。如何以正确的方式使用 BibLaTex。BibLaTex (不) for Dummys。第 12 版。丹麦:Catoso,第 835-854 页,[Biblatex 正确方式]。

相关内容