Clean up the section of using engraved' with org-mode'

This commit is contained in:
Gerard Vermeulen 2022-09-20 20:03:27 +02:00
parent 1ba80f8935
commit 7babab33e2

View File

@ -2294,13 +2294,12 @@ capable of handling this [[file:README.org]] file:*
installation of =engrave-faces= and makes =engrave-faces-latex-face-apply= installation of =engrave-faces= and makes =engrave-faces-latex-face-apply=
handle symbolic color name strings (in addition to the hexadecimal strings). handle symbolic color name strings (in addition to the hexadecimal strings).
3. The =org-latex-engraved-source-block-filter= in listing 3. The =org-latex-engraved-source-block-filter= in listing
[[lst:ox-latex-engraved-filter-emacs-lisp-setup]] and the [[lst:org-latex-engraved-source-block-filter]] and the
=org-latex-engraved-preamble= customization in listing =org-latex-engraved-preamble= customization in listing
[[lst:smart-latex-engrave-org-source-blocks]] allow to engrave =org-mode= source [[lst:smart-latex-engrave-org-source-blocks]] allow to engrave =org-mode= source
blocks to "floating unbreakable" or "non-floating breakable" LaTeX blocks to "floating unbreakable" or "non-floating breakable" LaTeX
environments. environments.
Listing [[lst:ox-latex-engraved-emacs-lisp-setup]] is shows how to use this 4. Listing [[lst:ox-engraved-emacs-lisp-setup]] shows how to use this configuration.
configuration.
#+caption[Ensure =engrave-faces= installation and fix multiline docstrings]: #+caption[Ensure =engrave-faces= installation and fix multiline docstrings]:
#+caption: Ensure =engrave-faces= installation and fix multiline docstrings. #+caption: Ensure =engrave-faces= installation and fix multiline docstrings.
@ -2392,7 +2391,7 @@ configuration.
#+caption: Define an =org-export= filter function to engrave =org-src-mode= #+caption: Define an =org-export= filter function to engrave =org-src-mode=
#+caption: blocks to floating unbreakable LaTeX environments or non-floating #+caption: blocks to floating unbreakable LaTeX environments or non-floating
#+caption: breakable LaTeX environments. #+caption: breakable LaTeX environments.
#+name: lst:ox-latex-engraved-filter-emacs-lisp-setup #+name: lst:org-latex-engraved-source-block-filter
#+begin_src emacs-lisp :results silent #+begin_src emacs-lisp :results silent
(defun org-latex-engraved-source-block-filter (data _backend _info) (defun org-latex-engraved-source-block-filter (data _backend _info)
"Replace \"Code\" with \"Breakable\" in non-floating environments. "Replace \"Code\" with \"Breakable\" in non-floating environments.
@ -2471,9 +2470,9 @@ configuration.
#+caption[Emacs setup to use =engrave-faces-latex= in =org-mode= smartly]: #+caption[Emacs setup to use =engrave-faces-latex= in =org-mode= smartly]:
#+caption: Emacs setup to use =engrave-faces-latex= in =org-mode= smartly. #+caption: Emacs setup to use =engrave-faces-latex= in =org-mode= smartly.
#+name: lst:ox-latex-engraved-emacs-lisp-setup #+name: lst:ox-engraved-emacs-lisp-setup
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no
(with-eval-after-load 'ox-latex (with-eval-after-load 'ox
(make-variable-buffer-local 'org-export-filter-src-block-functions) (make-variable-buffer-local 'org-export-filter-src-block-functions)
(add-to-list 'org-export-filter-src-block-functions (add-to-list 'org-export-filter-src-block-functions
'org-latex-engraved-source-block-filter) 'org-latex-engraved-source-block-filter)