[texhax] \index command to use my page numbers.
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Tue Oct 19 16:13:07 CEST 2010
On Mon, Oct 18, 2010 at 11:12:42AM +0200, Uwe Lueck wrote:
> Another idea would to have your own \Index command, about as follows:
>
> \newcommand*{\Index}[1]{{\let\thepage\thePage\index{#1}}}
Because of \protected at write the whatsit will contain the token
\thepage instead of the expansion of \thePage. The whatis
is written and \thepage is then expanded at shipout time
long after the group of \Index is closed.
Yours sincerely
Heiko Oberdiek
More information about the texhax
mailing list