From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: Re: Title page in latex export Date: Fri, 04 Mar 2011 11:38:08 +0000 Message-ID: References: <20110304020505.77bc12d1@bhishma.homelinux.net> <20110304032325.2933652f@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=42469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvTL4-0005D7-Fk for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 06:38:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvTL2-0002kr-RU for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 06:38:30 -0500 Received: from lo.gmane.org ([80.91.229.12]:59114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvTL2-0002kM-MQ for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 06:38:28 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PvTKu-0006j2-Fs for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 12:38:20 +0100 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Mar 2011 12:38:20 +0100 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Mar 2011 12:38:20 +0100 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 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) -- Lawrence Mitchell