From 35a2ef34003f7eb4e39e45a36221d45ba2f4b464 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 27 Mar 2011 09:04:09 +0200 Subject: [PATCH] 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. --- lisp/org-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 605795ca8..ed1f4161d 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1524,7 +1524,7 @@ links, keywords, lists, tables, fixed-width" (format org-export-latex-tag-markup (save-match-data (replace-regexp-in-string - "_" "\\\\_" (match-string 0))))) + "\\([_#]\\)" "\\\\\\1" (match-string 0))))) t t))))) (defun org-export-latex-fontify-headline (string)