emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Rob Stewart <robstewart57@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: #+LATEX before first heading getting ignored LaTeX output
Date: Wed, 27 Nov 2013 18:18:15 -0600	[thread overview]
Message-ID: <CA+M2ft__mv_6gAvzhzpKv+q_i5Nrh_1AJOU8XEw_dD_Gvvb4kQ@mail.gmail.com> (raw)
In-Reply-To: <CA+ZOasLv8NCX0S6y8HNOm=ADqSOgTgqbG2X1z6cJsjMsG20BHg@mail.gmail.com>

On Wed, Nov 27, 2013 at 5:54 PM, Rob Stewart <robstewart57@gmail.com> 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.
>

      reply	other threads:[~2013-11-28  0:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 23:54 #+LATEX before first heading getting ignored LaTeX output Rob Stewart
2013-11-28  0:18 ` John Hendy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft__mv_6gAvzhzpKv+q_i5Nrh_1AJOU8XEw_dD_Gvvb4kQ@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=robstewart57@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).