[tex-eplain] indexing appendices
Helmut Jarausch
jarausch at igpm.rwth-aachen.de
Mon Mar 3 10:44:17 CET 2008
Hi,
meanwhile I took a different approach which doesn't suffer from
any problems (I do have an append 'D')
As the result of my previous questions I have defined my
indexing macro '@' as follows
\catcode`\@=\active
\let\RefPageMarkUp=\relax
\newtoks\myreffirstarg
\def @#1|{\myreffirstarg={#1}\myrefoneortwo}
\def \myrefoneortwo{%
\ifx\RefPageMarkUp\relax
\edef\temp{\noexpand\sidx{\the\myreffirstarg}}%
\else
\edef\temp{\noexpand\sidx[pagemarkup=\RefPageMarkUp]{\the\myreffirstarg}}%
\fi
\temp
}
Now at the start of Index D I have
\def\RefPageMarkUp{AppD}
and my TeX-file producing the index contains a definition for each
index like
\def\AppD#1{D#1}
Many thanks for your help. Meanwhile I had a closer look
at Victor Eijkhout's TeX by Topic
which contains many of those tricky details in TeX.
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
More information about the tex-eplain
mailing list