Text FormattingContinue last Footnote

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

Continue last Footnote

Post by Laurentius »

Is there a way to continue the last footnote? I mean:

Code: Select all

\documentclass{article}
\begin{document}

% can we define a command
\def\a{}
% such that

a\footnote{b}\a{c}

% produces the same result as

a\footnote{bc}

% ?

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Continue last Footnote

Post by cgnieder »

I don't think so. Or rather: if it is it surely isn't easy... (My knowlegde of LaTeX's output routine and the creation of footnotes is fairly limited (although I wrote a footnote related package.)

Is this related to your Format for short Footnotes thread?

Regards
site moderator & package author
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

Continue last Footnote

Post by Laurentius »

Yes, it is for this rule.
A short note may be set complete in the break-line of another note provided it is set ranged right, with more than 3 ems between the notes.
I don't know how to do this without displacing the second footnote in the text, which is unpractical. Maybe using an auxiliary file and a \toks for every footnote will work. I imagine redefining \footnote such that for long notes, it asks itself: is the next note of this page (or the page where this note ends), and is there space in the last line for the next note + 3em? If so, print it there.
Post Reply