I am trying to put {
in index using xindy
as my index processor and xelatex
as the typesetting format:
\documentclass{article}
\usepackage{makeidx}
\makeindex
\usepackage{fontspec}
\begin{document}
This is a test
\index{\texttt{\{}}
\printindex
\end{document}
However, I get the following error:
Runaway argument?
{\texttt{\{}} \printindex \end{document}
! File ended while scanning use of \@wrindex.
<inserted text>
\par
<*> test.tex
What's wrong and how do I fix it?