kpsewhich 没有找到包,但应该如调试输出所示

kpsewhich 没有找到包,但应该如调试输出所示

目前我正在尝试手动安装软件包(不是从存储库中预先打包的(我在 Linux 下))。我使用tllocalmgr(参见这篇 wiki 帖子在这里这个包在这里),但我认为这不是重点。实际上,我在 安装了 (tex-) 包/usr/local/share/texmf/tex/latex/

我遇到的问题是kpsewhich似乎无法找到 (tex-) 包。令我感到疑惑的是,当启用调试输出时,我可以看到kpsewhich确实查看了/usr/share/texmf-dist/目录。

有人可以帮我在这里找到这个问题吗?

注意:我正在使用 ArchLinux(顺便说一下,我使用 Arch,但我想我在某处读到过 Arch 在编译 tex 时对某些路径做了一些事情)

在控制台上查看我的输出:

$ tllocalmgr install nicematrix && sudo texhash
Initializing ...
==> ERROR: PKGBUILD does not exist.
==> WARNING: A package has already been built, installing existing package...
==> Installing package texlive-local-nicematrix with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) texlive-local-nicematrix-62660-1

Total Installed Size:  0,30 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                                     [#####################################################################] 100%
(1/1) checking package integrity                                                                                   [#####################################################################] 100%
(1/1) loading package files                                                                                        [#####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [#####################################################################] 100%
(1/1) checking available disk space                                                                                [#####################################################################] 100%
:: Processing package changes...
(1/1) installing texlive-local-nicematrix                                                                          [#####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

>>> Finished. Don't forget to run 'texhash' to update your file database.
texhash: Updating /etc/texmf/ls-R...
texhash: Updating /usr/local/share/texmf/ls-R...
texhash: Updating /usr/share/texmf/ls-R...
texhash: Updating /usr/share/texmf-dist/ls-R...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.
$ pacman -Ql texlive-local-nicematrix
texlive-local-nicematrix /usr/
texlive-local-nicematrix /usr/local/
texlive-local-nicematrix /usr/local/share/
texlive-local-nicematrix /usr/local/share/texmf/
texlive-local-nicematrix /usr/local/share/texmf/tex/
texlive-local-nicematrix /usr/local/share/texmf/tex/latex/
texlive-local-nicematrix /usr/local/share/texmf/tex/latex/nicematrix/
texlive-local-nicematrix /usr/local/share/texmf/tex/latex/nicematrix/nicematrix.sty
$ kpsewhich tikz
/usr/share/texmf-dist/tex/plain/pgf/frontendlayer/tikz.tex
$ kpsewhich -debug=2 nicematrix
kdebug:db:init(): using db file /usr/local/share/texmf/ls-R.
kdebug:db:init(): using db file /usr/share/texmf/ls-R.
kdebug:db:init(): using db file /etc/texmf/ls-R.
kdebug:db:init(): using db file /var/lib/texmf/ls-R.
kdebug:db:init(): using db file /usr/share/texmf-dist/ls-R.
kdebug:/usr/local/share/texmf/ls-R: 6 entries in 4 directories (0 hidden).
kdebug:ls-R hash table:64007 buckets, 6 nonempty (0%); 6 entries, average chain 1.0.
kdebug:/usr/share/texmf/ls-R: 20 entries in 7 directories (0 hidden).
kdebug:ls-R hash table:64007 buckets, 22 nonempty (0%); 26 entries, average chain 1.2.
kdebug:/etc/texmf/ls-R: 29 entries in 12 directories (0 hidden).
kdebug:ls-R hash table:64007 buckets, 46 nonempty (0%); 55 entries, average chain 1.2.
kdebug:/var/lib/texmf/ls-R: 149 entries in 28 directories (0 hidden).
kdebug:ls-R hash table:64007 buckets, 172 nonempty (0%); 204 entries, average chain 1.2.
kdebug:/usr/share/texmf-dist/ls-R: 30102 entries in 2202 directories (0 hidden).
kdebug:ls-R hash table:64007 buckets, 20285 nonempty (31%); 30306 entries, average chain 1.5.
$ cat /usr/local/share/texmf/ls-R
% ls-R -- filename database for kpathsea; do not change this line.
./:
.:
ls-R
tex


./tex:
latex

./tex/latex:
nicematrix

./tex/latex/nicematrix:
nicematrix.sty
$

答案1

原来kpsewhich nicematrix.sty可以找到该文件

相关内容