branch: main
commit f7402c06dda864436c58c02b7ee452d3afaf2679
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Recognize the optional overlay spec in color macros
* style/xcolor.el (LaTeX-xcolor-color-cmds-regexp): Recognize the
optional overlay spec added by beamer and ltx-talk classes.
---
style/xcolor.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/style/xcolor.el b/style/xcolor.el
index 2a7d16dd..58cbdeae 100644
--- a/style/xcolor.el
+++ b/style/xcolor.el
@@ -290,6 +290,8 @@ xcolor package.")
;; paracol.el also provides a columncolor which
;; we don't repeat:
"colseprulecolor"))
+ ;; beamer.cls and ltx-talk.cls add an optional overlay spec:
+ "\\(?:<[^>]*>\\)?"
"\\(?:\\[\\([^]]*\\)\\]\\)?")
"Regexp for matching the optional argument of color macros.")