From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giacomo M Subject: Re: Something to watch out for when including files Date: Wed, 21 Sep 2016 17:22:00 +0200 Message-ID: <79b09cc4-7263-06d4-babd-7352f638ec10@gmail.com> References: <87y42mfvgw.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmjMe-0002mM-0y for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 11:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmjMa-00031t-1j for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 11:23:11 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:33148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmjMZ-00031O-PK for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 11:23:07 -0400 Received: by mail-lf0-f54.google.com with SMTP id b71so18541209lfg.0 for ; Wed, 21 Sep 2016 08:23:07 -0700 (PDT) Received: from [127.0.0.1] ([212.189.161.135]) by smtp.gmail.com with ESMTPSA id i78sm5001277wmc.13.2016.09.21.08.22.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Sep 2016 08:22:02 -0700 (PDT) In-Reply-To: <87y42mfvgw.fsf@ucl.ac.uk> 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: emacs-orgmode@gnu.org Il 20/09/2016 17:21, Eric S Fraga ha scritto: > I had a #+include: directive as the first line of the > file which included an org file called preamble.org. In that preamble > file, the last headline had the tag :noexport:. It would seem that this > tag is not processed until after the include file has been included. I > hope that makes sense. In any case, this means that my abstract was > considered to be part of the noexport headline and was therefore not > exported. 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. Giacomo