Function: TeX-arg-pagestyle
TeX-arg-pagestyle is a byte-compiled function defined in latex.el.
Signature
(TeX-arg-pagestyle OPTIONAL &optional PROMPT DEFINITION)
Documentation
Prompt for a LaTeX pagestyle with completion.
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 pagestyle to the list of defined pagestyles.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun TeX-arg-pagestyle (optional &optional prompt definition)
"Prompt for a LaTeX pagestyle with completion.
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 pagestyle to
the list of defined pagestyles."
(let ((pagestyle (completing-read (TeX-argument-prompt optional prompt
"Pagestyle")
(LaTeX-pagestyle-list))))
(if (and definition (not (string-equal "" pagestyle)))
(LaTeX-add-pagestyles pagestyle))
(TeX-argument-insert pagestyle optional)))