I am trying to make two separate indexes for my PhD dissertation, the author index and the subject index.
Creating the author index is quit easy, I just use the \usepackage{makeidx}
and
\printindex
command and LaTeX
creates a beautiful author index for me. What if I want to add the subject index before the author index?
I have read the responses to the similar question on StackExchange:
How can I have two or more distinct indexes?
but it is not a viable solution for me, because it requires me to manually index both authors and subjects. Currently, I do not have to index the authors and latex creates the index for me automatically.
Is there any way to only index the subjects manually ( I mean to use \index{key}
for every subject of interest) and have the authors index automatically?
The \authorindex package does not work with \natbib
[Tex/LaTex] Index both authors and subjects with authorindex and makeindex
authorindexindexingnatbib
Best Answer
The
authorindex
andnatbib
packages collide at first glance, but in section 7.2.3 of the manual (http://mirrors.ctan.org/indexing/authorindex/authorindex.pdf) a solution is provided by using a local natbib.cfg, which I just copy from the manual, I have not developed that material:Content of
natbib.cfg
:Place this file (exactly with this name!) in the folder where your document source is stored.
The next step is to replace all
\aicite
commands with 'traditional'\cite
(otherwise it does not work. Why???? I have no clue, but I did not look into the package files either)I added the rather simple command
\listofauthors
, which includes the authorindex, further formatting is not done, however.