Set `org-latex-src-block-backend' interactively allowing more hacks

This commit is contained in:
Gerard Vermeulen 2024-01-27 17:25:19 +01:00
parent 8226589464
commit 2149aee72d
1 changed files with 14 additions and 0 deletions

View File

@ -3509,6 +3509,20 @@ environments and non-floating breakable LaTeX environments by means of
(smart-latex-engrave-org-source-blocks)))
#+end_src
#+caption[Set ~org-latex-src-block-backend~]:
#+caption: Set ~org-latex-src-block-backend~.
#+name: lst:set-org-latex-src-block-backend
#+begin_src emacs-lisp -n :results silent
(defun set-org-latex-src-block-backend ()
"Set the LaTeX export backend which generates source code listings."
(interactive)
(when (require 'ox-latex nil 'noerror)
(let ((choice (completing-read
"Backend: " '(verbatim listings minted engraved) nil t)))
(setopt org-latex-src-block-backend (intern-soft choice)))
(org-babel-execute-named-block nil)))
#+end_src
*** [[https://oer.gitlab.io/org-re-reveal/Readme.html][Org-re-reveal]] :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:org-re-reveal