我通常pdflatex用来编译乳胶文档,但是在NixOS上,我看不到pdflatex可以通过安装$ nix-env -i pdflatex。
$ nix-env -qa pdflatex
error: selector ‘pdflatex’ matches no derivations
pdflatex搜索的结果也不会出现在nixos.org/nixos/packages.html的搜索下。但是,我确实注意到了该软件包rubber,该软件包显然包装了其他乳胶程序,包括pdflatex。安装rubber并尝试使用它编译我的乳胶文档后,出现以下“找不到pdflatex”错误。
$ rubber --pdf doc.tex
compiling doc.tex...
pdflatex not found
Running pdflatex failed.
如何安装pdflatex在NixOS上编译乳胶文档?
为什么rubber可以通过nix-envwhile而不是pdflatex的依赖项进行安装rubber?
附带说明,本手册的“ Tex / Latex”部分对此没有说明。
nix-env -iA nixpkgs.texlive.combined.scheme-basic会抛出该错误LaTeX Error: File 'lmodern.sty' not found.,并且nix-env -i lmodern根据此答案,安装后仍无法弄清楚如何链接它。)