TexLive: Difference between revisions

imported>StefanSchroeder
m Added new TeX-article in wiki as Further Reading
imported>StefanSchroeder
Restructured table for TeXlive schemes and added another troubleshooting entry.
Line 4: Line 4:


== Installation ==
== Installation ==
Since TeX Live consist of thousands of packages, to make managing it easier, NixOS provides the following sets:
Since TeX Live consist of thousands of packages, to make managing it easier, NixOS replicates the  
organization of TeX Live into 'schemes' and 'collections'


* full, <code>nixpkgs.texlive.combined.scheme-full</code>, contains every TeX Live package.
The following Tex Live schemes are available:


* medium, <code>nixpkgs.texlive.combined.scheme-medium</code>, contains everything in the small scheme + more packages and languages.
{| class="wikitable"
 
|-
* small, <code>nixpkgs.texlive.combined.scheme-small</code>, contains everything in the basic scheme + xetex, metapost, a few languages.
! Name of TeX Live package
 
! Name of Nixos-derivation
* basic, <code>nixpkgs.texlive.combined.scheme-basic</code>, contains everything in the plain scheme but includes latex.
! Comment
 
|-
* minimal, <code>nixpkgs.texlive.combined.scheme-minimal</code>, contains plain only.
|width=20% valign=top| Scheme-full
 
|width=50% valign=top| <code>nixpkgs.texlive.combined.scheme-full</code>
* teTeX, <code>nixpkgs.texlive.combined.scheme-tetex </code>, contains more than the medium scheme, but nowhere near the full scheme
|width=30% valign=top| Contains every TeX Live package
 
|-
* ConTeXt, <code>nixpkgs.texlive.combined.scheme-context</code>.
| Scheme-medium
 
| <code>nixpkgs.texlive.combined.scheme-medium</code>
* GUST, <code>nixpkgs.texlive.combined.scheme-gust </code>.
| contains everything in the small scheme + more packages and languages
|-
| Scheme-small
| <code>nixpkgs.texlive.combined.scheme-small</code>
| contains everything in the basic scheme + xetex, metapost, a few languages.
|-
| Scheme-basic
| <code>nixpkgs.texlive.combined.scheme-basic</code>
| contains everything in the plain scheme but includes latex.
|-
| Scheme-minimal
| <code>nixpkgs.texlive.combined.scheme-minimal</code>
| contains plain only.
|-
| Scheme-teTeX
| <code>nixpkgs.texlive.combined.scheme-tetex</code>
| contains more than the medium scheme, but nowhere near the full scheme.
|-
| Scheme-ConTeXt
| <code>nixpkgs.texlive.combined.scheme-context</code>
| contains ConTeXt
|-
| Scheme-GUST
| <code>nixpkgs.texlive.combined.scheme-gust</code>
| contains gust
|}


===Combine Sets===
===Combine Sets===
Line 33: Line 59:
=== Missing <code>lmodern.sty</code> ===
=== Missing <code>lmodern.sty</code> ===
If LaTex (perhaps through Pandoc) complains about missing <code>lmodern.sty</code>, make sure you have at least <code>texlive.combined.scheme-medium</code> installed (-full should work as well; while -small worked for some, but not for all).
If LaTex (perhaps through Pandoc) complains about missing <code>lmodern.sty</code>, make sure you have at least <code>texlive.combined.scheme-medium</code> installed (-full should work as well; while -small worked for some, but not for all).
=== Invalid fontname ‘Latin Modern Roman/ICU’ ===
If you get an error message saying “Invalid fontname ‘Latin Modern Roman/ICU’. . . ”, then you need to add the
entry **lmodern** into your configuration in the section **fonts.fonts** and rebuild. 


== Further reading ==
== Further reading ==
* [https://www.tug.org/texlive/doc/texlive-en/texlive-en.html The Tex Live Guide 2018]
* [https://www.tug.org/texlive/doc/texlive-en/texlive-en.html The Tex Live Guide 2018]
* [[Tex]] in NixOS-Wiki
* [[Tex]] in NixOS-Wiki