From mboxrd@z Thu Jan 1 00:00:00 1970 From: Renier Marchand Subject: Re: Collapse LaTeX source before start of main document? Date: Thu, 27 Sep 2012 09:07:15 +0000 (UTC) Message-ID: References: <878vumsam8.fsf@fastmail.fm> <87tydat89b.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THA6i-0000Nn-Fv for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 05:10:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THA6d-0005js-OR for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 05:10:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:36982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THA6d-0005fj-Fk for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 05:10:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1THA6d-0004QD-TE for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 11:10:04 +0200 Received: from emmet.cemagg.sun.ac.za ([146.232.220.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Sep 2012 11:10:03 +0200 Received: from renierm by emmet.cemagg.sun.ac.za with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Sep 2012 11:10:03 +0200 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: emacs-orgmode@gnu.org Matt Lundin imapmail.org> writes: > > Chris Malone gmail.com> writes: > > > > I added your suggestion to my .emacs but upon export it removed the > > entire block, which is odd based on the source code for the > > function... > > Hmm... That's not my experience. > > When I export the following file... > > --8<---------------cut here---------------start------------->8--- > * Preliminary material :prelim: > > Some preliminary material > > * Point one > > Text in point one > > * Point two :prelim: > > Text in point two. > > * Point three > > Text in point three. > --8<---------------cut here---------------end--------------->8--- > > The resulting html looks like this (rendered in w3m)... > > --8<---------------cut here---------------start------------->8--- > Some preliminary material > > Table of Contents > > * 1 Point one > * 2 Point three > > 1 Point one > > Text in point one > > Text in point two. > > 2 Point three > > Text in point three. > > Date: 2011-05-04 18:22:09 EDT > > Author: Matt Lundin > > Org version 7.5 with Emacs version 24 > > Validate XHTML 1.0 > --8<---------------cut here---------------end--------------->8--- > > Best, > Matt > > It seems that the reason this does not work for Chris Malone is that if the heading tagged with :prelim: is preceded with a heading tagged with :noexport: then the content of the prelim section is in effect not exported. For this example --8<---------------cut here---------------start------------->8--- * My setup :noexport: Some org-mode setup commands that should not be exported * Preliminary material :prelim: Some preliminary material * Point one Text in point one * Point two :prelim: Text in point two. * Point three Text in point three. --8<---------------cut here---------------end--------------->8--- The following is exported --8<---------------cut here---------------start------------->8--- Table of Contents 1 Point one 2 Point three 1 Point one Text in point one Text in point two. 2 Point three Text in point three. Date: 2012-09-27 11:04:36 SAST Author: Renier Marchand Org version 7.6 with Emacs version 23 Validate XHTML 1.0 --8<---------------cut here---------------end--------------->8--- Note the absence of the text before the table of contents. Hope this clears it up Renier