The best way to get a reasonable workaround for this would be to use
the org-file as a basis, generate a LaTeX and then check on that in a
plain LaTeX environment to then return to Org.


On Sun, 19 Oct 2025 at 16:30, Ihor Radchenko <[email protected]> wrote:
>
> Max Nikulin <[email protected]> writes:
>
> >> -            contents
> >> +            (or contents "\\leavevmode")
> >>              (let ((case-fold-search t)
> >
> > "\\penalty0" may be safer (perhaps with additional "\\relax " or newline
> > for a case that next portion of text will be started from a number
> > without any space). I was not aware that penalties are not combined by
> > TeX, any is considered as a break point. There are various tricks like
> > \vfil\penalty100\vfilneg to allow variation of page height.
> >
> > Maybe e.g. 100 should be used instead of zero to make less probable page
> > break between section and subsection titles. (Carefully prepared text
> > likely will have at least a paragraph before next level header. Anyway
> > nobody expects that early drafts are carefully formatted.)

In the case of an ugly break, a 'manual' \clearpage may be enough (KISS).

> >
> > There are should be a user option to disable this workaround and
> > probably an "#+options:" keyword. It should be carefully tested with
> > inline headings (\paragraph{...} and similar).
> >
> > I still believe that it is a LaTeX issue. I see why it is not supported,
> > but any workaround may be fragile. I am really surprised that TeX does
> > not generate apparent warning due to a page of enormous height.
>
> What about simply \mbox{}?

\mbox{} may not work if its contents starts to grow.
>
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>

Best, /PA
-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

"Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
Year 1 of the New Koprocracy

Reply via email to