
これは@PLKが回答した内容に関連する質問です。biblatex を使用して特定の著者を太字にする(元の投稿にコメントすることはできません)。参考文献で特定の著者を強調表示したいです。以下の @PLK の MWE を変更して複数の著者を強調表示したいのですが、この方法では 1 人の著者しか強調表示されません。
\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 に 1 つ、項目番号 3 に 1 つ) を指定したいとします。2 つのエントリをコンマで区切ると、2 番目の名前の別の注釈としてbiblatex
解釈されます。3=highlight