[OS X TeX] Index

Ross Moore ross.moore at mq.edu.au
Wed Jan 3 20:24:51 CET 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://tug.org/pipermail/macostex-archives/attachments/20240103/59ef5d9d/attachment-0001.htm>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://www.tug.org/mactex/faq/index.html
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list.