From 7babab33e224db7314cf2dd405c14346d1029fa7 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Tue, 20 Sep 2022 20:03:27 +0200 Subject: [PATCH] Clean up the section of using `engraved' with `org-mode' --- README.org | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index ff9d84d..149eddc 100644 --- a/README.org +++ b/README.org @@ -2294,13 +2294,12 @@ capable of handling this [[file:README.org]] file:* installation of =engrave-faces= and makes =engrave-faces-latex-face-apply= handle symbolic color name strings (in addition to the hexadecimal strings). 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 [[lst:smart-latex-engrave-org-source-blocks]] allow to engrave =org-mode= source blocks to "floating unbreakable" or "non-floating breakable" LaTeX environments. -Listing [[lst:ox-latex-engraved-emacs-lisp-setup]] is shows how to use this -configuration. +4. Listing [[lst:ox-engraved-emacs-lisp-setup]] shows how to use this configuration. #+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: blocks to floating unbreakable LaTeX environments or non-floating #+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 (defun org-latex-engraved-source-block-filter (data _backend _info) "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. -#+name: lst:ox-latex-engraved-emacs-lisp-setup +#+name: lst:ox-engraved-emacs-lisp-setup #+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) (add-to-list 'org-export-filter-src-block-functions 'org-latex-engraved-source-block-filter)