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 21:25:01 +0100 Message-ID: <807gzmr0f6.fsf@somewhere.org> References: <44B0EAE8544C834188E8790873CDE1CC3E11EA@ARCEXCHANGE.arc.local> <16733.1329416454@alphaville> <44B0EAE8544C834188E8790873CDE1CC3E154C@ARCEXCHANGE.arc.local> <80obsyr2b7.fsf@somewhere.org> <44B0EAE8544C834188E8790873CDE1CC3E15DA@ARCEXCHANGE.arc.local> <44B0EAE8544C834188E8790873CDE1CC3E15F0@ARCEXCHANGE.arc.local> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Jos'h, Jos'h Fuller wrote: > OK, I'm an idiot. I forgot to put in the ":" after the "#+latex", so it > didn't get processed correctly. That happens to everybody... No need to be an idiot=C2=A0;-) > However, once I did put it in, it does work to keep the headings together= with > the table data. However... it also seems to embed the spurious word > "afterheading" (in italics) after most (but not all) of the top level hea= dings > in the file. > > So, it totally works to keep the headings and tables together, but the > /afterheading/ thing is very strange. > > I've probably still done something wrong. Any ideas? Strange. Maybe, you could send here an ECM (Minimal Complete Example) that shows the bug without the \mykeepwithnextpar and shows the afterheading problem with it... So that one can try to reproduce your problem without loosing too much time, in order to help you better and quicker. BTW, you should put \mykeepwithnextpar after the heading "DEPARTMENT A", not before (as I wrote)... >> > 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--- Best regards, Seb --=20 Sebastien Vauban