mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 13:02:52 +00:00
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
This commit is contained in:
parent
5d74e1b754
commit
d9cc075cb9
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue