* Allow for a different markup for inactive time stamps on latex export

This commit is contained in:
Eric S Fraga 2011-07-01 02:38:48 +00:00 committed by Bastien Guerry
parent 23bb8d0347
commit ca07a5ba62
1 changed files with 8 additions and 1 deletions

View File

@ -292,6 +292,11 @@ markup defined, the first one in the association list will be used."
:group 'org-export-latex :group 'org-export-latex
:type 'string) :type 'string)
(defcustom org-export-latex-timestamp-inactive-markup "\\textit{%s}"
"A printf format string to be applied to inactive time stamps."
:group 'org-export-latex
:type 'string)
(defcustom org-export-latex-timestamp-keyword-markup "\\texttt{%s}" (defcustom org-export-latex-timestamp-keyword-markup "\\texttt{%s}"
"A printf format string to be applied to time stamps." "A printf format string to be applied to time stamps."
:group 'org-export-latex :group 'org-export-latex
@ -1613,7 +1618,9 @@ links, keywords, lists, tables, fixed-width"
(org-if-unprotected-at (1- (point)) (org-if-unprotected-at (1- (point))
(replace-match (replace-match
(org-export-latex-protect-string (org-export-latex-protect-string
(format org-export-latex-timestamp-markup (format (if (string= "<" (substring (match-string 0) 0 1))
org-export-latex-timestamp-markup
org-export-latex-timestamp-inactive-markup)
(substring (org-translate-time (match-string 0)) 1 -1))) (substring (org-translate-time (match-string 0)) 1 -1)))
t t))))) t t)))))