Multiple indices with biblatex and indexing
Example 21 from the biblatex
documentation (21-indexing-multiple.tex
) demonstrates how you can create separate subject, name and title indices using the index
package. Here is another example using the imakeidx
package. It compiles with the usual calls to latex
and biber
(or bibtex
, if you load biblatex
with backend=bibtex
).
\documentclass[12pt,a4paper,twoside,openright,titlepage,fleqn,
headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,
captions=tableheading]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage{imakeidx}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=philosophy-modern,indexing,hyperref,square,natbib,backref]{biblatex}
\usepackage{subfig}
\usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing,
listings]{classicthesis}
\usepackage{arsclassica}
\makeindex[title={Concept Index}]
\makeindex[name=name,title={Name Index}]
\makeindex[name=title,title={Title Index}]
\DeclareIndexNameFormat{default}{%
\usebibmacro{index:name}{\index[name]}{#1}{#3}{#5}{#7}}
\DeclareIndexFieldFormat{indextitle}{%
\usebibmacro{index:title}{\index[title]}{#1}}
\renewbibmacro*{citeindex}{%
\ifciteindex
{\indexnames{labelname}%
\indexfield{indextitle}}
{}}
\renewbibmacro*{bibindex}{%
\ifbibindex
{\indexnames{author}%
\indexnames{editor}%
\indexnames{editora}%
\indexnames{editorb}%
\indexnames{editorc}%
\indexfield{indextitle}}
{}}
\addbibresource{biblatex-examples.bib}
\begin{document}
\nocite{*}
\cite{piccato,gaonkar,jaffe,malinowski,coleridge,gerhardt,cicero}
\index{Example concept index entry}
\printbibliography
\printindex
\printindex[name]
\printindex[title]
\end{document}