Bläddra i källkod

ox-latex: comment on \date LaTeX macro

* lisp/ox-latex.el (org-latex-template): short comment about the `\date`
macro, its default and how to override the default date.

TINYCHANGE
Daniel Fleischer 2 år sedan
förälder
incheckning
5a49cc5f4f
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      lisp/ox-latex.el

+ 3 - 0
lisp/ox-latex.el

@@ -1979,6 +1979,9 @@ holding export options."
 	      (format "\\author{%s\\thanks{%s}}\n" author email))
 	     ((or author email) (format "\\author{%s}\n" (or author email)))))
      ;; Date.
+     ;; LaTeX displays today's date by default. One can override this by
+     ;; inserting \date{} for no date, or \date{string} with any other
+     ;; string to be displayed as the date. 
      (let ((date (and (plist-get info :with-date) (org-export-get-date info))))
        (format "\\date{%s}\n" (org-export-data date info)))
      ;; Title and subtitle.