Rasmus <ras...@gmx.us> writes:

> Thorsten Jolitz <tjol...@gmail.com> writes:
>
>> Ken Mankoff <mank...@gmail.com> writes:
>>
>>> Another common (for me) example is to have a heading called "* Appendix"
>>> in a paper, and then the LaTeX "\appendix" command. The Org heading is
>>> just for me. It should not be exported. All headings below the \appendix
>>> command are Org sub-sections but should be promoted to \section in the
>>> final document.
>>
>> then IMO it should be 
>>
>> ,----------------------------
>> | * Appendix
>> | ** Latex Command :noexport:
>> | \appendix
>> | ** Subsec1
>> | ** Subsec2 ...
>> `----------------------------
>
> Your code example is broken, but let's not care about that for now.

Yes, I (unfortunately) did not care about the LaTeX side of this special
case, just wanted to say that this

,-------------
| * 1st Level
| text
| ** 2nd Level
| text
| ** 2nd Level
| text
`-------------

often causes headaches that can easily avoided, e.g by 

,-------------
| * 1st Level
| ** 2nd Level
| text
| ** 2nd Level
| text
| ** 2nd Level
| text
`-------------

or (your solution)

,-------------
| * 1st Level
| text
| * 1st Level
| ** 2nd Level
| text
| ** 2nd Level
| text
`-------------

> So the appendix case is kind of special.  Really what we want is to
> inject a command before the insertion of the appendix.  Due to the
> nature of LaTeX this is easy.  I often do something like
>
> * appendix pre :ignoreheading:
> #+LATEX: \appendix
> * my appendix
>   content

-- 
cheers,
Thorsten


Reply via email to