%!TEX root = std.tex \printindex[generalindex] \clearpage \renewcommand{\indexname}{Index of grammar productions} \renewcommand{\preindexhook}{The first page number for each entry is the page in the general text where the grammar production is defined. The second page number is the corresponding page in the Grammar summary (Annex~\ref{gram}).\\} \printindex[grammarindex] \clearpage \renewcommand{\preindexhook}{} \renewcommand{\indexname}{Index of library names} \printindex[libraryindex] \clearpage \renewcommand{\preindexhook}{The entries in this section are rough descriptions; exact specifications are at the indicated page in the general text.\\} \renewcommand{\indexname}{Index of implementation-defined behavior} \printindex[impldefindex]