Sample Header Ad - 728x90

How to compile a Latex document on NixOS?

12 votes
1 answer
7351 views
I normally use pdflatex to compile latex documents, but on NixOS I do not see that pdflatex is available to install via $ nix-env -i pdflatex. $ nix-env -qa pdflatex error: selector ‘pdflatex’ matches no derivations Results for pdflatex do not appear under search at nixos.org/nixos/packages.html either. However, I did notice there the package rubber, which apparently wraps other latex programs including pdflatex. After installing rubber and attempting to compile my latex document with it I get the following "pdflatex is not found" error. $ rubber --pdf doc.tex compiling doc.tex... pdflatex not found Running pdflatex failed. **How can I install pdflatex to compile latex documents on NixOS?** **Why is rubber available for installation via nix-env whereas pdflatex, a dependency of rubber, is not?** As a side-note, the 'Tex/Latex' section of the manual does not explain this.
Asked by mherzl (1629 rep)
Jul 22, 2017, 09:22 PM
Last activity: Nov 6, 2022, 02:57 PM