GeneralCustomizing \footref mark (footmisc package)

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Customizing \footref mark (footmisc package)

Post by meho_r »

Hi,

I noticed that footmisc package has a nice feature for referring to a footnote, but the problem is that the number is displayed in the format of \footnotemark, i.e., superscript. I want to change the way it's displayed only when using \footref, while in footnotes \footnotemark should be superscript. Here's an example:

Code: Select all

\documentclass[12pt,a4paper]{book}
\usepackage{footmisc}

\begin{document}
Test\footnote{Testing footnote\label{fref}}. Look at the next page\ldots{}

\newpage

How to make footref display normal number and not superscript when referring? 
\begin{quote}
''Look at the footnote~\footref{fref} on the page~\pageref{fref}.'' 
\end{quote}

should be: 

\begin{quote}
''Look at the footnote~1 on the page~1.''
\end{quote}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Customizing \footref mark (footmisc package)

Post by frabjous »

Just use \ref{fref} rather than \footref{fref} -- and in fact, then you don't even need the footmisc package.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Customizing \footref mark (footmisc package)

Post by meho_r »

Oh, man. It is time for me to do some serious "rereading" of LaTeX literature :-)

Thank you very much for the solution, frabjous, I haven't thought \ref would work that way in footnotes. Every day one learns something new :-)
Post Reply