Function: LaTeX-env-array
LaTeX-env-array is a byte-compiled function defined in latex.el.
Signature
(LaTeX-env-array ENVIRONMENT)
Documentation
Insert ENVIRONMENT with position and column specifications.
Just like array and tabular.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-env-array (environment)
"Insert ENVIRONMENT with position and column specifications.
Just like array and tabular."
(let ((pos (and LaTeX-default-position ; LaTeX-default-position can
; be nil, i.e. do not prompt
(TeX-read-string "(Optional) Position: " LaTeX-default-position)))
(fmt (TeX-read-string
(format-prompt "Format" LaTeX-default-format)
nil nil
(if (string= LaTeX-default-format "")
nil
LaTeX-default-format))))
(setq LaTeX-default-position pos)
(setq LaTeX-default-format fmt)
(LaTeX-insert-environment environment
(concat
(unless (zerop (length pos))
(concat LaTeX-optop pos LaTeX-optcl))
(concat TeX-grop fmt TeX-grcl)))
(LaTeX-item-array t)))