texdoc 找不到 pgf

texdoc 找不到 pgf

虽然我有不可或缺的pgfmanual.pdf位于/usr/share/doc/texmf/pgf/

texmf/pgf$ pwd
/usr/share/doc/texmf/pgf
texmf/pgf$ ls
pgfmanual.pdf
texmf/pgf$

texdoc 找不到它。

~$ texdoc -l pgf
 1 /usr/share/texlive/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.pdf
   = Package documentation
 2 /usr/share/texlive/texmf-dist/doc/latex/pgf-umlsd/pgf-umlsd-demo.pdf
   = Package demo
 3 /usr/share/texlive/texmf-dist/doc/latex/pgf-umlsd/pgf-umlsd-demo2.pdf
   = Package demo (2)
 4 /usr/share/texlive/texmf-dist/doc/latex/pgf-blur/pgf-blur.pdf
 5 /usr/share/texlive/texmf-dist/doc/latex/pgf-soroban/README
   = Readme
 6 /usr/share/texlive/texmf-dist/doc/latex/pgf-blur/README
   = Readme
 7 /usr/share/texlive/texmf-dist/doc/latex/pgf-umlsd/README
Please enter the number of the file to view, anything else to skip: 
~$ texdoc -l tikz
 21 results.  Display them all? (y/N) y
 1 /usr/share/texlive/texmf-dist/doc/latex/tikz-3dplot/tikz-3dplot_documentation.pdf
   = Package documentation
 2 /usr/share/texlive/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf
   = Package documentation
 3 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/tikz-dependency-doc.pdf
   = Package documentation
 4 /usr/share/texlive/texmf-dist/doc/latex/tikz-inet/tikz-inet-doc.pdf
   = Package documentation
 5 /usr/share/texlive/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.pdf
   = Package documentation
 6 /usr/share/texlive/texmf-dist/doc/latex/tikz-timing/tikz-timing.pdf
   = Package documentation
 7 /usr/share/texlive/texmf-dist/doc/latex/sa-tikz/sa-tikz-doc.pdf
 8 /usr/share/texlive/texmf-dist/doc/latex/hf-tikz/hf-tikz.pdf
 9 /usr/share/texlive/texmf-dist/doc/latex/tikz-timing/README
   = Readme
10 /usr/share/texlive/texmf-dist/doc/latex/tikz-cd/README
   = Readme
11 /usr/share/texlive/texmf-dist/doc/latex/tikz-3dplot/README
   = Readme
12 /usr/share/texlive/texmf-dist/doc/latex/tikz-inet/README
   = Readme
13 /usr/share/texlive/texmf-dist/doc/latex/tikz-qtree/README
   = Readme
14 /usr/share/texlive/texmf-dist/doc/latex/hf-tikz/README.txt
15 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/README
16 /usr/share/texlive/texmf-dist/doc/latex/sa-tikz/README
17 /usr/share/texlive/texmf-dist/doc/latex/hf-tikz/README
18 /usr/share/texlive/texmf-dist/doc/latex/tikz-bayesnet/README.rst
19 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/AUTHORS
20 /usr/share/texlive/texmf-dist/doc/latex/tikz-3dplot/CHANGELOG
21 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/VERSION
Please enter the number of the file to view, anything else to skip:         

根据评论编辑:

~$ kpathsea
zsh: command not found: kpathsea
~$ kpsewhich --var-value TEXMF
{/home/mrkelly/.texmf-config,/home/mrkelly/.texmf-var,/home/mrkelly/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf,!!/usr/share/texlive/texmf-dist}

整个 texlive 发行版都是通过 来安装的apt-get。唯一的例外是pgfmanual.pdf适当的,我将其解压,因为texdoc阅读存档手册时遇到了麻烦。也就是说,在我更新到 saucy 之前,texdoc pgf它运行良好。

我如何将 texdoc 指向正确的方向?

答案1

这是 Debian/Ubuntu 软件包中的一个错误。Debian TeX 政策明确规定,文档(或指向它的符号链接)应放在 texdoc 搜索的位置,但这里没有这样做。您应该在 Debian 和/或 Ubuntu 错误跟踪系统中报告该错误。

在等待错误修复时,在 texdoc 搜索的地方建立符号链接确实是一个很好的解决方法。

答案2

根据@jon 的意见,有一个简单的解决方法可以解决此问题。

ln -s /usr/share/doc/texmf/pgf/pgfmanual.pdf ~/texmf/doc/pgf/pgfmanual.pdf

texdoc pgf现在可以按预期工作。

相关内容