From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] [O] Title page in latex export Date: Fri, 4 Mar 2011 20:20:24 +0100 (CET) Message-ID: <20110304192024.D0B066A28@myhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=58526 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvaYH-0000Fj-Cp for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 14:20:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvaYF-0000mg-Ot for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 14:20:37 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:61981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvaYF-0000mb-CW for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 14:20:35 -0500 Received: by wwj40 with SMTP id 40so2653431wwj.30 for ; Fri, 04 Mar 2011 11:20:34 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 > X-Patchwork-Id: 649 > Message-Id: > To: emacs-orgmode@gnu.org > > Suvayu Ali wrote: > > > Hi Camille, > > > Thanks a lot for your response. > > > On Fri, 4 Mar 2011 11:48:39 +0100 > > Camille persson 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) >