I want to change the appearance of footnotes with the text, from
numbers to symbols and back to numbers. To do this, I've written a
small \symbolfootnote macro (mini example below), which does renew the
\thefootnote command. It works well, except for one thing: After I
change back to numbered footnotes, the footnote symbol is smaller than
it was originally! (I am using amsart, and I've noticed that this
strange behavior does not appear with the article class.)
How can I get the size of the footnote symbol back to its original
size?
Many thanks, Dirk
---
\documentclass[12pt]{amsart}
\newcommand{\symbolfootnote}[1]{%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
\footnote{#1}%
\setcounter{footnote}{0}
\renewcommand{\thefootnote}{\arabic{footnote}}%
}
\begin{document}
Normally, footnotes look like this.\footnote{Normal footnote.}
Now I want a footnote to appear as a symbol, like
this,\symbolfootnote{First footnote} and the remaining ones as
numbers, beginning again with one.\footnote{Second footnote}
However, now the footnote mark is smaller than it was before! (This
behavior does not happen with \emph{article}, rather than
\emph{amsart}.)
\end{document}
The easiest way to undo a change is to keep it local to group:
\begin{document}
Usual Text
{\renewcommand{...}{...} Some text under changed conditions
some more text} and now we switch back to normal.
\end{document}
You can also use a \begingroup \endgroup construction for larger
ammounts of text this might be easier to handle.
HTH, Georg
that is quite odd. No idea what's going on. Maybe it's like the babbel
bug (bad coding).
Here is a simpler minimal example (eliminating errors in homemade macros)
\documentclass{amsart}
\begin{document}
\footnote{test}
%\renewcommand\thefootnote{\Alph{footnote}} % works just fine
\renewcommand\thefootnote{\fnsymbol{footnote}} % this gives trouble
\footnote{test}
\renewcommand\thefootnote{\arabic{footnote}}
\footnote{test}
\end{document}
I'd like to see an explanation to
/daleif
the way amsart footnotes work, the size depends on a maths font size;
but in current latex, no[*] font is set up until it's needed.
if you look at the definition of \footnote in current latex, somewhere
in there is a completely void maths group: the only purpose of that is
to ensure maths fonts are set up, at the size of current text.
look at the definition of \footnote in your document, and you'll see
no sign of such a maths group: amsart relies on there being some other
maths to set up footnote size -- there's probably null maths in the
class itself, for this purpose.
in the case of your example, there's some maths which is not at
\normalsize -- \fnsymbol, which uses maths symbols, and goes into
maths to do so. before \fnsymbol, the font size used by footnotes is
the \scriptsize used by maths appearing in \normalsize text. after
\fnsymbol, the font size used by footnotes is the \scriptsize in
effect when \fnsymbol was run.
however, the obvious thing (providing a null bit of maths after the
use of \fnsymbol) doesn't seem to help much: it seems to produce
_larger_ footnote marks than before.
i'm running out of energy on this one -- if you'll submit an amsart
bug report via the latex bugs system, i'll add details of my analysis
on the off chance it'll save the ams people some time.
fwiw, i was working on the following reworking of your command:
\newcommand{\symbolfootnote}[1]{{%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
\footnote{#1}%
\setcounter{footnote}{0}%
}}
note: double braces to introduce a group inside the command so we
don't have to \renewcommand\thefootnote twice; also remember the
\setcounter is always \global, so it escapes the group.
[*] well, hardly any...
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge
I'll look into these responses as soon as I can find some time. The
answers are more involved than I expected...
- Dirk