Org: Julia-special behaviour for beamer too +tweak

This commit is contained in:
TEC 2022-06-22 20:45:20 +08:00
parent 66f9ec47d9
commit d80cd86fc5
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 6 additions and 1 deletions

View File

@ -9347,7 +9347,12 @@ need to make it automatic
#+begin_src emacs-lisp
(defadvice! org-latex-pick-compiler (_contents info)
:before #'org-latex-template
(when (and org-export-has-code-p (memq 'julia-code (org-latex-detect-features)))
:before #'org-beamer-template
(when (and org-export-has-code-p
(memq 'julia-code (org-latex-detect-features))
(save-excursion
(goto-char (point-min))
(re-search-forward "[^\x00-\x7F\u200b]" nil t)))
(setf info (plist-put
(if (member #'+org-latex-replace-non-ascii-chars (plist-get info :filter-final-output))
(plist-put info :filter-final-output