branch: master
commit 9ab3f77d531bf5f8c961d2fd32dca06eca616be2
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
* style/ntheorem.el (ntheorem"): Simplify additions to the parser.
---
style/ntheorem.el | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/style/ntheorem.el b/style/ntheorem.el
index 282c285e..7396970d 100644
--- a/style/ntheorem.el
+++ b/style/ntheorem.el
@@ -122,13 +122,9 @@ make them available as new environments. Update
(lambda ()
(TeX-auto-add-regexp
- `(,(concat "\\\\newtheorem{\\(" TeX-token-char "+\\)}")
- 1 LaTeX-auto-ntheorem-newtheorem))
- (TeX-auto-add-regexp
- `(,(concat "\\\\newframedtheorem{\\(" TeX-token-char "+\\)}")
- 1 LaTeX-auto-ntheorem-newtheorem))
- (TeX-auto-add-regexp
- `(,(concat "\\\\newshadedtheorem{\\(" TeX-token-char "+\\)}")
+ `(,(concat "\\\\"
+ (regexp-opt '("newtheorem" "newframedtheorem"
"newshadedtheorem"))
+ "{\\(" TeX-token-char "+\\)}")
1 LaTeX-auto-ntheorem-newtheorem))
(TeX-auto-add-regexp
`(,(concat "\\\\newtheoremstyle{\\(" TeX-token-char "+\\)}")