diff options
| author | Guillaume Melquiond | 2015-04-02 15:12:43 +0200 |
|---|---|---|
| committer | Guillaume Melquiond | 2015-04-02 15:12:43 +0200 |
| commit | fe87c2cab20335b2d5dff61054700597e515f8a1 (patch) | |
| tree | 930dafc745761136135af6175bf1ee0b01875d16 /doc/refman/headers.sty | |
| parent | 933744fefc85da267ef8304e89e6e414bb960cce (diff) | |
Make sure that hyperref creates the proper links to the documentation indexes.
Diffstat (limited to 'doc/refman/headers.sty')
| -rw-r--r-- | doc/refman/headers.sty | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/doc/refman/headers.sty b/doc/refman/headers.sty index ef28588e3c..fb39f687d7 100644 --- a/doc/refman/headers.sty +++ b/doc/refman/headers.sty @@ -30,27 +30,21 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{index} \makeindex -\newindex{tactic}{tacidx}{tacind}{% -\protect\setheaders{Tactics Index}% -\protect\addcontentsline{toc}{chapter}{Tactics Index}Tactics Index} -\newindex{command}{comidx}{comind}{% -\protect\setheaders{Vernacular Commands Index}% -\protect\addcontentsline{toc}{chapter}{Vernacular Commands Index}% -Vernacular Commands Index} - -\newindex{option}{optidx}{optind}{% -\protect\setheaders{Vernacular Options Index}% -\protect\addcontentsline{toc}{chapter}{Vernacular Options Index}% -Vernacular Options Index} - -\newindex{error}{erridx}{errind}{% -\protect\setheaders{Index of Error Messages}% -\protect\addcontentsline{toc}{chapter}{Index of Error Messages}Index of Error Messages} - -\renewindex{default}{idx}{ind}{% -\protect\addcontentsline{toc}{chapter}{Global Index}% -\protect\setheaders{Global Index}Global Index} +\newindex{tactic}{tacidx}{tacind}{Tactics Index} +\newindex{command}{comidx}{comind}{Vernacular Commands Index} +\newindex{option}{optidx}{optind}{Vernacular Options Index} +\newindex{error}{erridx}{errind}{Index of Error Messages} +\renewindex{default}{idx}{ind}{Global Index} + +\newcommand{\printrefmanindex}[3]{% +\cleardoublepage% +\phantomsection% +\setheaders{#2}% +\addcontentsline{toc}{chapter}{#2}% +\printindex[#1]% +\cutname{#3}% +} \newcommand{\tacindex}[1]{% \index{#1@\texttt{#1}}\index[tactic]{#1@\texttt{#1}}} |
