emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Collapse LaTeX source before start of main document?


From: Renier Marchand
Subject: Re: [O] Collapse LaTeX source before start of main document?
Date: Thu, 27 Sep 2012 09:07:15 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Matt Lundin <mdl <at> imapmail.org> writes:

> 
> Chris Malone <chris.m.malone <at> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]