带索引的 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

大多数引用命令调用 bibmacrociteindex进行索引。该宏的标准定义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}

不含作品名称的索引。

相关内容