Function: TeX-insert-sub-or-superscript

TeX-insert-sub-or-superscript is an interactive and byte-compiled function defined in tex.el.

Signature

(TeX-insert-sub-or-superscript ARG)

Documentation

Insert typed key ARG times and possibly a pair of braces.

Brace insertion is only done if point is in a math construct and TeX-electric-sub-and-superscript has a non-nil value.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-insert-sub-or-superscript (arg)
  "Insert typed key ARG times and possibly a pair of braces.
Brace insertion is only done if point is in a math construct and
`TeX-electric-sub-and-superscript' has a non-nil value."
  (interactive "*p")
  (self-insert-command arg)
  (when (and TeX-electric-sub-and-superscript (texmathp))
    (insert (concat TeX-grop TeX-grcl))
    (backward-char)))