summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Schmitt <alan.schmitt@polytechnique.org>2012-11-09 18:12:37 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2012-11-09 19:25:13 (GMT)
commit292f70ee7f6c017de2f0695d5ecfa863836e4b45 (patch)
treea0d18cd3f639a5aad570e6e67b3f83445b66e6a5
parentc6d709d0ed99b6d7f6f3799ab2fec3a5def2d07c (diff)
downloadorg-mode-292f70ee7f6c017de2f0695d5ecfa863836e4b45.zip
org-mode-292f70ee7f6c017de2f0695d5ecfa863836e4b45.tar.gz
org-export: Output "\date{}" in LaTeX export when :with-date is nil
* contrib/lisp/org-e-latex.el (org-e-latex-template): output "\date{}" instead of nothing when :with-date is nil TINYCHANGE
-rw-r--r--contrib/lisp/org-e-latex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el
index 64908b9..86af819 100644
--- a/contrib/lisp/org-e-latex.el
+++ b/contrib/lisp/org-e-latex.el
@@ -1026,7 +1026,7 @@ 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 (not (plist-get info :with-date)) "\\date{}\n"
(let ((date (org-export-data (plist-get info :date) info)))
(and date (format "\\date{%s}\n" date))))
;; Title