
這是一個與 @PLK 給出的答案相關的問題使用 biblatex 將特定作者加粗(我無法在原始帖子中發表評論)。我想強調參考書目中的特定作者。下面修改@PLK的MWE,我想突出顯示多個作者,但這種方法只突出顯示一個。
\documentclass{article}
\usepackage{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@MISC{test,
AUTHOR = {Last1, First1 and Last2, First2 and Last3, First3},
AUTHOR+an = {2=highlight,3=highlight},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\renewcommand*{\mkbibnamegiven}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\renewcommand*{\mkbibnamefamily}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
答案1
根據biblatex
文件,第 74-75 頁,您需要用分號分隔不同清單項目(名稱)的註釋
@misc{test,
author = {Last1, First1 and Last2, First2 and Last3, First3},
authot+an = {2=highlight;3=highlight},
}
作品
文法解釋如下
<annotationspecs> ::= <annotationspec> [ ";" <annotationspec> ] <annotationspec> ::= [ <itemcount> [ ":" <part> ] ] "=" <annotations> <annotations> ::= <annotation> [ "," <annotation> ] <annotation> ::= (string)
您想要給出不同的規格(即一項用於第 2 項,一項用於第 3 項)。如果像您一樣用逗號分隔兩個條目,biblatex
則解釋3=highlight
為第二個名稱的另一個註釋。