org-latex-preview: org-latex-conditional-features

* lisp/org-latex-preview.el (org-latex-preview--get-preamble):
This commit is contained in:
TEC 2023-02-07 02:41:42 +08:00
parent 9724e205e7
commit 58b2400e00
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 8 additions and 7 deletions

View File

@ -1424,13 +1424,14 @@ previews."
(org-export--get-buffer-attributes) (org-export--get-buffer-attributes)
'(:time-stamp-file nil))) '(:time-stamp-file nil)))
org-export-use-babel org-export-use-babel
(org-latex-conditional-features ;; (org-latex-conditional-features
(cl-remove-if ;; (cl-remove-if
(lambda (feat) ;; (lambda (feat)
(plist-get (alist-get (cdr feat) ;; (plist-get (alist-get (cdr feat)
org-latex-feature-implementations) ;; org-latex-feature-implementations)
:not-preview)) ;; :not-preview))
org-latex-conditional-features))) ;; org-latex-conditional-features))
)
(org-export-with-buffer-copy (org-export-with-buffer-copy
:drop-narrowing t :drop-narrowing t
(font-lock-mode -1) (font-lock-mode -1)