summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-01-11 12:20:05 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-01-11 12:20:05 +0100
commit3fa7903d76cdf8e7656b085e70d3c6f1d60396d0 (patch)
tree30dca6bbd871d770df07537f88e95aba27f8a83b
parent71890398cd22c198d502949834b0296fbf7beebb (diff)
downloadorg-mode-3fa7903d76cdf8e7656b085e70d3c6f1d60396d0.tar.gz
ox-latex: Properly escape special characters in tags
* lisp/ox-latex.el (org-latex-format-headline-default-function): (org-latex-format-inlinetask-default-function): Use `org-latex--protect-text' instead of `org-latex-plain-text' to format tags.
-rw-r--r--lisp/ox-latex.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index da470ab..fc94210 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2009,8 +2009,7 @@ See `org-latex-format-headline-function' for details."
text
(and tags
(format "\\hfill{}\\textsc{%s}"
- (mapconcat (lambda (tag) (org-latex-plain-text tag info))
- tags ":")))))
+ (mapconcat #'org-latex--protect-text tags ":")))))
;;;; Horizontal Rule
@@ -2092,7 +2091,7 @@ holding contextual information."
todo todo-type priority title tags contents info)))
(defun org-latex-format-inlinetask-default-function
- (todo _todo-type priority title tags contents info)
+ (todo _todo-type priority title tags contents info)
"Default format function for a inlinetasks.
See `org-latex-format-inlinetask-function' for details."
(let ((full-title
@@ -2101,9 +2100,7 @@ See `org-latex-format-inlinetask-function' for details."
title
(when tags
(format "\\hfill{}\\textsc{:%s:}"
- (mapconcat
- (lambda (tag) (org-latex-plain-text tag info))
- tags ":"))))))
+ (mapconcat #'org-latex--protect-text tags ":"))))))
(concat "\\begin{center}\n"
"\\fbox{\n"
"\\begin{minipage}[c]{.6\\textwidth}\n"