[texhax] Macro expansion in \write environment

Reinhard Kotucha reinhard.kotucha at web.de
Mon Aug 1 01:40:45 CEST 2016

On 2016-07-31 at 21:45:13 +0000, Rodolfo Medina wrote:

 > Dear TeXperts out there,
 > I was having a look at the indexing macros from the TeXbook p.262
 > and trying to put the \mainentry macro into a \write environment as
 > one has to do so to build up an external index file.  But there are
 > errors, maybe related to TeX rules of macro expansion.  Please
 > whoever can suggest a way to have \mainentry work also within
 > \immediate\write...

Please don't just tell us that "there are errors".  This kind of
"information" is quite useless.  Please always provide the complete
error message.  Otherwise we can only guess.

And please send us a _small_ file which allows others to reproduce
your problem.  Especially because you assume that macro expansion
rules are involved it's necessary to know _exactly_ what you are


Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de

More information about the texhax mailing list