Variable: org-latex-listings-options
org-latex-listings-options is a customizable variable defined in
ox-latex.el.gz.
Value
nil
Documentation
Association list of options for the latex listings package.
These options are supplied as a comma-separated list to the
\lstset command. Each element of the association list should be
a list or cons cell containing two strings: the name of the
option, and the value. For example,
(setq org-latex-listings-options
'(("basicstyle" "\\\\small")
("keywordstyle" "\\\\color{black}\\\\bfseries\\\\underbar")))
; or
(setq org-latex-listings-options
'(("basicstyle" . "\\\\small")
("keywordstyle" . "\\\\color{black}\\\\bfseries\\\\underbar")))
will typeset the code in a small size font with underlined, bold black keywords.
Note that the same options will be applied to blocks of all languages. If you need block-specific options, you may use the following syntax:
#+ATTR_LATEX: :options key1=value1,key2=value2
#+BEGIN_SRC <LANG>
...
#+END_SRC
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
(defcustom org-latex-listings-options nil
"Association list of options for the latex listings package.
These options are supplied as a comma-separated list to the
\\lstset command. Each element of the association list should be
a list or cons cell containing two strings: the name of the
option, and the value. For example,
(setq org-latex-listings-options
\\='((\"basicstyle\" \"\\\\small\")
(\"keywordstyle\" \"\\\\color{black}\\\\bfseries\\\\underbar\")))
; or
(setq org-latex-listings-options
\\='((\"basicstyle\" . \"\\\\small\")
(\"keywordstyle\" . \"\\\\color{black}\\\\bfseries\\\\underbar\")))
will typeset the code in a small size font with underlined, bold
black keywords.
Note that the same options will be applied to blocks of all
languages. 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
:type '(repeat
(list
(string :tag "Listings option name ")
(string :tag "Listings option value"))))