Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use the following piece of code to put something as my footnote (borrowed from a friend).

{\let\thefootnote\relax\footnotetext <text> }

But what happens is after putting this, any further footnote will not have numbering with it. I was wondering how to resume the numbering. I believe \relax is the culprit here.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

You must be missing some group definition in your example, since

\documentclass{article}
\begin{document}
Here is some text\footnote{First footnote}\par
Here is some text{\let\thefootnote\relax\footnotetext{Second footnote}}\par
Here is some text\footnote{Last footnote}
\end{document}

produces

enter image description here

The use of braces around the redefinition of \thefootnote - called scoping or grouping - makes ordinary modifications to macros only survive within the group. That is, their regular definitions return outside the group.

However, it's best to define some form of macro to take care of you particular \footnote construction. See Consistent typography. Here's an example that produces the same output:

\documentclass{article}
\setlength{\textheight}{10\baselineskip}% Just for this example
\makeatletter
\let\oldfootnote\footnote
\def\footnote{\@ifstar\footnote@star\footnote@nostar}
\def\footnote@star#1{{\let\thefootnote\relax\footnotetext{#1}}}
\def\footnote@nostar{\oldfootnote}
\makeatother
\begin{document}
Here is some text\footnote{First footnote}\par
Here is some text\footnote*{Second footnote}\par
Here is some text\footnote{Last footnote}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.