I'm writing a literature review, and would like to add indices for both authors and publication year (i.e., two separate indices). Now, I could manually enter the appropriate \index{} commands, but it seems like this is something that could be automatically handled by biblatex. It would certainly make maintenance a lot easier, an important consideration since I intend to keep the review up-to-date over the next couple of years as I progress through my research.
I have been playing with the indexing option that is built into biblatex but cannot see how to make it work with multiple indices (or even index by year alone for that matter). Similarly, I have been looking at questions such as this one on writing custom \cite commands, but am struggling to see how they work as well.
A manually indexed minimal working example (using biblatex and multind) which shows the sort of final result I'm after:
\documentclass{report}
\usepackage{filecontents}
\begin{filecontents*}{testing.bib}
@article{Author2010,
author="Author, A and Writer, B",
journal="Slackers Monthly",
title="An overly long treatise on procrastination",
year=2010,
month=jun,
}
@article{Writer2011,
author="Writer, B and Scribe, C",
journal="Fake Online Journal",
title="Waste of time or time of waste: procrastination in a modern society",
year=2011,
month=oct,
}
@book{Writer2003,
author="Writer, B",
title="Procrastination for dummies",
year=2003,
publisher="Procrastination House",
address="Auckland",
}
\end{filecontents*}
\usepackage[style=authoryear]{biblatex}
\addbibresource{testing}
\usepackage{multind}
\makeindex{authors}
\makeindex{years}
\begin{document}
\chapter{Introductory works}
\section{An overly long treatise on procrastination}
\fullcite{Author2010}
\index{authors}{Author, A!An overly long treatise on procrastination (2010)}
\index{authors}{Writer, B!An overly long treatise on procrastination (2010)}
\index{years}{2010!An overly long treatise on procrastination}
This paper was really useful in telling me how to waste more time rather
than doing real work.
\section{Waste of time or time of waste: procrastination in a modern society}
\fullcite{Writer2011}
\index{authors}{Writer, B!Waste of time or time of waste: procrastination in a modern society (2011)}
\index{authors}{Scribe, C!Waste of time or time of waste: procrastination in a modern society (2011)}
\index{years}{2011!Waste of time or time of waste: procrastination in a modern society}
Applies post-modern philosophical theory to procrastination.
\section{Procrastination for dummies}
\fullcite{Writer2003}
\index{authors}{Writer, B!Procrastination for dummies (2003)}
\index{years}{2003!Procrastination for dummies}
A classic reference book for anybody starting a research position.
\printbibliography
\printindex{authors}{Author index}
\printindex{years}{Year index}
\end{document}
And a Makefile to compile it:
default:
xelatex mwe
bibtex mwe
xelatex mwe
xindy -M texindy -M page-ranges -L english -C utf8 authors.idx
xindy -M texindy -M page-ranges -L english -C utf8 years.idx
xelatex mwe
So is this possible to achieve with a custom cite command (or a built-in one for that matter)? Or would I be better off writing a script to parse the BibTeX/biber output to generate the input to xindy?
The \TeX bookis one example. You can fix this by preventing titles from being fully expanded. Further details can be found at the github issue Maieul submitted. Please feel free to join the discussion. – Audrey Aug 23 '12 at 17:11\thefield{title}with\thefield{indextitle}. – Paul Stanley Aug 23 '12 at 17:25indextitle, just notindexsorttitle. But, yes, you should use these fields instead oftitleto correctly sort titles that contain control sequences, start with "The" or "A", etc. – Audrey Aug 23 '12 at 17:38