Author+an 오버로드 / 두 명 이상의 작성자 강조 표시

Author+an 오버로드 / 두 명 이상의 작성자 강조 표시

이것은 @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

관련 정보