[Help] [LaTeX top]

LaTeX footnotes

Three problems often encountered in latex are

How to get an unnumbered footnote?

The following definition should do the trick
\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}
use \blfootnote instead of \footnote. The standard footnote definition (from latex.tex) is
\def\footnote{\@ifnextchar[{\@xfootnote}{\stepcounter {\@mpfn}\xdef\@thefnmark{\thempfn}\@footnotemark\@footnotetext}}
for those with interest in the matter. See also next section for another way of doing this.

Symbols in footnotes

How to get an * or other type of symbol in the odd footnote? There are several ways of doing this. The following may be the simplest. Note that the \def\thefootnote{\fnsymbol{ctr}} would cause footnotes to have symbols rather than numbers; however, we want a symbol for one footnote only without having to switch back and forth. So
\long\def\symbolfootnote[#1]#2{\begingroup%
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
and use \symbolfootnote[1]{footnote} to get an * BTW. note that \symbolfootnote[0]{footnote} gives an unnumbered footnote.

If the symbol you want is not one of the ones listed, you'll need to redefine \@fnsymbol and add it

\def\@fnsymbol#1{\ifcase#1\or *\or \dagger\or \ddagger\or \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger \or \ddagger\ddagger \else\@ctrerr\fi\relax}
Perhaps like
\def\@fnsymbol#1{\ifcase#1\hbox{}\or *\or \dagger\or \ddagger\or \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger \or \ddagger\ddagger \or \mathchar"27C \else\@ctrerr\fi\relax}
which would allow \symbolfootnote[10]{footnote} to have a club as its mark.

How get endnotes?

See the macro file /usr/local/lib/texmf/tex/csli/endnotes.sty. I've repeated the documentation below:

How it works. This style file creates endnotes by taking the text and number of the footnotes and writing it out to a file called jobname.loe. (Due to memory constraints it cannot be stored in latex's internal memory.) When the \listofendnotes command is invoked, the file, jobname.loe, is then read back into latex.

To use the endnotes.sty file do the following

Modify the \documentstyle command as follows

\documentstyle[endnotes]{article} (or report...)
or when using \documentclass do
\usepackage{endnotes}
You can use either \footnote{text} or \endnote{text} but it is probably preferable to use \footnote for ease of conversion.

At the end of the document place the command \listofendnotes where you want the endnotes to appear (it must be after the last endnote). You may wish to precede this command with a \section*{Endnotes} or related command

to modify the format of the endnotes, change the definition of \makendnote

\makendnote takes two arguments (the superscripted endnote number and the text of the endnote)

the default format is

\long\def\makendnote#1#2{%
\edef\@currentlabel{\csname p@footnote\endcsname#1}%
\indent$^{#1}$#2}
i.e., indent superscripted number followed by the text of the endnote in normal paragraph mode. The currentlabel definition allows cross referencing.
[CSLI] [Help] [Stanford] [Search CSLI help pages] [Search CSLI pages] [Search Stanford]
Emma Pease
Last modified: Wed Jun 7 16:47:42 PDT 2000 by emma@csli.stanford.edu