Function: org-latex-example-block
org-latex-example-block is a byte-compiled function defined in
ox-latex.el.gz.
Signature
(org-latex-example-block EXAMPLE-BLOCK CONTENTS INFO)
Documentation
Transcode an EXAMPLE-BLOCK element from Org to LaTeX.
CONTENTS is nil. INFO is a plist holding contextual information.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
;;;; Example Block
(defun org-latex-example-block (example-block _contents info)
"Transcode an EXAMPLE-BLOCK element from Org to LaTeX.
CONTENTS is nil. INFO is a plist holding contextual
information."
(when (org-string-nw-p (org-element-property :value example-block))
(let ((environment (or (org-export-read-attribute
:attr_latex example-block :environment)
"verbatim")))
(org-latex--wrap-label
example-block
(format "\\begin{%s}\n%s\\end{%s}"
environment
(org-export-format-code-default example-block info)
environment)
info))))