Set `org-latex-src-block-backend' interactively allowing more hacks
This commit is contained in:
parent
8226589464
commit
2149aee72d
14
README.org
14
README.org
@ -3509,6 +3509,20 @@ environments and non-floating breakable LaTeX environments by means of
|
|||||||
(smart-latex-engrave-org-source-blocks)))
|
(smart-latex-engrave-org-source-blocks)))
|
||||||
#+end_src
|
#+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:
|
*** [[https://oer.gitlab.io/org-re-reveal/Readme.html][Org-re-reveal]] :noexport:
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: sec:org-re-reveal
|
:CUSTOM_ID: sec:org-re-reveal
|
||||||
|
Loading…
Reference in New Issue
Block a user