BibLaTeX/Biber: 저자 목록은 자르고 편집자 목록은 자르지 않음

BibLaTeX/Biber: 저자 목록은 자르고 편집자 목록은 자르지 않음

첫 번째 저자만 표시하고 싶기 때문에 maxnamesBibLaTeX 옵션을 다음으로 설정했습니다.1외.. 그러나 책의 경우 전용 maxnames. 예를 들어, 현재 IUPAC Gold Book에 대한 인용은 다음과 같습니다.

IUPAC: "화학 용어 요약("골드 북")". AD 맥노트 외., 편집자. Blackwell Scientific Publications, Oxford, 2판, 1997. DOI: 10.1351/goldbook.

목록을 자르는 대신 두 번째(그리고 마지막) 편집자 A. Wilkinson도 표시하고 싶습니다. 지금까지는 이 maxnames옵션을 사용하는 정확한 코드를 찾을 수 없었습니다. author매크로 에도 안 보이고 editor, 함수에 사용되는 것 같은데 \printnames해당 함수의 코드를 이해하지 못합니다.

저자 수와 편집자 수를 구분할 수 있나요?


편집: MWE 추가

\documentclass{article}

\usepackage{hyperref}

\usepackage[%
    backend = biber,%
    style = trad-abbrv,%
    citestyle = numeric-comp,%
    sorting = nty,%
    minnames = 1,%
    maxnames = 1%
]{biblatex}

\bibliography{references}

\begin{filecontents}{references.bib}
    @book{IUPAC1997,
        address = {Oxford},
        author = {IUPAC},
        doi = {10.1351/goldbook},
        edition = {2},
        editor = {McNaught, A. D. and Wilkinson, A.},
        isbn = {0-9678550-9-8},
        publisher = {Blackwell Scientific Publications},
        title = {{Compendium of Chemical Terminology (the “Gold Book”)}},
        year = {1997}
    }
\end{filecontents}

\begin{document}

This should be cited.\cite{IUPAC1997}

\printbibliography[heading = bibnumbered]

\end{document}

trad-abbrv내 로컬 문서에서는 bibstyle과 수정된 부분(기울임꼴 텍스트 대신 따옴표 등)을 사용했지만 이 문제와 관련이 없으므로 더 짧은 MWE를 trad-abbrv스타일과 공유하는 것을 선호합니다.

답변1

biblatex와 옵션 maxnamesminnames모든 이름에 동일하게 적용됩니다. 다양한 유형의 다양한 이름을 더 세밀하게 제어하려면 관련 bibmacros를 수정해야 합니다. 이 경우 원하는 결과를 얻는 방법에는 여러 가지가 있지만 의미는 다릅니다.

다음에서는 제목 뒤에 maxnames=1,더 많은 s를 인쇄하기 위해 하나의 bibmacro만 고수하고 재정의했습니다 .editor

\documentclass{article}
\usepackage[
    backend = biber,
    style = trad-abbrv,
    citestyle = numeric-comp,
    sorting = nty,
    minnames = 1,
    maxnames = 1,
]{biblatex}
\usepackage{hyperref}

\renewbibmacro*{byeditor+others}{%
  \ifnameundef{editor}
    {}
    {\printnames[byeditor][-\value{listtotal}]{editor}%
     \setunit{\addcomma\space}%
     \usebibmacro{editorlstr}%
     \clearname{editor}%
     \newunit}%
  \usebibmacro{byeditorx}%
  \usebibmacro{bytranslator+others}}

\begin{filecontents}{\jobname.bib}
@book{IUPAC1997,
  address   = {Oxford},
  author    = {IUPAC},
  doi       = {10.1351/goldbook},
  edition   = {2},
  editor    = {McNaught, A. D. and Wilkinson, A.},
  isbn      = {0-9678550-9-8},
  publisher = {Blackwell Scientific Publications},
  title     = {Compendium of Chemical Terminology (the “Gold Book”)},
  year      = {1997},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
This should be cited. \cite{IUPAC1997}

\printbibliography[heading = bibnumbered]
\end{document}

IUPAC. 화학 용어 개요(“골드북”). AD McNaught 및 A. Wilkinson, 편집자. Blackwell Scientific Publications, Oxford, 2판, 1997. isbn: 0-9678550-9-8. doi: 10.1351/goldbook.

관련 정보