Skip to content

Commit 47fa06e

Browse files
jensmaurerzygoloid
authored andcommitted
[index] Use LaTeX package 'imakeidx' to allow for more indices.
1 parent c19ff87 commit 47fa06e

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

source/back.tex

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,9 @@ \chapter{Bibliography}
8080
}
8181

8282
\clearpage
83-
\renewcommand{\indexname}{Index of grammar productions}
8483
\renewcommand{\preindexhook}{The first bold page number for each entry is the page in the
8584
general text where the grammar production is defined. The second bold page number is the
8685
corresponding page in the Grammar summary\iref{gram}. Other page numbers refer to pages where the grammar production is mentioned in the general text.\\}
87-
\renewcommand{\leftmark}{\indexname}
8886
{
8987
\raggedright
9088
\printindex[grammarindex]
@@ -93,17 +91,13 @@ \chapter{Bibliography}
9391
\clearpage
9492
\renewcommand{\preindexhook}{The bold page number for each entry refers to
9593
the page where the synopsis of the header is shown.\\}
96-
\renewcommand{\indexname}{Index of library headers}
97-
\renewcommand{\leftmark}{\indexname}
9894
{
9995
\raggedright
10096
\printindex[headerindex]
10197
}
10298

10399
\clearpage
104100
\renewcommand{\preindexhook}{}
105-
\renewcommand{\indexname}{Index of library names}
106-
\renewcommand{\leftmark}{\indexname}
107101
{
108102
\raggedright
109103
\printindex[libraryindex]
@@ -113,8 +107,6 @@ \chapter{Bibliography}
113107
\renewcommand{\preindexhook}{The bold page number for each entry is the page
114108
where the concept is defined.
115109
Other page numbers refer to pages where the concept is mentioned in the general text.\\}
116-
\renewcommand{\indexname}{Index of library concepts}
117-
\renewcommand{\leftmark}{\indexname}
118110
{
119111
\raggedright
120112
\printindex[conceptindex]
@@ -123,7 +115,6 @@ \chapter{Bibliography}
123115
\clearpage
124116
\renewcommand{\preindexhook}{The entries in this index are rough descriptions; exact
125117
specifications are at the indicated page in the general text.\\}
126-
\renewcommand{\indexname}{Index of implementation-defined behavior}
127118
\renewcommand{\leftmark}{Index of impl.-def. behavior}
128119
{
129120
\raggedright

source/latexmkrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ sub makeglo2gls {
33
system("makeindex -s basic.gst -o '$_[0]'.gls '$_[0]'.glo");
44
}
55

6-
$makeindex = 'stem=`basename %S .idx`; makeindex %O `test -f ${stem}.ist && echo "-s ${stem}.ist"` -o %D %S';
6+
$pdflatex = "pdflatex -shell-escape %O %S"

source/std.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
\usepackage{amsmath} % additional math symbols
2525
\usepackage{mathrsfs} % mathscr font
2626
\usepackage[final]{microtype}
27+
\usepackage[splitindex,original]{imakeidx}
2728
\usepackage{multicol}
2829
\usepackage{lmodern}
2930
\usepackage{xcolor}
@@ -59,12 +60,12 @@
5960
\input{macros}
6061
\input{tables}
6162

62-
\makeindex[generalindex]
63-
\makeindex[grammarindex]
64-
\makeindex[headerindex]
65-
\makeindex[libraryindex]
66-
\makeindex[conceptindex]
67-
\makeindex[impldefindex]
63+
\makeindex[name=generalindex,options=-s generalindex.ist,title=Index]
64+
\makeindex[name=grammarindex,title=Index of grammar productions]
65+
\makeindex[name=headerindex,title=Index of library headers]
66+
\makeindex[name=libraryindex,options=-s libraryindex.ist,title=Index of library names]
67+
\makeindex[name=conceptindex,title=Index of library concepts]
68+
\makeindex[name=impldefindex,title=Index of implementation-defined behavior]
6869
\makeglossary[xrefindex]
6970
\makeglossary[xrefdelta]
7071

0 commit comments

Comments
 (0)