Jos'h Fuller <Jos'h.ful...@arcproductions.com> wrote: > OK, I'm an idiot. I forgot to put in the ":" after the "#+latex", so > it didn't get processed correctly.
Indeed, I've *never* made such an idiotic mistake (well, at least not since yesterday) - how could you? :-) OTOH, I tend to forget the + routinely, but you know what they say: to each his own blind spot. On a more serious note, things that need to end up in the preamble should be marked #+LaTeX_HEADER: \def\mykeepwithnextpar{\par\nobreak\@afterheading} (and note my other post about @). The #+LATEX: \foo markup is for things that end up in the document environment. Nick > > 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 > headings 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? > > Thanks again! > > Jos'h > _______________________________________________________________________________ > > Jos'h Fuller, Production Programmer > > Arc Productions Ltd. > > p: 416.682.5237 | f: 416.682.5209 | > http://www.arcproductions.com > 230 Richmond Street East | Toronto, ON M5A 1P4 | > > > > -----Original Message----- > > From: emacs-orgmode-bounces+jos'h.fuller=arcproductions....@gnu.org > > [mailto:emacs-orgmode-bounces+jos'h.fuller=arcproductions....@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? > > > > Hi Sebastien! > > > > I tried it, and it didn't work. However, I may not have set it up > > right: > > > > --snip!-- > > #+latex \def\mykeepwithnextpar{\par\nobreak\@afterheading} > > > > #+latex: \newpage > > * Period... > > ** Asset > > #+latex: \mykeepwithnextpar{} > > *** DEPARTMENT > > | Table | Data | Here | > > --snip!-- > > > > Did I do this correctly or does the "mykeepwithnextpar" definition have > > to go into a different file? > > > > Thanks very much! > > _______________________________________________________________________ > > ________ > > > > Jos'h Fuller, Production Programmer > > > > Arc Productions Ltd. > > > > p: 416.682.5237 | f: 416.682.5209 | > > http://www.arcproductions.com > > 230 Richmond Street East | Toronto, ON M5A 1P4 | > > > > > > > -----Original Message----- > > > From: emacs-orgmode-bounces+jos'h.fuller=arcproductions....@gnu.org > > > [mailto:emacs-orgmode- > > bounces+jos'h.fuller=arcproductions....@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 > > > > > > >