Function: LaTeX-env-picture
LaTeX-env-picture is a byte-compiled function defined in latex.el.
Signature
(LaTeX-env-picture ENVIRONMENT)
Documentation
Insert ENVIRONMENT with width, height specifications.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-env-picture (environment)
"Insert ENVIRONMENT with width, height specifications."
(let ((width (TeX-read-string "Width: "))
(height (TeX-read-string "Height: "))
(x-offset (TeX-read-string "X Offset: "))
(y-offset (TeX-read-string "Y Offset: ")))
(if (zerop (length x-offset))
(setq x-offset "0"))
(if (zerop (length y-offset))
(setq y-offset "0"))
(LaTeX-insert-environment environment
(concat
(format "(%s,%s)" width height)
(if (not (and (string= x-offset "0")
(string= y-offset "0")))
(format "(%s,%s)" x-offset y-offset))))))