Przeglądaj źródła

* org-html.el (org-export-as-html): New option: a format string
for the HTML export of date and time.

Bastien Guerry 13 lat temu
rodzic
commit
a0554234ef
2 zmienionych plików z 18 dodań i 1 usunięć
  1. 6 1
      lisp/org-html.el
  2. 12 0
      lisp/org-latex.el

+ 6 - 1
lisp/org-html.el

@@ -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)

+ 12 - 0
lisp/org-latex.el

@@ -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"