From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: proposal to have ignoreheading tags/properties Date: Fri, 13 Jun 2014 16:32:34 +0200 Message-ID: <87oaxwvq0t.fsf@gmx.us> References: <87k38m5903.fsf@gmail.com> <87fvja576z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvSUa-00069d-NK for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 10:30:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvSUT-0002Sm-7o for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 10:30:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:60327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvSUT-0002Sh-1n for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 10:30:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WvSUS-0008Gb-0h for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 16:30:00 +0200 Received: from 109.201.154.189 ([109.201.154.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Jun 2014 16:30:00 +0200 Received: from rasmus by 109.201.154.189 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Jun 2014 16:30:00 +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 Thorsten Jolitz writes: > Ken Mankoff 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. 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 However, perhaps a property specifying a command to be inserted before the headline is more appropriate. Then, we could write the above as * my appendix :PROPERTIES: :LATEX_PRE_HEADING: \appendix :HTML_PRE_HEADING: :HTML_POST_HEADING: :END: content which would export \appendix \section{my appendix} content Of course, in the above example it would be better to set the property HTML_CONTAINER to appendix for html export. —Rasmus -- Together we'll stand, divided we'll fall