Protect starred commands in LaTeX export correctly
* lisp/org-latex.el (org-export-latex-preprocess): Correctly match starred command names. Many LaTeX commands exist in both normal and starred forms. Adjust the regexp in `org-export-latex-preprocess' to match the starred form as well.
This commit is contained in:
parent
9f57b8e85d
commit
c109334152
|
@ -2345,7 +2345,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
|
|||
;; Protect LaTeX commands like \command[...]{...} or \command{...}
|
||||
(goto-char (point-min))
|
||||
(let ((re (concat
|
||||
"\\\\\\([a-zA-Z]+\\)"
|
||||
"\\\\\\([a-zA-Z]+\\*?\\)"
|
||||
"\\(?:<[^<>\n]*>\\)*"
|
||||
"\\(?:\\[[^][\n]*?\\]\\)*"
|
||||
"\\(?:<[^<>\n]*>\\)*"
|
||||
|
|
Loading…
Reference in New Issue