From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: #+LATEX before first heading getting ignored LaTeX output Date: Wed, 27 Nov 2013 18:18:15 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlpJC-00087i-0s for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 19:18:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlpJA-0006kK-PL for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 19:18:17 -0500 Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:58241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlpJA-0006is-K7 for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 19:18:16 -0500 Received: by mail-ob0-f180.google.com with SMTP id wo20so8079140obc.39 for ; Wed, 27 Nov 2013 16:18:15 -0800 (PST) In-Reply-To: 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: Rob Stewart Cc: emacs-orgmode On Wed, Nov 27, 2013 at 5:54 PM, Rob Stewart wrote: > 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. > I can confirm on Linux running Org-mode version 8.2.3c (release_8.2.3c-227-g54a64f), though interestingly on Windows, I *just* exported an analogous example to your successfully. It's running a git version from April 2013. Rebooting into Linux and trying on the same file removes my #+begin/end_latex section containing specifications for fancyhdr and I no longer get my custom footer with just one headline tagged :export:. If I tag all headlines *except* the one of interest, it goes back to functioning properly. I'm guessing this will require tacking back to the right git commit and it was an intended or un-intended consequence of some change to the exporter. Best regards, John > %%%%%%%%% > #+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. >