Variable: TeX-refuse-unmatched-dollar

TeX-refuse-unmatched-dollar is a customizable variable defined in tex.el.

Value

nil

Documentation

When non-nil, don't insert unmatched dollar sign.

That is, TeX-insert-dollar refuses to insert "$" when texmathp tells that the current position is in math mode which didn't start with dollar(s). Doesn't have an effect when TeX-electric-math is non-nil.

When nil, TeX-insert-dollar assumes the user knows that the current position is not in math mode actually and behaves in the same way as non-math mode.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defcustom TeX-refuse-unmatched-dollar nil
  "When non-nil, don't insert unmatched dollar sign.
That is, `TeX-insert-dollar' refuses to insert \"$\" when `texmathp'
tells that the current position is in math mode which didn't start with
dollar(s).  Doesn't have an effect when `TeX-electric-math' is non-nil.

When nil, `TeX-insert-dollar' assumes the user knows that the current
position is not in math mode actually and behaves in the same way as
non-math mode."
  :group 'TeX-macro
  :type 'boolean)