Function: LaTeX-arg-author

LaTeX-arg-author is a byte-compiled function defined in latex.el.

Signature

(LaTeX-arg-author OPTIONAL &optional PROMPT)

Documentation

Prompt for author name.

Insert the given value as a TeX macro argument. If OPTIONAL is non-nil, insert it as an optional argument. Use PROMPT as the prompt string. LaTeX-default-author is the initial input.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-arg-author (optional &optional prompt)
  "Prompt for author name.
Insert the given value as a TeX macro argument.  If OPTIONAL is
non-nil, insert it as an optional argument.  Use PROMPT as the
prompt string.  `LaTeX-default-author' is the initial input."
  (let ((author (if LaTeX-default-author
                    (TeX-read-string
                     (TeX-argument-prompt optional prompt "Author(s)")
                     (if (symbolp LaTeX-default-author)
                         (symbol-value LaTeX-default-author)
                       LaTeX-default-author))
                  "")))
    (TeX-argument-insert author optional nil)))