
我正在使用 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}