From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Something to watch out for when including files Date: Wed, 21 Sep 2016 16:53:22 +0100 Message-ID: <87a8f19rm5.fsf@delle7240.chemeng.ucl.ac.uk> References: <87y42mfvgw.fsf@ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmmCv-0007fF-Bg for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 14:25:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmmCq-00050P-Ao for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 14:25:21 -0400 Received: from mail-eopbgr50128.outbound.protection.outlook.com ([40.107.5.128]:63536 helo=EUR03-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmmCp-0004zs-Vy for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 14:25:16 -0400 In-Reply-To: (Giacomo M.'s message of "Wed, 21 Sep 2016 15:22:00 +0000") 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" To: Giacomo M Cc: "emacs-orgmode@gnu.org" On Wednesday, 21 Sep 2016 at 15:22, Giacomo M wrote: > Lately I like to have headlines for all the logical parts of the > document, so also an "Abstract" headline with the abstract block inside. > Then I use the tag "ignore" and the org export extra "ignore-headlines" > (activated e.g. via "(ox-extras-activate '(ignore-headlines))" if you > use org-plus-contrib) to avoid exporting the headlines themselves. This > should also avoid the inheritance of tags in the last headline of the > include. Not vanilla org, but I find it handy. This is basically what I do. I even have (ignored) headlines that have a content that is simply a @@latex:\newpage@@ directive! The problem is that if you have a headline that is ignored, the text that follows essentially belongs to the previous non-ignored headline. If that previous headline has been commented out or has been marked as not to be exported, the text after the ignored headline is also therefore ignored when it comes to export. Ignoring headlines is very fragile in the same way as described in my original post. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa