summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-09-14 14:42:37 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-09-14 14:42:37 +0200
commitd3db88ffe4fec5b59af5a06a21a8b0afd780deba (patch)
treeb7446d31502ef77f2f765e588022707184c6f10e
parent2ad802968bea056eecf9d809c535ee40856320b9 (diff)
downloadorg-mode-d3db88ffe4fec5b59af5a06a21a8b0afd780deba.tar.gz
LaTeX export: Configurable format for tags
* lisp/org-latex.el (org-export-latex-tag-markup): New option. (org-export-latex-keywords-maybe): Use `org-export-latex-tag-markup'.
-rw-r--r--lisp/org-latex.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 852a83a..9a62457 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -280,6 +280,11 @@ markup defined, the first one in the association list will be used."
(string :tag "Keyword")
(string :tag "Markup")))))
+(defcustom org-export-latex-tag-markup "\\textbf{%s}"
+ "Markup for tags, as a printf format."
+ :group 'org-export-latex
+ :type 'string)
+
(defcustom org-export-latex-timestamp-markup "\\textit{%s}"
"A printf format string to be applied to time stamps."
:group 'org-export-latex
@@ -1335,7 +1340,7 @@ links, keywords, lists, tables, fixed-width"
(replace-match "")
(replace-match
(org-export-latex-protect-string
- (format "\\textbf{%s}"
+ (format org-export-latex-tag-markup
(save-match-data
(replace-regexp-in-string
"_" "\\\\_" (match-string 0)))))