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.

Consecutive footnotes can be separated by commas by invocation of the multiple option of the footmisc package:

enter image description here

\documentclass{article}
\usepackage[multiple]{footmisc}
\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.}%
\footnote{Second note.}.%
\end{document}

This comma delineation fails, however, if footnotes are converted to endnotes using the endnotes package:

enter image description here

\documentclass{article}
\usepackage{endnotes}
\let\footnote=\endnote
\usepackage[multiple]{footmisc}
\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.}%
\footnote{Second note.}.%
\theendnotes
\end{document}

How can one preserve automated comma delineation of consecutive endnotes?

share|improve this question
4  
you need a revised version of footmisc; i'll see what i can do. (the problem is that footmisc redefines \footnote and blunders on...) –  wasteofspace May 2 '12 at 9:28

1 Answer 1

Manual solution

An admittedly not very comfortable solution is doing it manually, for example with KOMA-Script's \multiplefootnoteseparator:

\documentclass{scrartcl}
% for convenient typing:
\let\mfs\multiplefootnoteseparator
\usepackage{endnotes}
\let\footnote=\endnote
\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.}\mfs%
\footnote{Second note.}.%
\theendnotes
\end{document}

Or with a standard class something like this:

\documentclass{article}
\newcommand*\multiplefootnoteseparator{%
  \textsuperscript{\multfootsep}\nobreak
}
\newcommand*\multfootsep{,}
% for convenient typing:
\let\mfs\multiplefootnoteseparator
\usepackage{endnotes}
\let\footnote=\endnote
\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.}\mfs%
\footnote{Second note.}.%
\theendnotes
\end{document}

Alternative

My not yet officially puplished package fnpct offers a different solution. If loaded together with the endnotes package it provides the command

\multendnote{<fn1>;<fn2>;...}

The reason for this command is that the package's purpose is actually a different one, namely to be a solution to this question.

The default:

So you could say something like this:

\documentclass{article}
\usepackage{endnotes}
\usepackage{fnpct}

\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\multendnote{First note.;Second note.}.%
\theendnotes
\end{document}

The multiple option:

The package offers an option multiple which turns every \footnote into a \multfootnote and likewise every \endnote into a \multendnote. So this might be more comfortable (as long as one does not forget that the semicolon delimits different notes):

\documentclass{article}
\usepackage{endnotes}
\usepackage[multiple]{fnpct}

\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\endnote{First note.;Second note.}.%
\theendnotes
\end{document}

You now also can \let the \footnote command to \endnote:

\documentclass{article}
\usepackage{endnotes}
\usepackage[multiple]{fnpct}
\let\footnote\endnote

\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.;Second note.}.%
\theendnotes
\end{document}

How it looks:

All three examples look like this:

enter image description here

Note that in all cases the dot is not placed after instead of before the footnote marks. If you don't want that use the package option punct-after to get the result below.

enter image description here

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.