From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jos'h Fuller Subject: Re: Controlling pagination on headings in Latex/PDF export? Date: Thu, 16 Feb 2012 20:16:01 +0000 Message-ID: <44B0EAE8544C834188E8790873CDE1CC3E15F0@ARCEXCHANGE.arc.local> References: <44B0EAE8544C834188E8790873CDE1CC3E11EA@ARCEXCHANGE.arc.local> <16733.1329416454@alphaville> <44B0EAE8544C834188E8790873CDE1CC3E154C@ARCEXCHANGE.arc.local> <80obsyr2b7.fsf@somewhere.org> <44B0EAE8544C834188E8790873CDE1CC3E15DA@ARCEXCHANGE.arc.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry7kl-0005fK-9t for emacs-orgmode@gnu.org; Thu, 16 Feb 2012 15:16:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ry7kg-00048z-I7 for emacs-orgmode@gnu.org; Thu, 16 Feb 2012 15:16:31 -0500 Received: from mail.arcproductions.com ([206.191.120.230]:59333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry7kg-00048p-E6 for emacs-orgmode@gnu.org; Thu, 16 Feb 2012 15:16:26 -0500 In-Reply-To: <44B0EAE8544C834188E8790873CDE1CC3E15DA@ARCEXCHANGE.arc.local> Content-Language: en-US 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: Jos'h Fuller , Sebastien Vauban , "emacs-orgmode@gnu.org" OK, I'm an idiot. I forgot to put in the ":" after the "#+latex", so it did= n't get processed correctly. However, once I did put it in, it does work to keep the headings together w= ith the table data. However... it also seems to embed the spurious word "af= terheading" (in italics) after most (but not all) of the top level headings= in the file. So, it totally works to keep the headings and tables together, but the /aft= erheading/ thing is very strange.=20 I've probably still done something wrong. Any ideas? Thanks again! Jos'h ___________________________________________________________________________= ____ Jos'h Fuller, Production Programmer Arc Productions Ltd. =20 p: 416.682.5237 | f: 416.682.5209 | http://www.arcproductions.= com=20 230 Richmond Street East | Toronto, ON M5A 1P4 | > -----Original Message----- > From: emacs-orgmode-bounces+jos'h.fuller=3Darcproductions.com@gnu.org > [mailto:emacs-orgmode-bounces+jos'h.fuller=3Darcproductions.com@gnu.org] > On Behalf Of Jos'h Fuller > Sent: Thursday, February 16, 2012 3:09 PM > To: Sebastien Vauban; emacs-orgmode@gnu.org > Subject: Re: [O] Controlling pagination on headings in Latex/PDF > export? >=20 > Hi Sebastien! >=20 > I tried it, and it didn't work. However, I may not have set it up > right: >=20 > --snip!-- > #+latex \def\mykeepwithnextpar{\par\nobreak\@afterheading} >=20 > #+latex: \newpage > * Period... > ** Asset > #+latex: \mykeepwithnextpar{} > *** DEPARTMENT > | Table | Data | Here | > --snip!-- >=20 > Did I do this correctly or does the "mykeepwithnextpar" definition have > to go into a different file? >=20 > Thanks very much! > _______________________________________________________________________ > ________ >=20 > Jos'h Fuller, Production Programmer >=20 > Arc Productions Ltd. >=20 > p: 416.682.5237 | f: 416.682.5209 | > http://www.arcproductions.com > 230 Richmond Street East | Toronto, ON M5A 1P4 | >=20 >=20 > > -----Original Message----- > > From: emacs-orgmode-bounces+jos'h.fuller=3Darcproductions.com@gnu.org > > [mailto:emacs-orgmode- > bounces+jos'h.fuller=3Darcproductions.com@gnu.org] > > On Behalf Of Sebastien Vauban > > Sent: Thursday, February 16, 2012 2:44 PM > > To: emacs-orgmode@gnu.org > > Subject: Re: [O] Controlling pagination on headings in Latex/PDF > > export? > > > > 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 > > >=20