From dabdc3026e32ec674e22698de6257d724f60c4af Mon Sep 17 00:00:00 2001 From: "Pedro A. Aranda Gutierrez" Date: Wed, 14 Dec 2022 07:32:31 +0100 Subject: [PATCH 3/3] etc/ORG-NEWS: add org-latex-listings-src-omit-language * etc/ORG-NEWS: Add information for `org-latex-listings-src-omit-language' --- etc/ORG-NEWS | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 5d5e726e0..bd78ed9a7 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -432,6 +432,21 @@ following properties: ~:hook~, ~:prepare-finalize~, ~:before-finalize~, ~:after-finalize~. These nullary functions run prior to their global counterparts for the selected template. + +*** New =org-latex-listings-src-omit-language= variable for LaTeX export + +The ~org-latex-listings-src-omit-language~ customization variable +allows you to omit the =language= parameter in the exported +=lstlisting= environment. This is necessary when the =listings= +backend delegates listing generation to another package like +=fancyvrb= using the following setup in the document header: + +#+BEGIN_src org +,#+LATEX_HEADER: \RequirePackage{fancyvrb} +,#+LATEX_HEADER: \DefineVerbatimEnvironment{verbatim}{Verbatim}{...whatever...} +,#+LATEX_HEADER: \DefineVerbatimEnvironment{lstlisting}{Verbatim}{...whatever...} +#+END_src + ** New options *** A new option for custom setting ~org-refile-use-outline-path~ to show document title in refile targets @@ -747,7 +762,6 @@ following snippet to allow multiple different ID formats in Org files. org-attach-id-uuid-folder-format org-attach-id-ts-folder-format)) #+end_src - * Version 9.5 ** Important announcements and breaking changes -- 2.25.1