1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
\@primitives{index}
\newsavebox{\@indexbox}
%%%% index citations that point to index commands
\newcommand{\@index@loc}[1]
{\if@refs%
\sbox{\@indexbox}{\@indexwrite[default]{#1}{\@indexlabel}}%force evaluation
\@locname{\usebox{\@indexbox}}{}%
\fi}
%%%% index citations that point to section titles.
\newcommand{\@index@sec}[1]
{\if@refs%
\@@indexwrite[default]{#1}{\@currentlabel}{\@fmt@sec}%force evaluation
\fi}
\newif\ifindexsec\indexsecfalse
\newcommand{\index}[1]{\ifindexsec\@index@sec{#1}\else\@index@loc{#1}}
\newcommand{\printindex}{\@printindex[default]}
\newcommand{\makeindex}{\newindex{default}{idx}{ind}{Index}}
\newcommand{\see}[2]{\seename\ \textit{#1}}
|