Function: LaTeX-compose-caption-macro
LaTeX-compose-caption-macro is a byte-compiled function defined in
latex.el.
Signature
(LaTeX-compose-caption-macro CAPTION &optional SHORT-CAPTION)
Documentation
Return a \caption macro for a given CAPTION as a string.
If SHORT-CAPTION is non-nil pass it as an optional argument to
\caption.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-compose-caption-macro (caption &optional short-caption)
"Return a \\caption macro for a given CAPTION as a string.
If SHORT-CAPTION is non-nil pass it as an optional argument to
\\caption."
(let ((short-caption-string
(if (and short-caption
(not (string= short-caption "")))
(concat LaTeX-optop short-caption LaTeX-optcl))))
(concat TeX-esc "caption" short-caption-string
TeX-grop caption TeX-grcl)))