Variable: texmathp-tex-commands
texmathp-tex-commands is a customizable variable defined in
texmathp.el.
Value
nil
Documentation
List of environments and macros influencing (La)TeX math mode.
This user-defined list is used in addition to LaTeX and AMSLaTeX defaults. The structure of each entry is (NAME TYPE)
- The first item in each entry is the name of an environment or macro.
If it's a macro, include the backslash.
- The second item is a symbol indicating how the command works:
env-on Environment: turns math mode for its body on
env-off Environment: turns math mode for its body off
arg-on Command: turns math mode for its arguments on
arg-off Command: turns math mode for its arguments off
sw-on Switch: turns math-mode of following text on
sw-off Switch: turns math-mode of following text off
sw-toggle Switch: toggles math mode of following text
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/texmathp.el
(defcustom texmathp-tex-commands nil
"List of environments and macros influencing (La)TeX math mode.
This user-defined list is used in addition to LaTeX and AMSLaTeX defaults.
The structure of each entry is (NAME TYPE)
- The first item in each entry is the name of an environment or macro.
If it's a macro, include the backslash.
- The second item is a symbol indicating how the command works:
`env-on' Environment: turns math mode for its body on
`env-off' Environment: turns math mode for its body off
`arg-on' Command: turns math mode for its arguments on
`arg-off' Command: turns math mode for its arguments off
`sw-on' Switch: turns math-mode of following text on
`sw-off' Switch: turns math-mode of following text off
`sw-toggle' Switch: toggles math mode of following text"
:set (lambda (symbol value) (set-default symbol value) (texmathp-compile))
:type
'(repeat
(list :value ("" env-on)
(string :tag "Name")
(choice :tag "Type"
(const :tag "Environment: turns math mode for its body on" env-on)
(const :tag "Environment: turns math mode for its body off" env-off)
(const :tag "Command: turns math mode for its argument on" arg-on)
(const :tag "Command: turns math-mode for its argument off" arg-off)
(const :tag "Switch: turns math-mode of following text on" sw-on)
(const :tag "Switch: turns math-mode of following text off" sw-off)
(const :tag "Switch: toggles math mode of following text" sw-toggle)))))