Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am working on my thesis and I have to include in the text the Subject Index and Index of Authors. I'm using BibTeX (package natbib) and package makeidx for marking the terms for Subject index (I'm using MikTeX 2.9 and TeXnicCenter). Problem is that \citeindextrue command from the natbib package write the citations into the .idx indexing file and I don't know how to separate both indices. I'd like to have first e.g. Subject Index (with that title) and than Index of Authors. Do you have any suggestions?

Here is the minimal example:

\documentclass{article}
\usepackage[english]{babel}
\usepackage{makeidx}
\usepackage{natbib}

\makeindex
\begin{document}
\citeindextrue 

This is a  text with few references, e.g. \cite{Doreian05} or \Citet{Doreian05}.\\
key words: network\index{network}, blockmodeling\index{blockmodeling}, and so on.
% bibliography
\bibliographystyle{mcbride} 
% the file with bibliography entries blockmodeling.bib
\bibliography{bibliography}
\printindex
\end{document}

The entry in the bibliography file (bibliography.bib) is e.g.

@BOOK{Doreian05,
author = {Patrick Doreian and Vladimir Batagelj and Anu\v{s}ka Ferligoj},
title = {Generalized Blockmodeling},
year = {2005},
publisher = {Cambridge University Press},
address = {New York, NY, USA}
}
share|improve this question

migrated from stackoverflow.com Sep 9 '11 at 13:03

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 7 down vote accepted

you should maybe have a look at \usepackage{imakeidx}

\documentclass{article}  
\usepackage[english]{babel}  
\usepackage{imakeidx}
    \makeindex
    \makeindex[name=authors,title=Authors,columns=3]
\usepackage{natbib}  

\makeindex  
\begin{document}  
\citeindextrue   

This is a  text with few references, e.g. \cite{Doreian05} or \Citet{Doreian05}.\\
And it has fancy authors. \index[authors]{Doreian, Patrick} \index[authors]{Batagelj, Vladimir} \index[authors]{Ferligoj, Anu\v{s}ka}
key words: network\index{network}, blockmodeling\index{blockmodeling}, and so on.  
% bibliography  
\bibliographystyle{mcbride}   
% the file with bibliography entries blockmodeling.bib  
\bibliography{bibliography}
\printindex[authors]
\printindex  
\end{document}

hopefully it is helpful

Disclaimer: i've not tested this tex-code - just written down some ideas.

share|improve this answer
    
Thank you @epsilonhalbe, you are a genius! :) First of all you answer was very quick and effective, and second, you are also a magician, because you added in the text three of the most cited authors from my dissertation. I know that this is not the place for such questions but anyway: Are social networks and blockmodeling your research topics? Thank you again ;) –  Anja Sep 9 '11 at 15:58
    
Nope those three authors are in the bibfile you attached - my field of research is mathematics ;-) glad to help you. And may i ask you - mark the answer as accepted. –  epsilonhalbe Sep 9 '11 at 16:44
    
Ups, I was so glad to have a solutionthat I forget what I wrote in bibfile ;) –  Anja Sep 9 '11 at 20:18

there's a good entry in the uk tex faq that shows several options. if you have tex live installed, you can access this via texdoc multind.

unfortunately, it doesn't include imakeidx (suggested by @epsilonhalbe), a package which looks quite promising; i've notified the faq maintainer of the omission.

UPDATE: the faq has been updated to recognize additional packages for preparing multiple indexes; well worth visiting if you need this facility.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.