From d98fc9d57b80e50123bbfa9143cdc20bfaa9dfd6 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Fri, 4 Mar 2011 16:38:08 +0000 Subject: [PATCH] * org-latex.el: place \title \author \date before \begin{document}. * org-latex.el (org-export-latex-make-header): place \title \author \date before \begin{document}. --- lisp/org-latex.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 19baa4074..4db38d6d5 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1352,9 +1352,6 @@ 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" ;; convert the title @@ -1374,6 +1371,9 @@ 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 ;; insert the title command (when (string-match "\\S-" title) (if (string-match "%s" org-export-latex-title-command)