Variable: LaTeX-auto-regexp-list

LaTeX-auto-regexp-list is a variable defined in latex.el.

Value

Large value
(("\\\\\\(re\\)?\\(?:new\\|provide\\)command\\*?{?\\\\\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}?\\[\\([0-9]+\\)\\]\\[\\([^\n
]*\\)\\]"
  (2 3 4 1)
  LaTeX-auto-optional)
 ("\\\\\\(re\\)?\\(?:new\\|provide\\)command\\*?{?\\\\\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}?\\[\\([0-9]+\\)\\]"
  (2 3 1)
  LaTeX-auto-arguments)
 ("\\\\\\(?:new\\|provide\\)command\\*?{?\\\\\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}?" 1 TeX-auto-symbol)
 ("\\\\\\(New\\|Renew\\|Provide\\|Declare\\)\\(?:Expandable\\)?DocumentCommand[         \n
]*{?[       \n
]*\\\\\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)[       \n
]*}?[       \n
]*{\\([^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}"
  (0 2 3 1)
  LaTeX-auto-xparse-macro)
 ("\\\\\\(re\\)?newenvironment\\*?{\\([^}]+\\)}\\[\\([0-9]+\\)\\]\\["
  (2 3 1)
  LaTeX-auto-env-args-with-opt)
 ("\\\\\\(re\\)?newenvironment\\*?{\\([^}]+\\)}\\[\\([0-9]+\\)\\]"
  (2 3 1)
  LaTeX-auto-env-args)
 ("\\\\newenvironment\\*?{\\([^}]+\\)}" 1 LaTeX-auto-environment)
 ("\\\\\\(New\\|Renew\\|Provide\\|Declare\\)DocumentEnvironment[        \n
]*{[        ]*\\([^}]+?\\)[         ]*}[    \n
]*{\\([^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}"
  (0 2 3 1)
  LaTeX-auto-xparse-environment)
 ("\\\\newtheorem{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 LaTeX-auto-environment)
 ("\\\\input{\"?\\([^#}%\"\\\n
]+?\\)\\(?:\\.[^#}%/\"\\.\n
]+\\)?\"?}" 1 TeX-auto-file)
 ("\\\\include{\\(\\.*[^#}%\\.\n
]+\\)\\(\\.[^#}%\\.\n
]+\\)?}" 1 TeX-auto-file)
 ("\\\\bibitem\\(?:\\[[^][\n
]+\\]\\)?{\\(\\(?:[a-zA-Z]\\|\\cj\\)[^, \n
	%\"#'()={}]*\\)}" 1 LaTeX-auto-bibitem)
 ("\\\\bibliography{\\([^#}\\\n
]+\\)}" 1 LaTeX-auto-bibliography)
 ("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n
]+\\)\\..+}" 1 LaTeX-auto-bibliography)
 ("\\\\add\\(?:global\\|section\\)bib\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n
.]+\\)\\(?:\\..+\\)?}" 1 LaTeX-auto-bibliography)
 ("\\\\\\(?:newrefsection\\|begin{refsection}\\)\\[\\([^]]+\\)\\]" 1 LaTeX-split-bibs)
 ("\\\\Require\\(Package\\)\\(?:\\[\\([^]]*\\)\\]\\)?{\\([^#\\.\n
]+?\\)}"
  (2 3 1)
  LaTeX-auto-style)
 ("\\\\Require\\(Package\\)WithOptions\\(\\){\\([^#\\.\n
]+?\\)}"
  (2 3 1)
  LaTeX-auto-style)
 ("\\\\Load\\(Class\\)\\(?:\\[\\([^]]*\\)\\]\\)?{\\([^#\\.\n
]+?\\)}"
  (2 3 1)
  LaTeX-auto-style)
 ("\\\\Load\\(Class\\)WithOptions\\(\\){\\([^#\\.\n
]+?\\)}"
  (2 3 1)
  LaTeX-auto-style)
 ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?\\[\\([0-9]+\\)\\]\\[\\([^\n
]*?\\)\\]"
  (1 2 3)
  LaTeX-auto-optional)
 ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?\\[\\([0-9]+\\)\\]"
  (1 2)
  LaTeX-auto-arguments)
 ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?" 1 TeX-auto-symbol)
 ("\\\\\\(?:Declare\\(?:FixedFont\\|Math\\(?:Accent\\|Delimiter\\|\\(?:Radica\\|Symbo\\)l\\)\\|OldFontCommand\\|Text\\(?:Accent\\|Com\\(?:mand\\|posite\\)\\|FontCommand\\|Symbol\\)\\)\\|ProvideText\\(?:Accent\\|Com\\(?:mand\\|posite\\)\\|Symbol\\)\\){?\\\\\\([A-Za-z]+\\)}?" 1 TeX-auto-symbol)
 ("\\\\label{\\([^\n
%\\{}]+\\)}" 1 LaTeX-auto-label)
 ("\\\\\\(?:index\\|glossary\\){\\([^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}" 1 LaTeX-auto-index-entry)
 ("\\\\document\\(style\\|class\\)\\(?:\\[\\(\\(?:[^#\\%]\\|%[^\n
]*[\n
]\\)*\\)\\]\\)?{\\([^#\\.\n
]+?\\)}"
  (2 3 1)
  LaTeX-auto-style)
 ("\\\\use\\(package\\)\\(?:\\[\\([^]]*\\)\\]\\)?{\\(\\([^#}\\.%]\\|%[^\n
]*[\n
]\\)+?\\)}"
  (2 3 1)
  LaTeX-auto-style)
 ("\\\\ps@\\([A-Za-z]+\\)" 1 LaTeX-auto-pagestyle)
 ("\\\\\\(?:newcounter\\|@definecounter\\) *{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 LaTeX-auto-counter)
 ("\\\\newlength *{?\\\\\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}?" 1 LaTeX-auto-length)
 ("\\\\newsavebox *{?\\\\\\([A-Za-z]+\\)}?" 1 LaTeX-auto-savebox))

Documentation

List of regular expression matching common LaTeX macro definitions.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defvar LaTeX-auto-regexp-list
  (append
   (let ((token TeX-token-char))
     `((,(concat "\\\\\\(re\\)?\\(?:new\\|provide\\)command\\*?"
                 "{?\\\\\\(" token "+\\)}?\\[\\([0-9]+\\)\\]\\[\\([^\n\r]*\\)\\]")
        (2 3 4 1) LaTeX-auto-optional)
       (,(concat "\\\\\\(re\\)?\\(?:new\\|provide\\)command\\*?"
                 "{?\\\\\\(" token "+\\)}?\\[\\([0-9]+\\)\\]")
        (2 3 1) LaTeX-auto-arguments)
       (,(concat "\\\\\\(?:new\\|provide\\)command\\*?{?\\\\\\(" token "+\\)}?")
        1 TeX-auto-symbol)
       (,(concat
          "\\\\\\(New\\|Renew\\|Provide\\|Declare\\)"
          "\\(?:Expandable\\)?"
          "DocumentCommand"
          "[ \t\n\r]*"
          "{?"
          "[ \t\n\r]*"
          "\\\\\\(" token "+\\)"
          "[ \t\n\r]*"
          "}?"
          "[ \t\n\r]*"
          "{\\([^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}")
        (0 2 3 1) LaTeX-auto-xparse-macro)
       ("\\\\\\(re\\)?newenvironment\\*?{\\([^}]+\\)}\\[\\([0-9]+\\)\\]\\["
        (2 3 1) LaTeX-auto-env-args-with-opt)
       ("\\\\\\(re\\)?newenvironment\\*?{\\([^}]+\\)}\\[\\([0-9]+\\)\\]"
        (2 3 1) LaTeX-auto-env-args)
       ("\\\\newenvironment\\*?{\\([^}]+\\)}"
        1 LaTeX-auto-environment)
       (,(concat
          "\\\\\\(New\\|Renew\\|Provide\\|Declare\\)"
          "DocumentEnvironment"
          "[ \t\n\r]*"
          "{[ \t]*\\([^}]+?\\)[ \t]*}"
          "[ \t\n\r]*"
          "{\\([^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}")
        (0 2 3 1) LaTeX-auto-xparse-environment)
       (,(concat "\\\\newtheorem{\\(" token "+\\)}") 1 LaTeX-auto-environment)
       ("\\\\input{\"?\\([^#}%\"\\\n\r]+?\\)\\(?:\\.[^#}%/\"\\.\n\r]+\\)?\"?}"
        1 TeX-auto-file)
       ("\\\\include{\\(\\.*[^#}%\\.\n\r]+\\)\\(\\.[^#}%\\.\n\r]+\\)?}"
        1 TeX-auto-file)
       (,(concat "\\\\bibitem\\(?:\\[[^][\n\r]+\\]\\)?"
                 "{\\(" token "[^, \n\r\t%\"#'()={}]*\\)}")
        1 LaTeX-auto-bibitem)
       ("\\\\bibliography{\\([^#}\\\n\r]+\\)}" 1 LaTeX-auto-bibliography)
       ("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n\r]+\\)\\..+}"
        1 LaTeX-auto-bibliography)
       ("\\\\add\\(?:global\\|section\\)bib\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n\r.]+\\)\\(?:\\..+\\)?}" 1 LaTeX-auto-bibliography)
       ("\\\\\\(?:newrefsection\\|begin{refsection}\\)\\[\\([^]]+\\)\\]"
        1 LaTeX-split-bibs)))
   LaTeX-auto-class-regexp-list
   LaTeX-auto-label-regexp-list
   LaTeX-auto-index-regexp-list
   LaTeX-auto-minimal-regexp-list
   LaTeX-auto-pagestyle-regexp-list
   LaTeX-auto-counter-regexp-list
   LaTeX-auto-length-regexp-list
   LaTeX-auto-savebox-regexp-list)
  "List of regular expression matching common LaTeX macro definitions.")