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'm trying to create multiple footnotes referencing from one point, that look like this:

lorem1,2

Searching for "multiple footnotes" shows up almost exclusively solutions for multiple references to one footnote. Here I have two separate footnotes, pointing from one place. I also don't want to merge them into one, because I tried it and it looks ugly.

Currently I resolved it in a quick and dirty way, writing:

lorem\footnote{foot1}$^{,}$\footnote{foot2}

Which shows up in the resulting PDF just fine, but I feel somehow bad about it. Is there a better way to do it?

share|improve this question

4 Answers 4

up vote 31 down vote accepted

Use the footmisc package and its multiple option.

\documentclass{article}

\usepackage[multiple]{footmisc}

\textheight=80pt% only for the example

\begin{document}

Some text.\footnote{A footnote}\footnote{And another one.}

\end{document}

enter image description here

share|improve this answer
    
And for use with hyperref see Holle's answer to Incompatibility between footmisc-option multiple and hyperref. –  Stephen Aug 14 '13 at 16:44

This (the footmisc solution) won't work if you also have the hyperref package loaded. Either turn off hyperfootnotes [hyperfootnotes=false] as an argument to hyperref, or use \textsuperscript{,}. This maintains the same font for the comma, whereas your workaround above inserts the math font, and it could be different.

share|improve this answer
    
Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit. –  doncherry Nov 16 '11 at 15:15
8  
This is actually mentioned in the footmisc documentation: "The hyperref package has ambitions to make hyperlinks from footnote marks to the corresponding footnote body; naturally this causes grief to footmisc, and unfortunately no remedy is currently known. If you use footmisc, suppress hyperref's hyper-footnotes, by loading it as: \usepackage[hyperfootnotes=false,...]{hyperref}. Further work on the interaction between the two packages is proposed, but not yet scheduled." –  doncherry Nov 16 '11 at 15:23
1  
@doncherry footmisc uses its own command \multfootsep, which defaults to "comma in current text font". it hasn't used a maths comma since 1997 (at least); this doesn't negate the point about hyperref compatibility, of course (hyperref wasn't publicly available when i wrote footmisc, and i never quite got around to retrofitting it). –  wasteofspace Sep 13 '12 at 10:58

Additionally to the mentioned footmisc and the solution “by hand” there are three more possibilities.

  1. The KOMA-Script classes offer the option footnotes=multiple:

    \documentclass{scrartcl}
    \KOMAoption{footnotes}{multiple}
    \textheight=50pt % for this example only
    \begin{document}
    Text\footnote{One}\footnote{Two}
    \end{document}
    

    enter image description here

    As this again is not compatible with hyperref KOMA-Script also offers the rather lengthy \multiplefootnoteseparator. The comma used in both cases is set by \multfootsep which is defined through

    \newcommand*\multfootsep{,}
    
  2. The memoir class natively supports multiple footnotes:

    \documentclass{memoir}
    \textheight=50pt % for this example only
    \begin{document}
    Text\footnote{One}\footnote{Two}
    \end{document}
    

    enter image description here

    Again this is not working together with hyperref so memoir also defines a macro for manual input, \multfootsep, which is defined like this:

    \newcommand*{\multfootsep}{\textsuperscript{\normalfont,}}
    
  3. Then there is fnpct - a package that was designed to offer a solution for the kerning between footnote marks and punctuation. As a sideeffect it also enables multiple footnotes that are compatiple with hyperref:

    \documentclass{article}
    \usepackage{fnpct}
    \usepackage[colorlinks]{hyperref}
    \textheight=50pt % for this example only
    \begin{document}
    Text\footnote{One}\footnote{Two}
    \end{document}
    

    enter image description here

share|improve this answer

Here is a very easy way to implement it for oneself with only four lines of code. One can redefine the footnote-command and have a look to the following command using \futurelet. If the next command is also a footnote-command a , is included. That's all. And it plays well with the hyperref-package.

\documentclass{article}
\usepackage{hyperref}

\let\oldFootnote\footnote
\newcommand\nextToken\relax

\renewcommand\footnote[1]{%
    \oldFootnote{#1}\futurelet\nextToken\isFootnote}

\newcommand\isFootnote{%
    \ifx\footnote\nextToken\textsuperscript{,}\fi}

\textheight=3cm
\begin{document}

Text\footnote{First footnote}\footnote{Second footnote}\footnote{Third footnote} Text\footnote{Fourth footnote} Text

\end{document} 

multiple footnotes

share|improve this answer
3  
A nice tutorial on how to use \futurelet! This solution seems to be so clean and simple that I wonder what are it's drawbacks. I mean, why there is a dozen of packages and classes for multiple footnotes that all fail on the integration with hyperref? –  Daniel Sep 13 '12 at 7:42

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.