From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Something to watch out for when including files Date: Tue, 20 Sep 2016 16:21:19 +0100 Message-ID: <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]:38654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmOIH-0004FX-Vh for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 12:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmOIC-00039L-25 for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 12:53:16 -0400 Received: from mail-ve1eur01on0109.outbound.protection.outlook.com ([104.47.1.109]:12800 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmOIB-00038R-Nm for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 12:53:11 -0400 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 Org mode mailing list Hello all, just wanted to help others avoid spending a long time trying to figure out some strange (well, unexpected) behaviour in org... I have a document for which the LaTeX export was ignoring a #+begin_abstract ... #+end_abstract construct near the start of the document. The text was simply not appearing in the LaTeX file. Long story short: 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. Took me a very long time to figure out... the simple solution was to remove that noexport section entirely from the preamble file. I do wonder whether the org export approach (i.e. how it "includes" files) is correct but I can understand why the implementation is the way it is. Thanks for listening! eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.1.50.1, Org release_8.3.6-1149-g582233