Function: org-texinfo-latex-environment

org-texinfo-latex-environment is a byte-compiled function defined in ox-texinfo.el.gz.

Signature

(org-texinfo-latex-environment ENVIRONMENT CONTENTS INFO)

Documentation

Transcode a LaTeX ENVIRONMENT from Org to Texinfo.

CONTENTS is ignored. INFO is a plist holding contextual information.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
;;;; LaTeX Environment

(defun org-texinfo-latex-environment (environment _contents info)
  "Transcode a LaTeX ENVIRONMENT from Org to Texinfo.
CONTENTS is ignored.  INFO is a plist holding contextual information."
  (let ((with-latex (plist-get info :with-latex)))
    (when (or (eq with-latex t)
              (and (eq with-latex 'detect)
                   (org-texinfo-supports-math-p)))
      (let ((value (org-element-property :value environment)))
        (string-join (list "@displaymath"
                           (string-trim (org-remove-indentation value))
                           "@end displaymath")
                     "\n")))))