Set `org-latex-compiler-file-string' at top level only

This commit is contained in:
Gerard Vermeulen 2024-02-10 09:40:49 +01:00
parent a9905a2b16
commit a7185b37f7

View File

@ -3578,9 +3578,6 @@ environments and non-floating breakable LaTeX environments by means of
(make-local-variable 'org-export-filter-src-block-functions) (make-local-variable '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)
(make-variable-buffer-local 'org-latex-compiler-file-string)
(setq org-latex-compiler-file-string
"%% -*- mode: LaTeX; -*-\n%% Intended LaTeX compiler: %s\n")
(when (fboundp 'smart-latex-engrave-org-source-blocks) (when (fboundp 'smart-latex-engrave-org-source-blocks)
(smart-latex-engrave-org-source-blocks))) (smart-latex-engrave-org-source-blocks)))
#+end_src #+end_src