\index{<word>}
. For example :
Code: Select all
\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[11pt,twoside]{book}
\usepackage[total={6.25in,10in},left=1.25in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{imakeidx}
\indexsetup{othercode=\small}
\makeindex[program=makeindex,columns=2,intoc=true]
\begin{document}
\chapter{Funky title 1}
Some weird text with an indexed word : word1\index{word1}. Bla bla blabla.
\newpage
\chapter{Hilarious title 2}
More funny text here, with some indexed words : word1\index{word1} and word2\index{word2}. Blabla bla bla.
\cleardoublepage
\printindex
\end{document}
You define the list of all the *exact* words you want to see in the index, for example :
Code: Select all
index_list = {word1, word2, ...}
I know that this may create a large number of pages in the index, for a single word that is often used. Maybe we could ask LaTeX to show the first page only, for each chapter (or section), or something more convenient. Notice that this idea doesn't ask us to use the
\index{}
command at all.This idea may have many limitations, or constraints, since we may want to use some sub-indexing (like
\index{cake!chocolate}
), and may have problems with words that have accents (like \index{ecole@école}
, in French).Is this idea doable in LaTeX? Is there a special package that may do this?