Tex: Difference between revisions

imported>7c6f434c
Add an example of overriding a package version
Fix link to texlive package spec
 
(One intermediate revision by one other user not shown)
Line 32: Line 32:
The (pretty verbose) output will look similar to:
The (pretty verbose) output will look similar to:


<pre>
<syntaxhighlight lang=console>
$ pdflatex minimal.tex
$ pdflatex minimal.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2019/NixOS.org)
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2019/NixOS.org)
Line 47: Line 47:
Output written on minimal.pdf (1 page, 12502 bytes).
Output written on minimal.pdf (1 page, 12502 bytes).
Transcript written on minimal.log.
Transcript written on minimal.log.
</pre>
</syntaxhighlight>


Well done, you created your first PDF document on Nixos using TeX.
Well done, you created your first PDF document on Nixos using TeX.
Line 90: Line 90:
Example code:
Example code:


 
<syntaxhighlight lang=nix>
     pkgs.texlive.combine {
     pkgs.texlive.combine {
       scheme-medium = pkgs.texlive.scheme-medium // {
       scheme-medium = pkgs.texlive.scheme-medium // {
Line 114: Line 114:
       ")]; };
       ")]; };
     }
     }
</syntaxhighlight>




Line 124: Line 125:
<code>nix-env -iA nixpkgs.texlive.combined.scheme-full</code>
<code>nix-env -iA nixpkgs.texlive.combined.scheme-full</code>


If you are looking for a smaller package, you need to go the [https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/tools/typesetting/tex/texlive/pkgs.nix Nixpkg's package specification] and search for the scheme-name. For each scheme the list of packages is listed there. Since the inclusion of packages is organized hierarchically, this will require some digging. (TODO: Is there a nix-command to find out?)
If you are looking for a smaller package, you need to go the [https://raw.githubusercontent.com/NixOS/nixpkgs/refs/heads/master/pkgs/tools/typesetting/tex/texlive/tlpdb.nix Nixpkg's package specification] and search for the scheme-name. For each scheme the list of packages is listed there. Since the inclusion of packages is organized hierarchically, this will require some digging. (TODO: Is there a nix-command to find out?)
 
[[Category:Languages]]