mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-16 04:40:18 +00:00
* org-html.el (org-export-as-html): New option: a format string
for the HTML export of date and time.
This commit is contained in:
parent
c8f9972a41
commit
a0554234ef
|
@ -653,6 +653,11 @@ postamble DIV."
|
|||
(string :tag " Div for the content:")
|
||||
(string :tag "Div for the postamble:")))
|
||||
|
||||
(defvar org-export-html-date-format-string "%Y-%m-%dT%R%z"
|
||||
"The string used to format date and time.
|
||||
|
||||
Default is an extended format of the ISO 8601 specification.")
|
||||
|
||||
;;; Hooks
|
||||
|
||||
(defvar org-export-html-after-blockquotes-hook nil
|
||||
|
@ -1285,7 +1290,7 @@ PUB-DIR is set, use this as the publishing directory."
|
|||
((and date (string-match "%" date))
|
||||
(setq date (format-time-string date)))
|
||||
(date)
|
||||
(t (setq date (format-time-string "%Y-%m-%d %T %Z"))))
|
||||
(t (setq date (format-time-string org-export-html-date-format-string))))
|
||||
|
||||
;; Get the language-dependent settings
|
||||
(setq lang-words (or (assoc language org-export-language-setup)
|
||||
|
|
|
@ -671,6 +671,18 @@ This function should accept the file name as its single argument."
|
|||
"bibtex %b"
|
||||
"pdflatex -interaction nonstopmode -output-directory %o %f"
|
||||
"pdflatex -interaction nonstopmode -output-directory %o %f"))
|
||||
(const :tag "2 runs of xelatex"
|
||||
("xelatex -interaction nonstopmode -output-directory %o %f"
|
||||
"xelatex -interaction nonstopmode -output-directory %o %f"))
|
||||
(const :tag "3 runs of xelatex"
|
||||
("xelatex -interaction nonstopmode -output-directory %o %f"
|
||||
"xelatex -interaction nonstopmode -output-directory %o %f"
|
||||
"xelatex -interaction nonstopmode -output-directory %o %f"))
|
||||
(const :tag "xelatex,bibtex,xelatex,xelatex"
|
||||
("xelatex -interaction nonstopmode -output-directory %o %f"
|
||||
"bibtex %b"
|
||||
"xelatex -interaction nonstopmode -output-directory %o %f"
|
||||
"xelatex -interaction nonstopmode -output-directory %o %f"))
|
||||
(const :tag "texi2dvi"
|
||||
("texi2dvi -p -b -c -V %f"))
|
||||
(const :tag "rubber"
|
||||
|
|
Loading…
Reference in a new issue