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. Index\see{〈text〉}{〈page〉} seename\seealso{〈text〉}{〈page〉} alsoname<strong>The</strong> macros \see and \seealso are specifically for use in an \index command afterthe |. <strong>The</strong> \see command replaces the page number by the phrase ‘see 〈text〉’, while the\seealso command adds ‘see also 〈text〉’ to the entry. For example, in the source for thismanual I have\index{chapter!style|see{chapterstyle}}\index{figure|seealso{float}}A \see or \seealso should be used once only for a particular entry. <strong>The</strong> ‘see’ texts for\see and \seealso are stored in \seename and \alsoname, whose default definitionsare:\newcommand*{\seename}{see}\newcommand*{alsoname}{see also}<strong>The</strong> " and \ charactersIf, for some reason, you want to index something that includes one of the !, @, | or "characters there is the difficulty of persuading MakeIndex to ignore the special meaning.This is solved by the quote specifier, which is normally the " character. <strong>The</strong> characterimmediately after " is treated as non-special. For example, if you needed to index the @and ! characters:\index{"@ (commercial at)}\index{"! (exclamation)}<strong>The</strong> leading " is stripped off before entries are alphabetized.<strong>The</strong> escape specifier is used to strip the special meaning from the quote specifier. Thisis usually the \ character. So, to index the double quote character itself:\index{\" (double quote)}Example of using the special charactersHere is a short example of indexing the special characters. Given an input like this in thedocument\index{exclamation mark ("!)}\index{vicious|see{circle}}\index{atsign@\texttt{"@} sign|\textbf}\index{quote!double ("")}\index{circle|see{vicious}}then an index could eventually be produced that looks like:@ sign, 30circle, see viciousexclamation mark (!), 21quotedouble ("), 47vicious, see circle309

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

Saved successfully!

Ooh no, something went wrong!