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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to achieve this:

enter image description here

Where I can cross-reference a footnote without it showing up as a superscript. However, I don't want to change the behavior of \footnote globally, I just want to be able to get this behavior in a few places while maintaining the default behavior of \footnote everywhere else.

Here is a MWE of what I have tried:

\documentclass{article}

\begin{document}

I want to refer to footnote~\ref{fnt:1}\footnote{Here is a footnote\label{fnt:1}.}.

\end{document}

And here is the result:

enter image description here

which is clearly not what I want. The problem is that I don't know how to make a footnote without generating an automatic superscripted cross-reference where it is created. Any ideas?

share|improve this question
    
Could your question be generalized to: You don't want \footnote to print a superscript, but just a number? The result is that you'll still be able to reference it (using \label-\ref), but \footnote will always print a number on the baseline in addition to the actual footnote text in the footer area. – Werner Mar 1 at 20:34
up vote 5 down vote accepted

Just use \footnotetext and increase the counter manually.

\documentclass{article}

\begin{document}

I want to refer to footnote~\ref{fnt:1}\stepcounter{footnote}\footnotetext{Here is a footnote\label{fnt:1}.}.

\end{document}
share|improve this answer

Instead of printing a superscript (via \textsuperscript), one can patch \@footnotemark to just print the number. The example below creates the option of using \inlinefootnote instead of \footnote to set either of the footnote styles.

enter image description here

\documentclass{article}
\usepackage[paperheight=13\baselineskip]{geometry}% Just for this example

\usepackage{etoolbox}
\makeatletter
\let\@inline@footnotemark\@footnotemark
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\@inline@footnotemark}{\@makefnmark}{\hbox{\normalfont\@thefnmark}}{}{}
\newcommand{\inlinefootnote}[1]{{%
  \let\@footnotemark\@inline@footnotemark% Temporarily update \@footnotemark
  \footnote{#1}% Set regular footnote
}}
\makeatother

\begin{document}

I want to refer\footnote{Here is a footnote.\label{fn:first}} to 
a footnote~\inlinefootnote{Here is another footnote.\label{fn:second}}.

See Footnotes~\ref{fn:first} and~\ref{fn:second}.

\end{document}

As can be seen, references still work as expected with either footnote styles.

share|improve this answer
    
This is great, except that I don't want to change the behavior globally. I just want to be able to do this in a couple of places, while maintaining the default footnote behavior everywhere else. – okj Mar 2 at 0:29
    
@okj: See my updated answer which provides \inlinefootnote as an option to switch to whenever you need. – Werner Mar 2 at 1:27

Here is a solution

\documentclass{article}

\begin{document}

I want to refer to footnote~\ref{fnt:1}%
\makebox[0pt]{\phantom{\footnotemark}}\footnotetext{Here is a footnote\label{fnt:1}.}.


\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.