emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] worg latex example "11 Styling the Frontmatter"


From: Myles English
Subject: [O] worg latex example "11 Styling the Frontmatter"
Date: Thu, 08 Mar 2012 16:29:36 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hi,

I am trying to get a custom title page and abstract before the TOC in a
pdf.

Worg has an example on this page:

http://orgmode.org/worg/org-tutorials/org-latex-export.html

at the section titled "11 Styling the Frontmatter"
However, the example doesn't work for me as expected.

To reproduce:

+ save the attached files (testAbs.org, title.tex) in the same directory
+ open testAbs.org and do "C-c e d" to export to pdf

I would expect the Abstract and text to be shown in the final pdf but it
is absent.

If I put a character between the lines #+LATEX_HEADER
and #+BEGIN_abstract then the abstract title and text are shown as
expected.

The above is using release_7.8.03-566-gf8efc63.  Am I doing something
wrong?

Thanks,

Myles

#+LATEX_HEADER: \input{/home/myles/tmp/bugs/title.tex}

#+BEGIN_abstract
  Here is my abstract, it is a fine abstract.
#+END_abstract
#+LATEX: \tableofcontents
#+LATEX: \listoftables
#+LATEX: \listoffigures

* Foo
foo

* Bar
bar

#+BEGIN_SRC emacs-lisp :exports none
(defun org-export-latex-no-toc (depth)  
    (when depth
      (format "%% Org-mode is exporting headings to %s levels.\n"
              depth)))
  (setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
#+END_SRC

#+RESULTS:
: org-export-latex-no-toc

(add-to-list 'load-path
             "~/.emacs.d/plugins/org-mode/lisp")
(require 'org-install)
\renewcommand\maketitle{\begin{titlepage}%
FOO
\end{titlepage}%
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]