How to create an orphan greg-line

41 views
Skip to first unread message

Olivier Leschenne

unread,
Dec 19, 2023, 2:47:34 PM12/19/23
to gregori...@googlegroups.com
Good evening !

I am laying out a fairly complex liturgical brochure; to improve the spaces I need to be able to leave orphaned song-lines, but I can't do it at all. Either the section title appears with 2 lines of song, or everything moves to the next page (and the preceding paragraphs are over-spaced).

None of the usual solutions for dealing with widows/orphans work. What can I do ? Attached is an example. Thanks for any helpful advice...

Olivier
GregorioOrphan.7z

Olivier L

unread,
Dec 20, 2023, 9:06:14 AM12/20/23
to Gregorio Users
Hello !

After additional research, I understood that the problem is linked to the management of the sections by LATEX.
There is a suitable snippet on Tex.Stackexchange to realize what I need,
Force Latex to allow orphan line at bottom
---------------------------------------------------------------------------
% SNIPPET StackExchange = allow orphan-line at page-bottom
\makeatletter%
\renewcommand\@afterheading{%
\@nobreaktrue
\everypar{%
\if@nobreak
\@nobreakfalse \clubpenalty 1
\if@afterindent \else {\setbox\z@\lastbox}
\fi
\else
\clubpenalty 1
\everypar{}%
\fi}%
}
\makeatother%
-----------------------------------------------------------------------------
Sincerely
Reply all
Reply to author
Forward
0 new messages