|
@@ -2452,21 +2452,23 @@ information."
|
|
|
"Transcode a TIMESTAMP object from Org to LaTeX.
|
|
|
CONTENTS is nil. INFO is a plist holding contextual
|
|
|
information."
|
|
|
- (let ((value (org-translate-time (org-element-property :value timestamp)))
|
|
|
- (range-end (org-element-property :range-end timestamp)))
|
|
|
+ (let ((value (org-translate-time
|
|
|
+ (org-element-property :raw-value timestamp))))
|
|
|
(case (org-element-property :type timestamp)
|
|
|
(active (format org-e-latex-active-timestamp-format value))
|
|
|
(active-range
|
|
|
- (concat (format org-e-latex-active-timestamp-format value)
|
|
|
- "--"
|
|
|
- (format org-e-latex-active-timestamp-format
|
|
|
- (org-translate-time range-end))))
|
|
|
+ (let ((timestamps (org-split-string value "--")))
|
|
|
+ (concat
|
|
|
+ (format org-e-latex-active-timestamp-format (car timestamps))
|
|
|
+ "--"
|
|
|
+ (format org-e-latex-active-timestamp-format (cdr timestamps)))))
|
|
|
(inactive (format org-e-latex-inactive-timestamp-format value))
|
|
|
(inactive-range
|
|
|
- (concat (format org-e-latex-inactive-timestamp-format value)
|
|
|
- "--"
|
|
|
- (format org-e-latex-inactive-timestamp-format
|
|
|
- (org-translate-time range-end))))
|
|
|
+ (let ((timestamps (org-split-string value "--")))
|
|
|
+ (concat
|
|
|
+ (format org-e-latex-inactive-timestamp-format (car timestamps))
|
|
|
+ "--"
|
|
|
+ (format org-e-latex-inactive-timestamp-format (cdr timestamps)))))
|
|
|
(otherwise (format org-e-latex-diary-timestamp-format value)))))
|
|
|
|
|
|
|