[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] placement of \title, \author,...
From: |
Sebastian Hofer |
Subject: |
[Orgmode] placement of \title, \author,... |
Date: |
Sun, 28 Nov 2010 20:11:18 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi,
would it be possible to move the \title, \author, \date commands to after
\begin{document}?
This may sound like a stupid suggestion, but some classes (in particular revtex
- the standard class for journals of the american physical society) throw
errors otherwise. A possible patch is attached. I tested the modification for
the standard classes (article, report, book and beamer) and they all work fine.
I'm wondering if Carsten never experienced this problem...
TIA
Sebastian
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] placement of \title, \author,...,
Sebastian Hofer <=