aboutsummaryrefslogtreecommitdiff
path: root/doc/refman/headers.hva
diff options
context:
space:
mode:
authorGuillaume Melquiond2015-04-02 15:12:43 +0200
committerGuillaume Melquiond2015-04-02 15:12:43 +0200
commitfe87c2cab20335b2d5dff61054700597e515f8a1 (patch)
tree930dafc745761136135af6175bf1ee0b01875d16 /doc/refman/headers.hva
parent933744fefc85da267ef8304e89e6e414bb960cce (diff)
Make sure that hyperref creates the proper links to the documentation indexes.
Diffstat (limited to 'doc/refman/headers.hva')
-rw-r--r--doc/refman/headers.hva24
1 files changed, 10 insertions, 14 deletions
diff --git a/doc/refman/headers.hva b/doc/refman/headers.hva
index df4aec272f..9714a29beb 100644
--- a/doc/refman/headers.hva
+++ b/doc/refman/headers.hva
@@ -8,23 +8,19 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{index}
\makeindex
-\newindex{tactic}{tacidx}{tacind}{%
-\protect\addcontentsline{toc}{chapter}{Tactics Index}Tactics Index}
-\newindex{command}{comidx}{comind}{%
-\protect\addcontentsline{toc}{chapter}{Vernacular Commands Index}%
-Vernacular Commands Index}
-\newindex{option}{optidx}{optind}{%
-\protect\addcontentsline{toc}{chapter}{Vernacular Options Index}%
-Vernacular Options 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}
-\newindex{error}{erridx}{errind}{%
-\protect\addcontentsline{toc}{chapter}{Index of Error Messages}Index of Error Messages}
-
-\renewindex{default}{idx}{ind}{%
-\protect\addcontentsline{toc}{chapter}{Global Index}%
-Global Index}
+\newcommand{\printrefmanindex}[3]{%
+\addcontentsline{toc}{chapter}{#2}%
+\printindex[#1]%
+\cutname{#3}%
+}
\newcommand{\tacindex}[1]{%
\index{#1@\texttt{#1}}\index[tactic]{#1@\texttt{#1}}}