將短標題新增至參考書目條目的末尾

將短標題新增至參考書目條目的末尾

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

約翰‧多伊 (2015)。如何以錯誤的方式使用 BibLaTex。 BibLaTex 傻瓜版。第 12 版。丹麥:Catoso,[Biblatex 的錯誤方式]。瑪麗·多伊(2015)。如何正確使用 BibLaTex。 BibLaTex(不是)適用於傻瓜。第 12 版。丹麥:Catoso,第 835–854 頁,[Biblatex 正確方式]。

相關內容