[texhax] Macro expansion in \write environment

Rodolfo Medina rodolfo.medina at gmail.com
Mon Aug 1 15:27:10 CEST 2016

Reinhard Kotucha <reinhard.kotucha at web.de> writes:

> 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
> doing.

Thanks, it's all right now.  I had probably misunderstood the use of
\mainentry.  Now I'm facing another problem with those D. Knuth's indexing
macros...  I'll be posting about it.




More information about the texhax mailing list