Function: LaTeX-math-cal

LaTeX-math-cal is an interactive and byte-compiled function defined in latex.el.

Signature

(LaTeX-math-cal CHAR DOLLAR)

Documentation

Insert a {\cal CHAR}. If DOLLAR is non-nil, put $'s around it.

If TeX-electric-math is non-nil wrap that symbols around the char.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-math-cal (char dollar)
  "Insert a {\\cal CHAR}.  If DOLLAR is non-nil, put $'s around it.
If `TeX-electric-math' is non-nil wrap that symbols around the
char."
  (declare (modes LaTeX-mode))
  (interactive "*c\nP")
  (if dollar (insert (or (car TeX-electric-math) "$")))
  (if (member "latex2e" (TeX-style-list))
      (insert "\\mathcal{" (char-to-string char) "}")
    (insert "{\\cal " (char-to-string char) "}"))
  (if dollar (insert (or (cdr TeX-electric-math) "$"))))