Function: TeX-arg-counter
TeX-arg-counter is a byte-compiled function defined in latex.el.
Signature
(TeX-arg-counter OPTIONAL &optional PROMPT DEFINITION)
Documentation
Prompt for a LaTeX counter.
If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt string. If DEFINITION is non-nil, add the chosen counter to the list of defined counters.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun TeX-arg-counter (optional &optional prompt definition)
"Prompt for a LaTeX counter.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
string. If DEFINITION is non-nil, add the chosen counter to
the list of defined counters."
(let ((counter (completing-read (TeX-argument-prompt optional prompt
"Counter")
(LaTeX-counter-list))))
(if (and definition (not (string-equal "" counter)))
(LaTeX-add-counters counter))
(TeX-argument-insert counter optional)))