[texhax] Indexing macros on TeXbook

Rodolfo Medina rodolfo.medina at gmail.com
Mon Aug 1 23:33:11 CEST 2016


Rodolfo Medina <rodolfo.medina at gmail.com> writes:

> "Daniel H. Luecking" <luecking at uark.edu> writes:
>
>> Rodolfo Medina wrote:
>>
>>> \immediate\write\index{\noexpand\beginindex first entry,
>>
>>> \the\pageno.\endindex}
>>
>>> \immediate\write\index{\noexpand\beginindex second entry,
>>
>>> \the\pageno.\endindex}
>>
>> Index entries require the page number of the actual occurrence of the
>> indexing command. This is not known until the page is shipped out. That is,
>> indexing commands require a delayed \write, not an \immediate\write.
>
> Thanks.  But page numbers seem to work perfectly.


Well, no, I see you are right.

Thanks

Rodolfo



More information about the texhax mailing list