summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-12-03 21:02:33 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2010-12-03 21:02:33 +0100
commitd9cc075cb966998f5096e42b4b4da57020fcd4cf (patch)
treec16a8b6e9255de97d2e22ef52e58f8f64d828342
parent5d74e1b754861d3429ee5332557321f24d4abd00 (diff)
downloadorg-mode-d9cc075cb966998f5096e42b4b4da57020fcd4cf.tar.gz
LaTeX export: Swap \begin{document} and the title/author definitions
* lisp/org-latex.el (org-export-latex-make-header): Swap \begin{document} and the title/author definitions. Patch by Sebastian Hofer. TINYCHANGE
-rw-r--r--lisp/org-latex.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 91bf380..e58c11d 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1281,6 +1281,8 @@ OPT-PLIST is the options plist for current buffer."
(org-export-apply-macros-in-string org-export-latex-append-header)
;; define alert if not yet defined
"\n\\providecommand{\\alert}[1]{\\textbf{#1}}"
+ ;; beginning of the document
+ "\n\\begin{document}\n\n"
;; insert the title
(format
"\n\n\\title{%s}\n"
@@ -1297,8 +1299,6 @@ OPT-PLIST is the options plist for current buffer."
(format-time-string
(or (plist-get opt-plist :date)
org-export-latex-date-format)))
- ;; beginning of the document
- "\n\\begin{document}\n\n"
;; insert the title command
(when (string-match "\\S-" title)
(if (string-match "%s" org-export-latex-title-command)