인덱스가 있는 biblatex

인덱스가 있는 biblatex

나는 biblatex를 사용하고 있으며 단어뿐만 아니라 저자의 색인을 얻으려고 시도하고 있습니다. 하지만 제목은 보고 싶지 않습니다. 다음 MWE는 색인의 제목을 제공합니다.

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{my.bib}
@article{sanchez16,
  title={Use of Damage Rating Index to Quantify Alkali-Silica Reaction Damage in Concrete: Fine versus Coarse Aggregate.},
  author={Sanchez, L. and Fournier, B. and Jolin, M. },
  journal={ACI Materials Journal},
  volume={113},
  number={4},
  year={2016}
}
\end{filecontents}
\usepackage{makeidx}
\makeindex
\usepackage[style=numeric,natbib=true,backend=bibtex,sorting=nyt,refsegment=section,defernumbers=true,maxnames=4,indexing=cite
]{biblatex}
\addbibresource{my.bib}
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\begin{document}
    \citet{sanchez16} have shown
    \index{Computer}
    \printbibliography
    \printindex
\end{document}

답변1

대부분의 인용 명령은 색인 생성을 위해 bibmacro를 호출합니다 citeindex. 해당 매크로의 표준 정의는 다음과 biblatex.def같습니다.

\newbibmacro*{citeindex}{%
  \ifciteindex
    {\indexnames{labelname}%
     \indexfield{indextitle}}
    {}}

이름만 색인화하려면 이 매크로를 다시 정의하면 됩니다.

\documentclass{article}
\usepackage{makeidx}
\makeindex
\usepackage[style=numeric, natbib=true, backend=bibtex, sorting=nyt,
  indexing=cite]{biblatex}

\renewbibmacro*{citeindex}{%
  \ifciteindex
    {\indexnames{labelname}}
    {}}

\addbibresource{biblatex-examples.bib}
\begin{document}
  \citet{sigfridsson} have shown
  \index{Computer}
  \printbibliography
  \printindex
\end{document}

작품 제목이 없는 색인입니다.

관련 정보