Discussion:
Separating footnote markers with an en dash.
Athel Cornish-Bowden
2017-10-13 17:17:06 UTC
Raw Message
I am using the memoir class, and in places I want a lot of footnotes
one after another. I have studied Chapter 12 of the manual without
finding a way of doing what I want, which is to have the footmarkers
like this:

1-6

and not like this

1,2,3,4,5,6

Here is a minimal example:

\documentclass{memoir}
\begin{document}
footnote}\footnote{Another footnote}\footnote{Yet another}\footnote{And
another}\footnote{A fifth}\footnote{A sixth}\\[0.2cm]
That gives all the footnote markers separated with commas, but I'd like
the text to look like this:\\[0.2cm]
Smith wrote a long series of papers about this.$^{1-6}$
\end{document}
--
athel
Peter Flynn
2017-10-13 18:08:01 UTC
Raw Message
I am using the memoir class, and in places I want a lot of footnotes one
after another. I have studied Chapter 12 of the manual without finding a
1-6
and not like this
1,2,3,4,5,6
Like this?

=================================================================
\documentclass{memoir}
\parskip2mm
\parindent0pt
\begin{document}
footnote\label{foo}}\footnote{Another footnote}\footnote{Yet
another}\footnote{And another}\footnote{A fifth}\footnote{A
sixth\label{bar}}

That gives all the footnote markers separated with commas, but I'd
like the text to look like this:

Smith wrote a long series of papers about
this.\textsuperscript{\ref{foo}--\ref{bar}}
\end{document}
=================================================================

It could be automated, eg \footnoterange{foo}{bar} but whichever way,
you should do it with labels and refs so that you don't have to worry
about later editing upsetting the numbering scheme.

(BTW don't use \\[.2cm] it you actually mean a new paragraph. \\ is for
*premature* line-breaks, not normal ones.)

///Peter
Clemens Niederberger
2017-10-14 09:11:57 UTC
Raw Message
\documentclass{memoir} \parskip2mm \parindent0pt \begin{document}
One shouldn't set \parskip directly. The memoir manual recommends to use

\documentclass{memoir}
\nonzeroparskip
% or \abnormalparskip{2mm}
\setlength{\parindent}{0pt}
\begin{document}
The length \parskip is the inter-paragraph spacing, and is normally
\setlength{\parskip}{2\baselineskip}> but you are likely to find that many things have changed that you did
not expect, because LaTeX uses the \par command in many places that are
not obvious.
Peter Flynn
2017-10-14 19:00:09 UTC
Raw Message
Post by Clemens Niederberger
\documentclass{memoir} \parskip2mm \parindent0pt \begin{document}
One shouldn't set \parskip directly. The memoir manual recommends to use
I'm not a memoir user so I was unfamiliar with their recommendations.
But yes, abiding by their way of doing things would be a good idea.
Post by Clemens Niederberger
It could be automated, eg \footnoterange{foo}{bar}
[...]
Thanks (to Clemens as well). \footnoterange seems it should be like
just what I want. Unfortunaely I can't get it to work.
I must apologise. I had no idea there actually was a package called
footnoterange.

I was actually just suggesting a macro to tidy up the way I had
expressed it...not suggesting to use the footnoterange package that I
was unaware of :-)
Post by Clemens Niederberger
Even the following example, which is reproduced (apart from lines
beinning %) from
https://tex.stackexchange.com/questions/44165/compressing-consecutive-footnote-marks,[snip]
Looks broken to me. It complains about
LaTeX Warning: Reference `*' on page 1 undefined on input line 9.

and then complains about some of its own code:

! Extra }, or forgotten \endgroup.
Post by Clemens Niederberger
Your own example works as intended for the second reference to the set
of footnotes, but not for the first, which still come out separated by
commas.
Ah. You want the *points of reference* to be a range? Sorry, I had
misunderstood your original (about this.$^{1-6}$) to mean you only
wanted references to the footnotes as a range.
Post by Clemens Niederberger
Is there a way to define and label footnotes without actually
implementing them?
That does appear to be what the footnoterange package intends.
But like you, I can't see why it's broken.
Post by Clemens Niederberger
Incidentally, I knew I was being naughty with \\[.2cm], and I wouldn't
do that in a real document.
:-) All documents are real :-)

///Peter
Athel Cornish-Bowden
2017-10-14 13:57:24 UTC
Raw Message
Post by Peter Flynn
I am using the memoir class, and in places I want a lot of footnotes one
after another. I have studied Chapter 12 of the manual without finding a
1-6
and not like this
1,2,3,4,5,6
Like this?
=================================================================
\documentclass{memoir}
\parskip2mm
\parindent0pt
\begin{document}
footnote\label{foo}}\footnote{Another footnote}\footnote{Yet
another}\footnote{And another}\footnote{A fifth}\footnote{A
sixth\label{bar}}
That gives all the footnote markers separated with commas, but I'd
Smith wrote a long series of papers about
this.\textsuperscript{\ref{foo}--\ref{bar}}
\end{document}
=================================================================
It could be automated, eg \footnoterange{foo}{bar} but whichever way,
you should do it with labels and refs so that you don't have to worry
about later editing upsetting the numbering scheme.
(BTW don't use \\[.2cm] it you actually mean a new paragraph. \\ is for
*premature* line-breaks, not normal ones.)
///Peter
Thanks (to Clemens as well). \footnoterange seems it should be like
just what I want. Unfortunaely I can't get it to work. Even the
following example, which is reproduced (apart from lines beinning %)
from
https://tex.stackexchange.com/questions/44165/compressing-consecutive-footnote-marks,

======

\documentclass{article}
\usepackage{footnoterange}
\begin{document}
This text bears a multiplicity of footnotes%
\begin{footnoterange}%
\footnote{Lorum}\footnote{ipsum}\footnote{dolor}%
\footnote{sit}\footnote{amet,}\footnote{consectetur}%
\end{footnoterange}%
which are referenced as one footnoterange.
\end{document}

======

gives an error on the penultimate line: extra }, or forgotten endgroup.
It's quite happy with \begin{footnoterange}, but doesn't like
\end{footnoterange}.

Your own example works as intended for the second reference to the set
of footnotes, but not for the first, which still come out separated by
commas. Is there a way to define and label footnotes without actually
implementing them?

Incidentally, I knew I was being naughty with \\[.2cm], and I wouldn't
do that in a real document.
--
athel
Athel Cornish-Bowden
2017-10-14 16:57:10 UTC
Raw Message
Post by Athel Cornish-Bowden
[ ... ]
Thanks (to Clemens as well). \footnoterange seems it should be like
just what I want. Unfortunately I can't get it to work.
[ ... ]
Just a quick note to say that I've got it to do what I want in a real
document (using footnotetext[4]{fnote}), albeit in a clunky way,
manually numbering the footnotes and resetting the footnote counter.
It's not ideal, but it works, and there will only be one or places in
the document where I need a lot of footnotes together.
--
athel
Clemens Niederberger
2017-10-14 08:52:55 UTC
Raw Message
I am using the memoir class, and in places I want a lot of footnotes one
after another. I have studied Chapter 12 of the manual without finding a
1-6
and not like this
1,2,3,4,5,6
There is the footnoterange package:
https://tex.stackexchange.com/q/44165/5049
Peter Wilson
2017-10-14 18:59:02 UTC
Raw Message
I am using the memoir class, and in places I want a lot of footnotes one
after another. I have studied Chapter 12 of the manual without finding a
1-6
and not like this
1,2,3,4,5,6
\documentclass{memoir}
\begin{document}
footnote}\footnote{Another footnote}\footnote{Yet another}\footnote{And
another}\footnote{A fifth}\footnote{A sixth}\\[0.2cm]
That gives all the footnote markers separated with commas, but I'd like
the text to look like this:\\[0.2cm]
Smith wrote a long series of papers about this.$^{1-6}$
\end{document}
I was, reluctantly, going to suggest you might have a better chance
that seems to be the place where everyone goes now. However you do have

I was not aware of the footnoterange package. However I tried it
with both the memoir and book classes and it failed with an error
report. Here's an MWE.

\documentclass{memoir}% or book
\usepackage{footnoterange}
\begin{document}
Some text.\footnote{A}\footnote{B}

Another paragraph.%
\begin{footnoterange}
\footnote{C}\footnote{D}\footnote{E}
\end{footnoterange}

Third paragraph.
\end{document}

I know that typographically one is meant to put footnotes at the
end of the relevant sentence but then if there are multiple footnotes to
which part of the sentence does each refer to? How about footnoting
internally adjacent to the relevant words or having one big footnote at
the end incorporating all the individual ones (as in:
Smith wrote a long series of papers.\footnote{paper1, paper2, paper3.})?

Peter W.