12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

17.2. IndexIn order to make La<strong>TeX</strong> collect indexing information the declaration \makeindex must beput in the preamble. By default the raw index data is put into the jobname.idx file. Ifthe optional 〈file〉 argument is given then index data can be output to file.idx. Several\makeindex declarations can be used provided they each call for a different file.<strong>The</strong> \printindex command will print an index where by default the indexed itemsare assumed to be in a file called jobname.ind. If the optional 〈file〉 argument is giventhen the indexed items are read from the file called file.ind.\begin{theindex} entries \end{theindex}\onecolindex \twocolindex\indexname<strong>The</strong> index entries are typeset within the theindex environment. By default it is typesetwith two columns but following the \onecolindex declaration the environment uses asingle column. <strong>The</strong> default two column behaviour is restored after the \twocolindexdeclaration. <strong>The</strong> index title is given by the current value of \indexname (default ‘Index’).\indexintoc \noindexintoc<strong>The</strong> declaration \indexintoc will cause the theindex environment to add the title to theToC, while the declaration \noindexintoc ensures that the title is not added to the ToC.<strong>The</strong> default is \indexintoc.\indexcolsep\indexrule<strong>The</strong> length \indexcolsep is the width of the gutter between the two index columns <strong>The</strong>length \indexrule, default value 0pt, is the thickness of a vertical rule separating the twocolumns.\preindexhook<strong>The</strong> macro \preindexhook is called after the title is typeset and before the index listingstarts. By default it does nothing but can be changed. For example\renewcommand{\preindexhook}{Bold page numbers are usedto indicate the main reference for an entry.}\indexmark\indexmark may be used in pagestyles for page headers in an index. Its default definitionis:\newcommand*{\indexmark}{}but could be redefined like, say,\renewcommand*{\indexmark}{\markboth{\indexname}{\indexname}}\ignorenoidxfile\reportnoidxfile303

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!