Function: org-edit-latex-environment
org-edit-latex-environment is an interactive and byte-compiled
function defined in org-src.el.gz.
Signature
(org-edit-latex-environment)
Documentation
Edit LaTeX environment at point.
The LaTeX environment is copied into a new buffer. Major mode is
set to the one associated to "latex" in org-src-lang-modes,
or to latex-mode if there is none.
When done, exit with C-c ' (org-edit-src-exit). The edited text will then replace
the LaTeX environment in the Org mode buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-edit-latex-environment ()
"Edit LaTeX environment at point.
\\<org-src-mode-map>
The LaTeX environment is copied into a new buffer. Major mode is
set to the one associated to \"latex\" in `org-src-lang-modes',
or to `latex-mode' if there is none.
When done, exit with `\\[org-edit-src-exit]'. The edited text \
will then replace
the LaTeX environment in the Org mode buffer."
(interactive)
(let ((element (org-element-at-point)))
(unless (and (org-element-type-p element 'latex-environment)
(org-src--on-datum-p element))
(user-error "Not in a LaTeX environment"))
(org-src--edit-element
element
(org-src--construct-edit-buffer-name (buffer-name) "LaTeX environment")
(org-src-get-lang-mode "latex")
t)
t))