[texhax] xindy: index entry with special characters

Lars Madsen daleif at imf.au.dk
Wed Jun 8 15:37:35 CEST 2011


Susan Dittmar wrote, On 2011-06-08 15:23:
> Dear folks,
> 
> after days of reading manuals and trying everything that I thought might
> even remotely have a chance of succeeding, I now turn to you.
> 
> I have a problem with xindy concerning special characters. For a computer
> manual, I would like to be able to produce index entries of
> 
> \index{\{}
> \index{\}}
> \index{\textasciicircum}
> \index{\textasciitilde}
> \index{\textasteriskcentered}
> \index{\textgreater}
> \index{\textless}
> 
> The first two make for unbalanced parantheses, the rest result in an empty
> sort string for xindy. Does one of you know how to make such index entries
> work?
> 
> Thanks in advance,
> 
> 	Susan
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


This works for me (not quite sure why it does not like \{ or \} in this 
case)

\documentclass[a4paper]{memoir}
\usepackage[T1]{fontenc}
\makeindex
\begin{document}

\index{\lbrace@\ensuremath{\lbrace}}
\index{\rbrace@\ensuremath{\rbrace}}
\index{\textasciicircum}
\index{\textasciitilde}
\index{\textasteriskcentered}
\index{\textgreater}
\index{\textless}

\printindex

\end{document}


-- 

/daleif


More information about the texhax mailing list