[texhax] Problem with \let

Chris Rowley C.A.Rowley at open.ac.uk
Wed Aug 22 17:04:45 CEST 2007


The moral being that LaTeX programming is no longer a superset of
basic TeX programming.  It's called progress!

Best,  chris

> \l is defined with \DeclareTextCommand which leads to the following  
> firstlevel expansion:
>    \l ->\OT1-cmd \l \OT1\l
> The \l contained therein is used when writing to files to ensure  
> robustness, so when you do \let\pol\l it still writes \l to the aux file,  
> where references are stored.
> You need to use the interface provided by LaTeX for this and use the  
> definition from ot1enc.def only exchanging \pol for \l:
>    \DeclareTextCommand{\pol}{OT1}{\hmode at bgroup\@xxxii l\egroup}
> -- 
> Morten

More information about the texhax mailing list