[OS X TeX] Entering specially formatted items in the index

Paul McCann paul.mccann at adelaide.edu.au
Tue Aug 29 02:25:30 EDT 2006


Alain Schremmer wrote:

> Now that the real important dust seems to have settled a bit, could  
> anyone help on how to index curly brackets?

The following minimal document works for me; that is, the first index  
entry (in the output) looks like

	{;} , 1

and the second index entry looks like

	something brack{}eted, 1

It required the standard latex => makeindex => latex sequence to  
produce the output with the index displayed. Having the sequence "\;"  
within the \index entry made latex rather unhappy, and required me to  
trash the .aux files before I could get the file to compile ( \; is a  
maths mode command for large horizontal space, so latex wants $ $  
around it. )

Best wishes,
Paul

========================================================================

\documentclass[12pt]{article}
\usepackage{makeidx}
\makeindex
\begin{document}

Something.\index{something brack\{\}eted}

Or other.\index{other}

Yeah, yeah. \index{\{;\} }

\printindex

\end{document}


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list