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)