From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: ignoreheading in LaTeX export Date: Sat, 29 Mar 2014 10:48:59 +0100 Message-ID: References: <87y4zwrpp9.fsf@gmail.com> <87d2h7srdj.fsf@gmail.com> <87lhvvjoo0.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTr4N-0004o5-9H for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 07:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTr4G-0004pz-L9 for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 07:04:59 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:53989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTr4G-0004ov-EQ for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 07:04:52 -0400 In-Reply-To: <87lhvvjoo0.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 27 Mar 2014 22:51:27 +0100") 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: Rasmus Cc: emacs-orgmode@gnu.org Hi Rasmus, Rasmus writes: > This is why you would want to use a filter rather than a hook > (i.e. you only want to retain the Org structure when exporting). > Here's a slightly modified version of the filter I use. Thank you for this suggestion. I went back to my original problem (how to neatly fold away some setup code at the beginning of the file) and I'm now using a solution that seems to work well. - The setup heading has a 'ignoreheading' tag (there is no longer a 'noexport' tag). - Code blocks inside have a ':exports none' header. - The next block where I want to add some heading-less text also has a 'ignoreheading' tag. - I'm using the "before-parsing" hook to get rid of these headings. Thanks again, Alan