From ca07a5ba62adeb3fcdd7785f77aa9b3b30fd7895 Mon Sep 17 00:00:00 2001 From: Eric S Fraga Date: Fri, 1 Jul 2011 02:38:48 +0000 Subject: [PATCH] * Allow for a different markup for inactive time stamps on latex export --- lisp/org-latex.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 1baa5f9c4..694f65b67 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -292,6 +292,11 @@ markup defined, the first one in the association list will be used." :group 'org-export-latex :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}" "A printf format string to be applied to time stamps." :group 'org-export-latex @@ -1613,7 +1618,9 @@ links, keywords, lists, tables, fixed-width" (org-if-unprotected-at (1- (point)) (replace-match (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))) t t)))))