From 57eef55b0e903f880a1693d51b1e123220cfce78 Mon Sep 17 00:00:00 2001 From: "Pedro A. Aranda Gutierrez" Date: Tue, 13 Dec 2022 12:06:26 +0100 Subject: [PATCH 3/4] Refine DOCSTRING for org-latex-listings-src-omit-language --- lisp/ox-latex.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 924afb399..f18c2a068 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1024,9 +1024,18 @@ in this list - but it does not hurt if it is present." (defcustom org-latex-listings-src-omit-language nil "Set this option to t to omit the \"language=\" -in the parameters to \\begin{lstlisting} when exporting a src block" +in the parameters to \\begin{lstlisting} when exporting a src block. + +This is necessary, for example, when the `fancyvrb' package is used +instead of `listings' by including the following in the doc header: + +#+LATEX_HEADER: \\RequirePackage{fancyvrb} +#+LATEX_HEADER: \\DefineVerbatimEnvironment{verbatim}{Verbatim}{...} +#+LATEX_HEADER: \\DefineVerbatimEnvironment{lstlisting}{Verbatim}{...} + +{...} is whatever default parameters you need to pass to either environment. +" :group 'org-export-latex - :version "30.0" :package-version '(Org . "9.7") :type 'boolean) -- 2.25.1