[OS X TeX] Index
Ross Moore
ross.moore at mq.edu.au
Wed Jan 3 14:24:51 EST 2024
Hi George.
You have extra braces around some of the sub-entries.
this affects the sorting;
viz. from the .ind. file
\item \tikzname{} command
\subitem \com{draw}, 1
\subitem \com{foreach}, 1
\subitem \com{{filldraw}}, 1
\subitem \com{{fill}}, 1
Hope this helps.
Ross
On 4 Jan 2024, at 4:27 am, George Gratzer via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
\documentclass{amsart}
\usepackage{newlattice}
\makeindex
\newcommand{\tikzname}{TiKz}
%copied from amslatex.tex \com{} makes a command
\newcommand{\bslash}{\symbol{'134}}%backslash
\newcommand{\bsl}{{\ttt{\bslash}}}
\newcommand{\com}[1]{\textup{{\ttt{\bsl#1}}}}%command \ + \texttt + textup
\begin{document}
xxx
\index{draw@\com{draw}, \tikzname{} command}%
\index{tikzname command@\tikzname{} command!\com{draw}}%
\index{draw@\com{draw}, \tikzname{} command}%
\index{tikzname command@\tikzname{} command!\com{draw}}%
\index{foreach@\com{foreach}, \tikzname{} command}%
\index{tikzname command@\tikzname{} command!\com{foreach}}%
\index{fill@\com{fill}, \tikzname{} command}%
\index{tikzname command@\tikzname{} command!\com{{fill}}}%
\index{filldraw@\com{filldraw}, \tikzname{} command}%
\index{tikzname command@\tikzname{} command!\com{{filldraw}}}%
\printindex
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20240103/59ef5d9d/attachment.htm>
More information about the MacOSX-TeX
mailing list