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 18:25:40 +0000 Message-ID: <44B0EAE8544C834188E8790873CDE1CC3E154C@ARCEXCHANGE.arc.local> References: <44B0EAE8544C834188E8790873CDE1CC3E11EA@ARCEXCHANGE.arc.local> <16733.1329416454@alphaville> 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]:38946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry61x-0003YQ-KX for emacs-orgmode@gnu.org; Thu, 16 Feb 2012 13:26:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ry61t-0005Hg-2I for emacs-orgmode@gnu.org; Thu, 16 Feb 2012 13:26:09 -0500 Received: from mail.arcproductions.com ([206.191.120.230]:60286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry61s-0005Hb-UR for emacs-orgmode@gnu.org; Thu, 16 Feb 2012 13:26:05 -0500 In-Reply-To: <16733.1329416454@alphaville> 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: "nicholas.dokos@hp.com" Cc: "emacs-orgmode@gnu.org" Hi! I am familiar with \newpage (and I especially like to put it at the front o= f 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 ar= e 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 "\keepthisstufftogethe= r" though... Thanks! ___________________________________________________________________________= ____ 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: nicholas.dokos@hp.com [mailto:nicholas.dokos@hp.com] > Sent: Thursday, February 16, 2012 1:21 PM > To: Jos'h Fuller > Cc: emacs-orgmode@gnu.org; nicholas.dokos@hp.com > Subject: Re: [O] Controlling pagination on headings in Latex/PDF > export? >=20 > Jos'h Fuller wrote: >=20 > > Hi! > > > > I'm have an org-mode document something like this: > > > > * Period 2012-02-06 to 2012-02-12 > > ** Asset > > *** DEPARTMENT > > | Data | Data | Data | Data | > > |-------------+------+------+------| > > | XXXXXX | 1 | 1 | 0 | > > | YYYYYY | 5 | 4 | 0 | > > > > (There are more "Assets", each with several DEPARTMENTS. The tables > are short, perhaps 10-15 rows.) > > > > When I go to export a PDF, I will often get "DEPARTMENT" at the > bottom of one page, with the actual data table at the start of the > next. Is there any way to keep the heading together with the table? > > >=20 > Try adding >=20 > #+LATEX: \newpage >=20 > before the heading where you want the page break to occur: >=20 > --8<---------------cut here---------------start------------->8--- > Period 2012-02-06 to 2012-02-12 > ** Asset > #+LATEX: \newpage > *** DEPARTMENT > | Data | Data | Data | Data | > |-------------+------+------+------| > | XXXXXX | 1 | 1 | 0 | > | YYYYYY | 5 | 4 | 0 | >=20 > --8<---------------cut here---------------end--------------->8--- >=20 > You should probably do that as a last resort in the last editing > round, just to fix problematic spots. >=20 > > I tried using the longtable environment, but that just splits the > > table itself, so that I might have the heading at the bottom of the > > page with one row of the table and a continued message. I also tried > > the LaTeX directives \goodbreak before the headings and \nobreak > > between the headings and tables but they didn't seem to affect > > anything. > > >=20 > IIRC, these influence LaTeX's internal measures of whether this is a > good or bad place to do it, but there are several factors in > competition > and they probably lose in comparison to the other factors. >=20 > \newpage otoh is Thor's hammer: no questions asked. >=20 > Nick