Skip to content

Commit

Permalink
ox-latex: comment on \date LaTeX macro
Browse files Browse the repository at this point in the history
* lisp/ox-latex.el (org-latex-template): short comment about the `\date`
macro, its default and how to override the default date.

TINYCHANGE
  • Loading branch information
danielfleischer committed Aug 1, 2022
1 parent 0599ddf commit 5a49cc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisp/ox-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a49cc5

Please sign in to comment.