[texhax] redefinition of \= does not get into footnotes
Robin Fairbairns
Robin.Fairbairns at cl.cam.ac.uk
Fri Sep 10 12:26:46 CEST 2004
> >> It doesn't seem to work yet. First I put your lines of code in my
> >> preamble, but LaTeX was complaining about ``missing
> >> \begin{document}''. Then surrounded it by \AtBeginDocument (in my
> >> .sty file), but got ``missing $ inserted''. I guess \@aciii likes to
> >> be text, not \mathbin{\,=\,}...
> >
> > Do this:
> >
> > \makeatletter
> > \renewcommand*\@acciii{=}
> > \renewcommand*\={\@acciii}
> > \makeatother
>
> The point of my maneuver was to add some extra space around =, so I
> tried \renewcommand*\@aciii{\mathbin{\,=\,}} instead, but got ``missing
> $ inserted''. Tried your version, same error.
so what you really want is
\renewcommand*\@aciii{\ifmmode\expandafter\mathbin\fi{\,=\,}}
so you don't claim to be putting maths there if you're not in maths to
start with.
> I guess I should stick to my crappy hack, going wth
>
> \let\footnoteclone\footnote
> \renewcommand{\footnote}[1]{%
> \footnoteclone{\renewcommand\={\mathbin{\,=\,}}#1}}
which has exactly the same problem.
More information about the texhax
mailing list