From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Stewart Subject: #+LATEX before first heading getting ignored LaTeX output Date: Wed, 27 Nov 2013 23:54:14 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlowH-0003pz-Ln for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 18:54:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlowG-0004Af-Im for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 18:54:37 -0500 Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]:48784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlowG-0004AO-Bs for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 18:54:36 -0500 Received: by mail-pb0-f48.google.com with SMTP id md12so11426341pbc.35 for ; Wed, 27 Nov 2013 15:54:34 -0800 (PST) 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 I am experiencing a problem in org-mode whereby a #+LATEX block before the first heading is being ignored in the generated LaTeX. Below is a simple example, first without export the Introduction header with :noexport: , and then with. I realise I could use #+BEGIN_abstract , but this is not about abstracts.. I have lots of #+LATEX lines in a more realistic example, i.e. acknowledgements, dedication etc. %%%%%%%%% #+LaTeX_CLASS: article #+TITLE: My Title #+AUTHOR: Joe Bloggs #+OPTIONS: H:5 #+LATEX: \begin{abstract} This is my abstract. #+LATEX: \end{abstract} #+TOC: headlines 2 * Introduction :noexport: Hello. %%%%%%%%% Exporting this gives: %%%%%%%%% % Created 2013-11-27 Wed 23:47 \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}} \begin{document} \maketitle \tableofcontents \begin{abstract} This is my abstract. \end{abstract} \setcounter{tocdepth}{2} \tableofcontents % Emacs 24.3.1 (Org mode 8.2.3c) \end{document} %%%%%%%%% However, if I switch the tag for the `Introduction` heading to :export: , the generated LaTeX is: %%%%%%%%% % Created 2013-11-27 Wed 23:48 \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}} \begin{document} \maketitle \tableofcontents \section{Introduction} \label{sec-1} Hello. % Emacs 24.3.1 (Org mode 8.2.3c) \end{document} %%%%%%%%% Why has my \begin{abstract} .. \end{abstract} disappeared? As you can see, I'm runing org-mode 8.2.3c, from HEAD from the git repo.