Skip to content

Commit bd2ce5c

Browse files
jensmaurerzygoloid
authored andcommitted
Create a new index for library headers
and remove them from the index of library names.
1 parent d112530 commit bd2ce5c

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

source/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ reindex:
3838
$(STDPDF)
3939
$(STDPDF)
4040
makeindex generalindex
41+
makeindex headerindex
4142
makeindex libraryindex
4243
makeindex grammarindex
4344
makeindex impldefindex

source/back.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ \chapter{Bibliography}
6464
\printindex[grammarindex]
6565
}
6666

67+
\clearpage
68+
\renewcommand{\preindexhook}{}
69+
\renewcommand{\indexname}{Index of library headers}
70+
\renewcommand{\leftmark}{\indexname}
71+
{
72+
\raggedright
73+
\printindex[headerindex]
74+
}
75+
6776
\clearpage
6877
\renewcommand{\preindexhook}{}
6978
\renewcommand{\indexname}{Index of library names}

source/macros.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
% locations
114114
\newcommand{\indextext}[1]{\index[generalindex]{#1}}
115115
\newcommand{\indexlibrary}[1]{\index[libraryindex]{#1}}
116-
\newcommand{\indexhdr}[1]{\indextext{\idxhdr{#1}}\indexlibrary{\idxhdr{#1}}}
116+
\newcommand{\indexhdr}[1]{\indextext{\idxhdr{#1}}\index[headerindex]{\idxhdr{#1}}}
117117
\newcommand{\indexgram}[1]{\index[grammarindex]{#1}}
118118

119119
% Collation helper: When building an index key, replace all macro definitions

source/std.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
\input{tables}
5858

5959
\makeindex[generalindex]
60+
\makeindex[headerindex]
6061
\makeindex[libraryindex]
6162
\makeindex[grammarindex]
6263
\makeindex[impldefindex]

0 commit comments

Comments
 (0)