Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LuaLaTeX | preventing split footnotes

243 views
Skip to first unread message

coo...@nospamverizon.net

unread,
May 23, 2012, 8:58:37 AM5/23/12
to
Have a somewhat long-ish footnote I'd like to keep on a single page.
Thought all I needed to do was throw something like the following into
the preamble:

\interfootnotelinepenalty=10000


(i.e., bumping up a fair bit from the default of 100).

Alas, doesn't work - footnote is still split over two pages. I'm
compiling with LuaLateX, if that makes a difference.

Suggestions for things to try?

Thanks!

Enrico Gregorio

unread,
May 23, 2012, 3:29:25 PM5/23/12
to
What does

\the\interfootnotelinepenalty

produce if put somewhere after \begin{document} and \maketitle
(if you have it)?

Ciao
Enrico

zappathustra

unread,
May 24, 2012, 2:40:08 AM5/24/12
to
Enrico Gregorio <Facile.d...@in.rete.it> a écrit:
Perhaps \interfootnotelinepenalty is ok but the footnote is split
between two paragraphs. If it is the case, a simple redefinition of \par
at the beginning of the offending footnote may work:

\footnote{%
\def\par{\endgraf\penalty10000 }%
%
Blah blah blah (several paragraphs)...
}

Of course, adding the penalty by hand between the paragraphs is safer.

Best,
Paul

coo...@nospamverizon.net

unread,
May 24, 2012, 12:50:53 PM5/24/12
to
On 5/23/2012 3:29 PM, Enrico Gregorio wrote:
> <coo...@NOSPAMverizon.net> wrote:
>
>> Have a somewhat long-ish footnote I'd like to keep on a single page.
>> Thought all I needed to do was throw something like the following into
>> the preamble:
>>
>> \interfootnotelinepenalty=10000
>>
>>
>> (i.e., bumping up a fair bit from the default of 100).
>>
>> Alas, doesn't work - footnote is still split over two pages. I'm
>> compiling with LuaLateX, if that makes a difference.
>>
>> Suggestions for things to try?
>
> What does
>
> \the\interfootnotelinepenalty

10000

(In other words, I'd over-written the default.)

However, this isn't doing the trick.

coo...@nospamverizon.net

unread,
May 24, 2012, 12:54:12 PM5/24/12
to
On 5/23/2012 3:29 PM, Enrico Gregorio wrote:
> <coo...@NOSPAMverizon.net> wrote:
>
>> Have a somewhat long-ish footnote I'd like to keep on a single page.
>> Thought all I needed to do was throw something like the following into
>> the preamble:
>>
>> \interfootnotelinepenalty=10000
>>
>>
>> (i.e., bumping up a fair bit from the default of 100).
>>
>> Alas, doesn't work - footnote is still split over two pages. I'm
>> compiling with LuaLateX, if that makes a difference.
>>
>> Suggestions for things to try?
>
> What does
>
> \the\interfootnotelinepenalty

10000

(In other words, I *did* successfully over-ride the default). But it
isn't working.

But a key point is: it *DOES* work if I compile using LaTeX, but *DOES
NOT* work if I use LuaLaTex.

coo...@nospamverizon.net

unread,
May 24, 2012, 12:54:51 PM5/24/12
to
I'll give that a try. What I think is perhaps more of interest is
that it (increasing penalty) *DOES* work if I compile using LaTeX, but

Enrico Gregorio

unread,
May 24, 2012, 3:59:10 PM5/24/12
to
But does the break happen between paragraphs?

Ciao
Enrico

Ulrike Fischer

unread,
May 25, 2012, 3:41:37 AM5/25/12
to
Am Thu, 24 May 2012 12:54:51 -0400 schrieb
coo...@NOSPAMverizon.net:

> I'll give that a try. What I think is perhaps more of interest is
> that it (increasing penalty) *DOES* work if I compile using LaTeX, but
> *DOES NOT* work if I use LuaLaTex.

It would really be easier to help you if you would give an example.
I at least can't reproduce the problem from the vage informations
you have given so far.

In the following example both lualatex + pdflatex behave the same
way: \interfootnotelinepenalty=10000 suppress the footnote split, if
there is no \par in the footnote. If I add paragraphs (by
commenting/removing the \let\lips@par\relax) then both break.

\documentclass{article}
\usepackage{lipsum}
\interfootnotelinepenalty=10000
\begin{document}
\makeatletter
\lipsum[1-3]\footnote{\let\lips@par\relax
\lipsum[1-3]}\lipsum[1-4]
\end{document}

--
Ulrike Fischer

coo...@nospamverizon.net

unread,
May 25, 2012, 8:59:18 AM5/25/12
to
On 5/25/2012 3:41 AM, Ulrike Fischer wrote:
> Am Thu, 24 May 2012 12:54:51 -0400 schrieb
> coo...@NOSPAMverizon.net:
>
>> I'll give that a try. What I think is perhaps more of interest is
>> that it (increasing penalty) *DOES* work if I compile using LaTeX, but
>> *DOES NOT* work if I use LuaLaTex.
>
> It would really be easier to help you if you would give an example.
> I at least can't reproduce the problem from the vage informations
> you have given so far.

Can't, since its part of a 900+ page book! ;-)

coo...@nospamverizon.net

unread,
May 25, 2012, 8:59:59 AM5/25/12
to
On 5/24/2012 3:59 PM, Enrico Gregorio wrote:
> <coo...@NOSPAMverizon.net> wrote:
>
>> On 5/24/2012 2:40 AM, zappathustra wrote:
>>> Enrico Gregorio<Facile.d...@in.rete.it> a �crit:
Yes, it does. Why that should differ between LaTeX and LuaLaTeX is
beyond me.

Enrico Gregorio

unread,
May 25, 2012, 11:46:27 AM5/25/12
to
<coo...@NOSPAMverizon.net> wrote:

> On 5/24/2012 3:59 PM, Enrico Gregorio wrote:
> > <coo...@NOSPAMverizon.net> wrote:
> >
> >> On 5/24/2012 2:40 AM, zappathustra wrote:
> >>> Enrico Gregorio<Facile.d...@in.rete.it> a écrit:
pdftex and luatex are not precisely the same. The problem is
intriguing, but the answer might be very far from the specific
situation: the latter might find a legitimate break point that
the former doesn't because of differences in the fonts used
or because of slightly different computations.

Add \nobreak after the blank line.

Ciao
Enrico

Ulrike Fischer

unread,
May 25, 2012, 11:52:02 AM5/25/12
to
Am Fri, 25 May 2012 08:59:59 -0400 schrieb
coo...@NOSPAMverizon.net:

>> But does the break happen between paragraphs?

> Yes, it does. Why that should differ between LaTeX and LuaLaTeX is
> beyond me.

Different fonts, different line breaks, different page breaks,
different microtype features, different packages, different ...

--
Ulrike Fischer

Ulrike Fischer

unread,
May 25, 2012, 11:53:01 AM5/25/12
to
Am Fri, 25 May 2012 08:59:18 -0400 schrieb
coo...@NOSPAMverizon.net:

>> It would really be easier to help you if you would give an example.
>> I at least can't reproduce the problem from the vage informations
>> you have given so far.

> Can't, since its part of a 900+ page book! ;-)

The problematic page break involves two pages not 900.


--
Ulrike Fischer
0 new messages