Function: LaTeX--closing
LaTeX--closing is a byte-compiled function defined in latex.el.
Signature
(LaTeX--closing TYPE)
Documentation
Return closing delimiter corresponding to given texmathp TYPE.
TYPE must be one of the (La)TeX symbols $, $$, \( or \[, or a valid environment name. Macros such as \ensuremath are not supported.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX--closing (type)
"Return closing delimiter corresponding to given `texmathp' TYPE.
TYPE must be one of the (La)TeX symbols $, $$, \\( or \\=\\[, or a valid
environment name. Macros such as \\ensuremath are not supported."
(pcase type
((or "$" "$$") type)
("\\[" "\\]")
("\\(" "\\)")
(_ (unless (member type (LaTeX--math-environment-list))
(error "Invalid or unsupported opening delimiter: %s" type))
(concat TeX-esc "end" TeX-grop type TeX-grcl))))