Variable: org-babel-latex-end-env

org-babel-latex-end-env is a customizable variable defined in ob-latex.el.gz.

Value

#[257 "\300\207" ["\\end{document}"] 2
      ("/nix/store/cr364a2c0mcca19wxfy57q56hxdks5sh-emacs-31-1/share/emacs/31.1/lisp/org/ob-latex.elc"
       . 898)]

Documentation

Closure which evaluates at runtime to the end part of the document environment.

It takes 1 argument which is the parameters of the source block. This allows adding additional code that will be ignored when exporting the literal LaTeX source.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-latex.el.gz
(defcustom org-babel-latex-end-env
  (lambda (_)
    "\\end{document}")
  "Closure which evaluates at runtime to the end part of the document environment.

It takes 1 argument which is the parameters of the source block.
This allows adding additional code that will be ignored when
exporting the literal LaTeX source."
  :group 'org-babel
  :type 'function)