| 1 |
%% latex sample.tex |
| 2 |
%% makeindex sample |
| 3 |
%% makeindex -o sample.and sample.adx |
| 4 |
%% makeindex -o sample.nnd sample.ndx |
| 5 |
%% makeindex -o sample.lnd sample.ldx |
| 6 |
%% latex sample.tex |
| 7 |
|
| 8 |
\documentclass{book} |
| 9 |
\usepackage{index} |
| 10 |
|
| 11 |
\listfiles |
| 12 |
|
| 13 |
\makeindex |
| 14 |
\newindex{aut}{adx}{and}{Name Index} |
| 15 |
\newindex{not}{ndx}{nnd}{List of Notation} |
| 16 |
|
| 17 |
\newindex[theenumi]{list}{ldx}{lnd}{Items} |
| 18 |
|
| 19 |
\shortindexingon |
| 20 |
|
| 21 |
\proofmodetrue |
| 22 |
|
| 23 |
\def\aindex{\index*[aut]} |
| 24 |
|
| 25 |
\begin{document} |
| 26 |
|
| 27 |
\tableofcontents |
| 28 |
|
| 29 |
\newpage |
| 30 |
|
| 31 |
\chapter{Here is a ^[aut]{chapter} title} |
| 32 |
|
| 33 |
\section{Section header\index[aut]{section}} |
| 34 |
|
| 35 |
Here is some text.\index{subject} |
| 36 |
|
| 37 |
Here is \index[not]{notation}some more \index[not]{sin@$\sin$} |
| 38 |
text. |
| 39 |
|
| 40 |
\newpage |
| 41 |
|
| 42 |
Here is some ^{more} _[not]{notation} text. |
| 43 |
|
| 44 |
Here is yet more \aindex{text}. |
| 45 |
|
| 46 |
\section{Another Section header _[aut]{section2}} |
| 47 |
|
| 48 |
And here is some math: $x^1_b$. |
| 49 |
|
| 50 |
Here is an ^[aut]{index} entry \fbox{inside an |
| 51 |
\index[not]{min@$\min$}fbox} |
| 52 |
|
| 53 |
\fbox{Here is an ^[aut]{entry} in a box.} |
| 54 |
|
| 55 |
\section{An indexed list environment} |
| 56 |
|
| 57 |
\begin{enumerate} |
| 58 |
|
| 59 |
\item |
| 60 |
First item |
| 61 |
|
| 62 |
\item |
| 63 |
Second item\index[list]{second item} |
| 64 |
|
| 65 |
\item |
| 66 |
Third item |
| 67 |
|
| 68 |
\newpage |
| 69 |
|
| 70 |
\item |
| 71 |
Fourth item |
| 72 |
|
| 73 |
\item |
| 74 |
Fifth item\index[list]{fifth item} |
| 75 |
|
| 76 |
\item |
| 77 |
Sixth item |
| 78 |
|
| 79 |
\end{enumerate} |
| 80 |
|
| 81 |
\printindex[not] |
| 82 |
|
| 83 |
\printindex[aut][Here is a prologue for the author index. |
| 84 |
Note that it is set in a single column at the top of the |
| 85 |
first page of the index.] |
| 86 |
|
| 87 |
\printindex[list] |
| 88 |
|
| 89 |
\printindex |
| 90 |
|
| 91 |
\end{document} |