Here's another newbie question about org-mode's LaTeX export:

Given this file test.org

asdf, or whatever I want to write in the abstract ...

* Introduction
  This is my inroduction ...

an export via

$ emacs --batch --visit=./test.org --funcall org-export-as-latex

Produces this error:

unbalanced begin/end_abstract blocks with "#+BEGIN_abstract

When I switch the abstract and introduction in the file, everything works fine:

* Introduction

asdf, or whatever I want to write in the abstract ...

But then, the abstract comes within the introduction. However, I need it to be before the introduction.

How can I achieve this?

I'm running Emacs 23 on Ubuntu 12.04.

UPDATE following the advice by @giordano, I created a file emacs_setup.el:

(defun org-export-latex-no-toc (depth)  
    (when depth
      (format "%% Org-mode is exporting headings to %s levels.\n"
(setq org-export-latex-format-toc-function 'org-export-latex-no-toc)

And changed my org file to

#+TITLE: My Document
#+AUTHOR: Andreas H.

#+LATEX: \tableofcontents
#+LATEX: \listoftables
#+LATEX: \listoffigures

  asdf, or whatever I want to write in the abstract ...

* Introduction

But when calling

$ emacs --batch -l emacs_setup.el --visit=test.org --funcall org-export-as-latex

I get the exact same error.

  • See orgmode.org/worg/org-tutorials/org-latex-export.html#sec-11-1 Does it help? Perhaps you need also to set a title before the abstract.
    – giordano
    Aug 10, 2013 at 14:31
  • no, it doesn't help. See updated question.
    – andreas-h
    Aug 10, 2013 at 14:50
  • I don't know what's the problem, with Emacs 24 and org-mode 8 I don't get that error.
    – giordano
    Aug 10, 2013 at 15:02
  • maybe a change in org-mode 8? I'll try installing emacs24 with the new org-mode and see if the error persists.
    – andreas-h
    Aug 10, 2013 at 15:57
  • @giordano Thanks for your help, installing Emacs 24 and org-mode 8.0.7 indeed solved my problem.
    – andreas-h
    Aug 11, 2013 at 8:53

1 Answer 1


I usually use the LaTeX code directly for this result


This is the abstract.


* Introduction

  This is the introduction.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .