File: makeidx.hva

package info (click to toggle)
hevea 2.36-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,780 kB
  • sloc: ml: 19,453; sh: 503; makefile: 311; ansic: 132
file content (19 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (2)
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}{\indexname}}
\newcommand{\see}[2]{\emph{\seename} #1}
\newcommand{\seealso}[2]{\emph{\alsoname} #1}