我通常pdflatex
用来编译 Latex 文档,但在 NixOS 上我看不到pdflatex
可以通过$ nix-env -i pdflatex
.
$ nix-env -qa pdflatex
error: selector ‘pdflatex’ matches no derivations
Run Code Online (Sandbox Code Playgroud)
的结果pdflatex
也不会出现在nixos.org/nixos/packages.html 的搜索中。但是,我确实注意到了包rubber
,它显然包装了其他乳胶程序,包括pdflatex
. 安装rubber
并尝试用它编译我的乳胶文档后,我收到以下“找不到 pdflatex”错误。
$ rubber --pdf doc.tex
compiling doc.tex...
pdflatex not found
Running pdflatex failed.
Run Code Online (Sandbox Code Playgroud)
如何在 NixOS 上安装 pdflatex 来编译 Latex 文档?
为什么rubber
可通过 安装,nix-env
而pdflatex
的依赖项rubber
则不是?
作为旁注,手册的“Tex/Latex”部分没有解释这一点。