On 09.06.2016 14:06, racoon wrote:
On 08.06.2016 22:57, racoon wrote:
On 08.06.2016 16:52, Richard Heck wrote:
On 06/08/2016 07:59 AM, racoon wrote:
Hi,
Maybe you know how to keep the description and quote together in the
attached document? Tanks!
One thing you can do is put it all in a minipage. But here's a more
general solution:
http://tex.stackexchange.com/questions/94699/absolutely-definitely-preventing-page-break
Thanks Richard. I remember now having tried the minipage but that
renders the footnote just below the description rather than where it
should be. I'll try the stack idea tomorrow.
Thanks Richard. Indeed the absolutelynopagebreak environment seems to do
the trick. A bit ugly but working.
Or as a module (attached) which restricts the ugliness to an ERT
containing {}.
Daniel
#\DeclareLyXModule{Absolutely No Pagebreak}
#DescriptionBegin
# http://tex.stackexchange.com/a/94702
#DescriptionEnd
Style Absolutely_No_Pagebreak
Category MainText
Margin Static
LatexType Environment
LatexName absolutelynopagebreak
NextNoIndent 1
ToggleIndent Never
LabelType No_Label
Preamble
\newenvironment{absolutelynopagebreak}
{\par\nobreak\vfil\penalty0\vfilneg
\vtop\bgroup}
{\par\xdef\tpd{\the\prevdepth}\egroup
\prevdepth=\tpd}
EndPreamble
End