Tex: Difference between revisions
imported>7c6f434c Add an example of overriding a package version |
imported>IgorM m Added category, formatting |
||
| Line 32: | Line 32: | ||
The (pretty verbose) output will look similar to: | The (pretty verbose) output will look similar to: | ||
< | <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. | ||
</ | </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 125: | Line 126: | ||
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/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?) | ||
[[Category:Languages]] | |||