emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefan Nobis <stefan-ml@snobis.de>
To: nicholas.dokos@hp.com
Cc: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>, emacs-orgmode@gnu.org
Subject: Re: Controlling pagination on headings in Latex/PDF export?
Date: Fri, 17 Feb 2012 09:05:04 +0100	[thread overview]
Message-ID: <m1hayp9973.fsf@nobis-it.eu> (raw)
In-Reply-To: <24985.1329426160@alphaville> (Nick Dokos's message of "Thu, 16 Feb 2012 16:02:40 -0500")

Nick Dokos <nicholas.dokos@hp.com> writes:

> \def\mykeepwithnextpar{\par\nobreak\@afterheading}

> However, I find it exceedingly difficult to manufacture an example
> that will produce the bad break that the OP reports: LaTeX seems
> very reluctant to break after the headline.

Yes. That's because the above snippet is already part of the
definition of a section (from chapter down to paragraph). IIRC it's
defined in the latex kernel. Therefore it should not make any
difference if the command is only used directly after a sectioning
command.

One way to ensure that some part of the document is always seen as a
single entity by latex is to put it in a minipage (maybe there are
better options, but that's my fallback if I need to ensure that
something is always kept together).

-- 
Until the next mail...,
Stefan.

  reply	other threads:[~2012-02-17  8:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16 17:45 Controlling pagination on headings in Latex/PDF export? Jos'h Fuller
2012-02-16 18:20 ` Nick Dokos
2012-02-16 18:25   ` Jos'h Fuller
2012-02-16 18:58     ` Russell Adams
2012-02-16 19:44     ` Sebastien Vauban
2012-02-16 20:09       ` Jos'h Fuller
2012-02-16 20:16         ` Jos'h Fuller
2012-02-16 20:25           ` Sebastien Vauban
2012-02-16 21:02             ` Nick Dokos
2012-02-17  8:05               ` Stefan Nobis [this message]
2012-02-17  8:13                 ` Ian Barton
2012-02-17  8:55               ` Sebastien Vauban
2012-02-17 16:40                 ` Nick Dokos
2012-02-17 16:50                   ` Sebastien Vauban
2012-02-17 17:19                     ` Nick Dokos
2012-02-17 21:48                       ` Sebastien Vauban
2012-02-16 21:12           ` Nick Dokos
2012-02-16 23:12             ` Jos'h Fuller
2012-02-17  8:50               ` Stefan Nobis
2012-02-17  9:09               ` Stefan Nobis
2012-02-17 16:42                 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1hayp9973.fsf@nobis-it.eu \
    --to=stefan-ml@snobis.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).