CI: Fix PDF export

This commit is contained in:
TEC 2024-03-08 15:52:26 +08:00
parent 4675c9fbce
commit 063fab4dde
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@
(advice-add 'pdf-tools-install :around #'ignore)
(advice-add 'pdf-info-features :around #'ignore)
;; When called from `org-latex-src--engrave-code' the function
;; `TeX-run-style-hooks' ends up calling one of a few reftex functions tht
;; themselves call `reftex-TeX-master-file' which then invokes
;; `(expand-file-name nil)', causing an error.
(require 'tex)
(advice-add 'TeX-run-style-hooks :around #'ignore)
(setq org-link-parameters
(delq (assoc "pdf" org-link-parameters)
org-link-parameters))