Variable: org-latex-engraved-options

org-latex-engraved-options is a customizable variable defined in ox-latex.el.gz.

Value

(("commandchars" . "\\\\\\{\\}")
 ("highlightcolor" . "white!95!black!80!blue")
 ("breaklines" . "true")
 ("breaksymbol" . "\\color{white!60!black}\\tiny\\ensuremath{\\hookrightarrow}"))

Documentation

Association list of options for the latex fvextra package when engraving code.

These options are set using \fvset{...} in the preamble of the LaTeX export. Each element of the alist should be a list or cons cell containing two strings: the name of the option, and the value. For example,

  (setq org-latex-engraved-options
    '(("highlightcolor" "green") ("frame" "lines")))
  ; or
  (setq org-latex-engraved-options
    '(("highlightcolor" . "green") ("frame" . "lines")))

will result in the following LaTeX in the preamble

\fvset{%
  bgcolor=bg,
  frame=lines}

This will affect all fvextra environments. Note that the same options will be applied to all blocks. If you need block-specific options, you may use the following syntax:

  #+ATTR_LATEX: :options key1=value1,key2=value2
  #+BEGIN_SRC <LANG>
  ...
  #+END_SRC

This variable was added, or its default value changed, in Org version
9.6.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
(defcustom org-latex-engraved-options
  '(("commandchars" . "\\\\\\{\\}")
    ("highlightcolor" . "white!95!black!80!blue")
    ("breaklines" . "true")
    ("breaksymbol" . "\\color{white!60!black}\\tiny\\ensuremath{\\hookrightarrow}"))
  "Association list of options for the latex fvextra package when engraving code.

These options are set using \\fvset{...} in the preamble of the
LaTeX export.  Each element of the alist should be a list or cons
cell containing two strings: the name of the option, and the
value.  For example,

  (setq org-latex-engraved-options
    \\='((\"highlightcolor\" \"green\") (\"frame\" \"lines\")))
  ; or
  (setq org-latex-engraved-options
    \\='((\"highlightcolor\" . \"green\") (\"frame\" . \"lines\")))

will result in the following LaTeX in the preamble

\\fvset{%
  bgcolor=bg,
  frame=lines}

This will affect all fvextra environments.  Note that the same
options will be applied to all blocks.  If you need
block-specific options, you may use the following syntax:

  #+ATTR_LATEX: :options key1=value1,key2=value2
  #+BEGIN_SRC <LANG>
  ...
  #+END_SRC"
  :group 'org-export-latex
  :package-version '(Org . "9.6")
  :type '(alist :key-type (string :tag "option")
                :value-type (string :tag "value")))