emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Accepted] [O] Title page in latex export


From: Bastien Guerry
Subject: [Accepted] [O] Title page in latex export
Date: Fri, 4 Mar 2011 20:20:24 +0100 (CET)

Patch 649 (http://patchwork.newartisans.com/patch/649/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Cm34o7j5d5r.fsf%40e4300lm.epcc.ed.ac.uk%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [O] Title page in latex export
> Date: Fri, 04 Mar 2011 16:38:08 -0000
> From: Lawrence Mitchell <address@hidden>
> X-Patchwork-Id: 649
> Message-Id: <address@hidden>
> To: address@hidden
> 
> Suvayu Ali wrote:
> 
> > Hi Camille,
> 
> > Thanks a lot for your response.
> 
> > On Fri, 4 Mar 2011 11:48:39 +0100
> > Camille persson <address@hidden> wrote:
> 
> >> Hi,
> 
> >> I think that what it already does
> 
> 
> > I don't think it does that. e.g.
> 
> Try this patch to org-latex.el:
> 
> 
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index 19baa40..4db38d6 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)
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]