mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 05:32:51 +00:00
Fix LaTeX export of tags containing the character `#'
* lisp/org-latex.el (org-export-latex-keywords-maybe): Protect # in tags. The `#' is a special LaTeX character and needs to be protected.
This commit is contained in:
parent
001346cbe7
commit
35a2ef3400
|
@ -1524,7 +1524,7 @@ links, keywords, lists, tables, fixed-width"
|
||||||
(format org-export-latex-tag-markup
|
(format org-export-latex-tag-markup
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"_" "\\\\_" (match-string 0)))))
|
"\\([_#]\\)" "\\\\\\1" (match-string 0)))))
|
||||||
t t)))))
|
t t)))))
|
||||||
|
|
||||||
(defun org-export-latex-fontify-headline (string)
|
(defun org-export-latex-fontify-headline (string)
|
||||||
|
|
Loading…
Reference in a new issue