遞歸搜尋 .sty 檔案會減慢文字處理過程

遞歸搜尋 .sty 檔案會減慢文字處理過程

我正在運行 Debian 10 並emacs 26.1使用org通過xelatex.一切工作正常,但最近,xelatex花費的時間比以前長得多。當我跟踪該過程時,我看到很多行,如下所示:

access("/home/loris/texmf/tex/latex/longtable.sty", R_OK) = -1 ENOENT (No such file or directory)
access("/home/loris/texmf/tex/latex/mtheme-master/longtable.sty", R_OK) = -1 ENOENT (No such file or directory)
access("/home/loris/texmf/tex/latex/mtheme-master/demo/longtable.sty", R_OK) = -1 ENOENT (No such file or directory)
access("/home/loris/texmf/tex/latex/mtheme-master/docker/longtable.sty", R_OK) = -1 ENOENT (No such file or directory)
access("/home/loris/texmf/tex/latex/mtheme-master/source/longtable.sty", R_OK) = -1 ENOENT (No such file or directory)
access("/home/loris/texmf/tex/latex/mtheme-master/doc/longtable.sty", R_OK) = -1 ENOENT (No such file or directory)

各個檔案確實不存在,但路徑存在,例如

/home/loris/texmf/tex/latex/mtheme-master

做。因此,在本例中,遞歸搜尋似乎longtable.sty會減慢整個過程。該文件實際上可以在這裡找到:

/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty

所以看起來包的搜尋順序不正確。誰能告訴我這個可以在哪裡配置?$TEXMF*在我的環境中似乎沒有定義任何變數。

答案1

正如我在評論中提到的,我的案例中的問題是透過VPN存取org文件引起的。sshfs這些額外的層似乎會導致速度急劇下降。

相關內容