TexLive

From NixOS Wiki
Revision as of 07:12, 9 October 2020 by StefanSchroeder (talk | contribs) (Added new TeX-article in wiki as Further Reading)
Jump to: navigation, search

According to Wikipedia:

TeX Live is a free software distribution for the TeX typesetting system that includes major TeX-related programs, macro packages, and fonts.

Installation

Since TeX Live consist of thousands of packages, to make managing it easier, NixOS provides the following sets:

  • full, nixpkgs.texlive.combined.scheme-full, contains every TeX Live package.
  • medium, nixpkgs.texlive.combined.scheme-medium, contains everything in the small scheme + more packages and languages.
  • small, nixpkgs.texlive.combined.scheme-small, contains everything in the basic scheme + xetex, metapost, a few languages.
  • basic, nixpkgs.texlive.combined.scheme-basic, contains everything in the plain scheme but includes latex.
  • minimal, nixpkgs.texlive.combined.scheme-minimal, contains plain only.
  • teTeX, nixpkgs.texlive.combined.scheme-tetex , contains more than the medium scheme, but nowhere near the full scheme
  • ConTeXt, nixpkgs.texlive.combined.scheme-context.
  • GUST, nixpkgs.texlive.combined.scheme-gust .

Combine Sets

You can install a set with extra packages by using something like

(texlive.combine { inherit (texlive) scheme-medium xifthen ifmtarg framed paralist titlesec; })

Troubleshooting

Missing lmodern.sty

If LaTex (perhaps through Pandoc) complains about missing lmodern.sty, make sure you have at least texlive.combined.scheme-medium installed (-full should work as well; while -small worked for some, but not for all).

Further reading