This is a follow-up question to Multiple Indexes: one index for every part of the book!
I'm working on a book project which is divided in several parts and chapters. At the end of some chapters (let's say at the end of chapter 2 and 3) I want an index which lists all the keyword mentioned since the last index.
Example
- Keywords in Chapter 1:
\index{Aaa}\index{Bbb}\index{Caa} - Keywords in Chapter 2:
\index{Aaa}\index{Ddd}\index{Eee} - Keywords in Chapter 3:
\index{Aaa}\index{Ddd}\index{Fff}
I want an index at the end of chapter 2, which lists all keywords of chapter 1 and 2. At the end of chapter 3 there should be an index too, which lists only the keywords of chapter 3.
Here is what I've tried so far (MWE):
\documentclass{book}
\usepackage{blindtext}
\usepackage{imakeidx}
\makeindex
\begin{document}
\part{My Headline}
\chapter{My Headline}
\blindtext[2]
\index{Aaa}\index{Bbb}\index{Caa} % keywords for INDEX 1
\chapter{My Headline}
\blindtext[2]
\index{Aaa}\index{Ddd}\index{Eee} % keywords for INDEX 1
\printindex % INDEX 1
\chapter{My Headline}
\index{Aaa}\index{Ddd}\index{Fff} % keywords for INDEX 2
\printindex % INDEX 2
\end{document}
What I don't want
I know about splitidx. In the manual it says:
Separate indices are declared and given unique shortcut identiers with the \newindex command.
My question is: Is there a way to avoid the \nexindex command? The book is already written and I don't want to change for example \index{Aaa} to \newindex{index1}{Aaa}.
\indexto mean\newindex{index1}. In that way you would only have to do minor changes, each time you need a new index. – Christoph Frings Aug 03 '16 at 18:22