[texhax] redefinition of \= does not get into footnotes

Morten Høgholm moho01ab at student.cbs.dk
Fri Sep 10 11:50:06 CEST 2004


On Fri, 10 Sep 2004 00:22:19 -0400, Alexandru Scorpan
<ascorpan at math.ufl.edu> wrote:

> Redefining \= to something else does not survive inside \footnote's.
>
> Example:
>
> \documentclass{article}
> \renewcommand{\=}{=}
> \begin{document}
> $A\=B$ % test
> \footnote{$A\=B$}
> \end{document}
>
> This yields A=B in the main text, but an error in the footnote (text  
> accent in math mode).

\footnote issues a \@parboxrestore (deep down) which reverts \= to it's
original meaning (in the core). The reason you ask? The tabbing
environment.

So you'd have to also do a
\makeatletter
\let\@acciii\=
\makeatother
after redefining \= in your preamble.
-- 
Morten Høgholm



More information about the texhax mailing list