diff options
author | Lawrence Mitchell <wence@gmx.li> | 2011-03-23 15:28:04 +0000 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-03-23 15:05:43 +0100 |
commit | c10933415212abad1b8adcb87c93b4b254cd86d0 (patch) | |
tree | 81cbb05d0c5b28f8056fc05d823e8c54d25d1037 | |
parent | 9f57b8e85d185fbf3f9788fd4099709d512dedd1 (diff) | |
download | org-mode-c10933415212abad1b8adcb87c93b4b254cd86d0.tar.gz |
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.
-rw-r--r-- | lisp/org-latex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 7a3c629..9be842b 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -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]*>\\)*" |