* placement of \title, \author,...
@ 2010-11-28 19:11 Sebastian Hofer
2010-12-03 20:03 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Hofer @ 2010-11-28 19:11 UTC (permalink / raw)
To: emacs-orgmode
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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: placement of \title, \author,...
2010-11-28 19:11 placement of \title, \author, Sebastian Hofer
@ 2010-12-03 20:03 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-12-03 20:03 UTC (permalink / raw)
To: Sebastian Hofer; +Cc: emacs-orgmode
Applied, thanks.
- Carsten
On Nov 28, 2010, at 8:11 PM, Sebastian Hofer wrote:
> 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)
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-03 21:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-28 19:11 placement of \title, \author, Sebastian Hofer
2010-12-03 20:03 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.