Variable: TeX-electric-math

TeX-electric-math is a customizable variable defined in tex.el.

Value

nil

Documentation

Math mode delimiters inserted by TeX-insert-dollar.

If non-nil, TeX-insert-dollar will insert symbols for opening and closing inline equation and put the point between them. If there is an active region, TeX-insert-dollar will put around it symbols for opening and closing inline equation and keep the region active, with point after closing symbol. If you press $ again, you can toggle between inline equation, display equation, and no equation.

If nil, TeX-insert-dollar will simply insert "$" at point, this is the default.

If non-nil, this variable is a cons cell whose CAR is the string to insert before point, the CDR is the string to insert after point. You can choose between "$...$" and "\\(...\\)".

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defcustom TeX-electric-math nil
  "Math mode delimiters inserted by `TeX-insert-dollar'.
If non-nil, `TeX-insert-dollar' will insert symbols for opening and
closing inline equation and put the point between them.  If there is an
active region, `TeX-insert-dollar' will put around it symbols for
opening and closing inline equation and keep the region active, with
point after closing symbol.  If you press `$' again, you can toggle
between inline equation, display equation, and no equation.

If nil, `TeX-insert-dollar' will simply insert \"$\" at point,
this is the default.

If non-nil, this variable is a cons cell whose CAR is the string
to insert before point, the CDR is the string to insert after
point.  You can choose between \"$...$\" and \"\\(...\\)\"."
  :group 'TeX-macro
  :type '(choice (const :tag "No electricity" nil)
                 (const :tag "$...$" ("$" . "$"))
                 (const :tag "\\(...\\)" ("\\(" . "\\)"))
                 (cons :tag "Other"
                       (string :tag "Insert before point")
                       (string :tag "Insert after point"))))