From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Nobis Subject: Re: Controlling pagination on headings in Latex/PDF export? Date: Fri, 17 Feb 2012 09:05:04 +0100 Message-ID: References: <44B0EAE8544C834188E8790873CDE1CC3E11EA@ARCEXCHANGE.arc.local> <16733.1329416454@alphaville> <44B0EAE8544C834188E8790873CDE1CC3E154C@ARCEXCHANGE.arc.local> <80obsyr2b7.fsf@somewhere.org> <44B0EAE8544C834188E8790873CDE1CC3E15DA@ARCEXCHANGE.arc.local> <44B0EAE8544C834188E8790873CDE1CC3E15F0@ARCEXCHANGE.arc.local> <807gzmr0f6.fsf@somewhere.org> <24985.1329426160@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyIoj-0005lz-Nf for emacs-orgmode@gnu.org; Fri, 17 Feb 2012 03:05:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyIof-0004G3-GN for emacs-orgmode@gnu.org; Fri, 17 Feb 2012 03:05:21 -0500 Received: from basilikum.nobis-admin.de ([89.238.71.130]:53901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyIof-0004BZ-Be for emacs-orgmode@gnu.org; Fri, 17 Feb 2012 03:05:17 -0500 In-Reply-To: <24985.1329426160@alphaville> (Nick Dokos's message of "Thu, 16 Feb 2012 16:02:40 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Sebastien Vauban , emacs-orgmode@gnu.org Nick Dokos 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.