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)
'(:time-stamp-file nil)))
org-export-use-babel
(org-latex-conditional-features
(cl-remove-if
(lambda (feat)
(plist-get (alist-get (cdr feat)
org-latex-feature-implementations)
:not-preview))
org-latex-conditional-features)))
;; (org-latex-conditional-features
;; (cl-remove-if
;; (lambda (feat)
;; (plist-get (alist-get (cdr feat)
;; org-latex-feature-implementations)
;; :not-preview))
;; org-latex-conditional-features))
)
(org-export-with-buffer-copy
:drop-narrowing t
(font-lock-mode -1)