Function: TeX-insert-dollar
TeX-insert-dollar is an interactive and byte-compiled function defined
in tex.el.
Signature
(TeX-insert-dollar ARG)
Documentation
Insert dollar sign.
See TeX-insert-dollar-action for more information on the
behavior, as well as the role of ARG.
Show matching dollar sign if this dollar sign ends the TeX math
mode and blink-matching-paren is non-nil.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-insert-dollar (arg)
"Insert dollar sign.
See `TeX-insert-dollar-action' for more information on the
behavior, as well as the role of ARG.
Show matching dollar sign if this dollar sign ends the TeX math
mode and `blink-matching-paren' is non-nil."
(interactive "*P")
(pcase (TeX-insert-dollar-action arg)
('just-insert
(self-insert-command (prefix-numeric-value arg)))
('begin-math
(self-insert-command (prefix-numeric-value arg))
(TeX-math-input-method-off))
('end-math ; Assume texmathp's been called.
(self-insert-command (prefix-numeric-value arg))
(TeX--blink-matching-dollar))
('refuse
(message "Math mode started with `%s' cannot be closed with dollar"
(car texmathp-why)))
('electric
(TeX-insert-dollar-electric))
(action (error "Unknown `TeX-insert-dollar' action: `%s'" action))))