diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 0ac251f2a..f1f528f3f 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1482,7 +1482,7 @@ holding contextual information." (org-export-data (org-export-get-optional-title headline info) info) (and (eq (plist-get info :with-tags) t) tags)))) - (if (and opt-title (string-match "\\`\\\\\\(.*?\\){" section-fmt)) + (if (and opt-title (string-match "\\`\\\\\\(.*?\\)[^*]{" section-fmt)) (format (replace-match "\\1[%s]" nil nil section-fmt 1) ;; Replace square brackets with parenthesis ;; since square brackets are not supported in