Variable: reftex-default-context-regexps

reftex-default-context-regexps is a customizable variable defined in reftex-vars.el.gz.

Value

((caption . "\\\\\\(rot\\|bi\\)?\\(sub\\)?caption\\(box\\)?\\*?[[{]")
 (item . "\\\\item\\(\\[[^]]*\\]\\)?")
 (eqnarray-like . "\\\\begin{%s}\\|\\\\\\\\")
 (alignat-like . "\\\\begin{%s}{[0-9]*}\\|\\\\\\\\"))

Documentation

Alist with default regular expressions for finding context.

The form (format regexp (regexp-quote environment)) is used to calculate the final regular expression - so %s will be replaced with the environment or macro.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-vars.el.gz
(defcustom reftex-default-context-regexps
  '((caption       . "\\\\\\(rot\\|bi\\)?\\(sub\\)?caption\\(box\\)?\\*?[[{]")
    (item          . "\\\\item\\(\\[[^]]*\\]\\)?")
    (eqnarray-like . "\\\\begin{%s}\\|\\\\\\\\")
    (alignat-like  . "\\\\begin{%s}{[0-9]*}\\|\\\\\\\\"))
"Alist with default regular expressions for finding context.
The form (format regexp (regexp-quote environment)) is used to calculate
the final regular expression - so %s will be replaced with the environment
or macro."
  :group 'reftex-defining-label-environments
  :type '(repeat (cons (symbol) (regexp))))