From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Controlling pagination on headings in Latex/PDF export? Date: Thu, 16 Feb 2012 20:44:12 +0100 Message-ID: <80obsyr2b7.fsf@somewhere.org> References: <44B0EAE8544C834188E8790873CDE1CC3E11EA@ARCEXCHANGE.arc.local> <16733.1329416454@alphaville> <44B0EAE8544C834188E8790873CDE1CC3E154C@ARCEXCHANGE.arc.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Jos'h, Jos'h Fuller wrote: > I am familiar with \newpage (and I especially like to put it at the front of > the document to keep my content out of my table of contents!), but I was > hoping to be able to do this in some more automatic fashion, since these are > long reports and I want to be able to process them unattended. > > Is it possible to do something like this: > > * Period... > ** Asset > #+latex: \keepthisstufftogether{begin} > *** DEPARTMENT A > | Table | Data | Here. | > | Table | Data | Here. | > | Table | Data | Here. | > #+latex: \keepthisstufftogether{end} > *** DEPARTMENT B > ... > > I have no idea what /actual/ LaTeX call fills in for > "\keepthisstufftogether" though... I have written such a thing, years ago, first for LaTeX, now for Org: --8<---------------cut here---------------start------------->8--- % how not to have a page break with what is following? \def\mykeepwithnextpar{\par\nobreak\@afterheading} --8<---------------cut here---------------end--------------->8--- and I put whereever it's needed --8<---------------cut here---------------start------------->8--- ** Asset #+latex: \mykeepwithnextpar{} *** DEPARTMENT A | Table | Data | Here. | | Table | Data | Here. | | Table | Data | Here. | *** DEPARTMENT B --8<---------------cut here---------------end--------------->8--- Does it work for you? Best regards, Seb -- Sebastien Vauban