我通常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-env
while而不是pdflatex
的依赖项进行安装rubber
?
附带说明,本手册的“ Tex / Latex”部分未对此进行说明。
您正在链接一些古老版本的手册。在最新版本中对此进行了解释:http : //nixos.org/nixpkgs/manual/#sec-language-texlive
nix-env -iA nixos.texlive.combined.scheme-basic
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句