From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Removing the date in a subtree export using the new exporter Date: Fri, 09 Nov 2012 18:01:45 +0100 Message-ID: <87bof6ww06.fsf@gmail.com> References: <87fw4jli5t.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWs21-0005qM-9p for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 12:06:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWs1x-0003sY-8P for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 12:06:13 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:39970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWs1x-0003rb-20 for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 12:06:09 -0500 Received: by mail-we0-f169.google.com with SMTP id u3so2200728wey.0 for ; Fri, 09 Nov 2012 09:06:08 -0800 (PST) In-Reply-To: (Alan Schmitt's message of "Fri, 09 Nov 2012 17:30:02 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode Alan Schmitt writes: > I wanted to fix this and saw that you already did. However it seems that > LaTeX still adds a date when a "\maketitle" happens with no date > specified. This small patch should fix this. > > diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el > index 64908b9..9534a79 100644 > --- a/contrib/lisp/org-e-latex.el > +++ b/contrib/lisp/org-e-latex.el > @@ -1026,9 +1026,10 @@ holding export options." > (format "\\author{%s\\thanks{%s}}\n" author email)) > ((or author email) (format "\\author{%s}\n" (or author email))))) > ;; Date. > - (when (plist-get info :with-date) > + (if (plist-get info :with-date) > (let ((date (org-export-data (plist-get info :date) info))) > - (and date (format "\\date{%s}\n" date)))) > + (and date (format "\\date{%s}\n" date))) > + "\\date{}\n") > ;; Title > (format "\\title{%s}\n" title) > ;; Hyperref options. > > > (Please let me know if it's not the good format to send the patch.) It's better if you can provide a changelog entry and send it with "git format-patch". Also, if you did not sign FSF papers, you will have to add "TINYCHANGE" at the end of the change log. Thank you. Regards, -- Nicolas Goaziou