TexLive: Difference between revisions
m Capitalize NixOS according to MoS |
Use withPackages to follow the new changes in 23.11, as well as the new names for schemes |
||
| Line 7: | Line 7: | ||
organization of TeX Live into 'schemes' and 'collections' | organization of TeX Live into 'schemes' and 'collections' | ||
The following Tex Live schemes are available: | The following Tex Live schemes are available, inspect <code>texlive.schemes</code> for full list: | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 16: | Line 16: | ||
|- | |- | ||
|width=20% valign=top| Scheme-full | |width=20% valign=top| Scheme-full | ||
|width=50% valign=top| <code>nixpkgs. | |width=50% valign=top| <code>nixpkgs.texliveFull</code> | ||
|width=30% valign=top| Contains every TeX Live package | |width=30% valign=top| Contains every TeX Live package | ||
|- | |- | ||
| Scheme-medium | | Scheme-medium | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveMedium</code> | ||
| contains everything in the small scheme + more packages and languages | | contains everything in the small scheme + more packages and languages | ||
|- | |- | ||
| Scheme-small | | Scheme-small | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveSmall</code> | ||
| contains everything in the basic scheme + xetex, metapost, a few languages. | | contains everything in the basic scheme + xetex, metapost, a few languages. | ||
|- | |- | ||
| Scheme-basic | | Scheme-basic | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveBasic</code> | ||
| contains everything in the plain scheme but includes latex. | | contains everything in the plain scheme but includes latex. | ||
|- | |- | ||
| Scheme-minimal | | Scheme-minimal | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveMinimal</code> | ||
| contains plain only. | | contains plain only. | ||
|- | |- | ||
| Scheme-teTeX | | Scheme-teTeX | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveTeTex</code> | ||
| contains more than the medium scheme, but nowhere near the full scheme. | | contains more than the medium scheme, but nowhere near the full scheme. | ||
|- | |- | ||
| Scheme-ConTeXt | | Scheme-ConTeXt | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveConTeXt</code> | ||
| contains ConTeXt | | contains ConTeXt | ||
|- | |- | ||
| Scheme-GUST | | Scheme-GUST | ||
| <code>nixpkgs. | | <code>nixpkgs.texliveGUST</code> | ||
| contains gust | | contains gust | ||
|} | |} | ||
| Line 51: | Line 51: | ||
You can install a set with extra packages by using something like | You can install a set with extra packages by using something like | ||
<code>( | <code>(texliveMedium.withPackages (ps: with ps;[xifthen ifmtarg framed paralist titlesec])) | ||
</code> | </code> | ||
| Line 60: | Line 58: | ||
{ config, pkgs, ... }: | { config, pkgs, ... }: | ||
let | let | ||
tex = (pkgs. | tex = (pkgs.texliveBasic.withPackages ( | ||
ps: with ps; [ | |||
dvisvgm dvipng # for preview and export as html | dvisvgm dvipng # for preview and export as html | ||
wrapfig amsmath ulem hyperref capt-of | wrapfig amsmath ulem hyperref capt-of | ||
#(setq org-latex-compiler "lualatex") | #(setq org-latex-compiler "lualatex") | ||
#(setq org-preview-latex-default-process 'dvisvgm) | #(setq org-preview-latex-default-process 'dvisvgm) | ||
])); | |||
in | in | ||
{ # home-manager | { # home-manager | ||
| Line 96: | Line 94: | ||
├── corporate-identity.sty | ├── corporate-identity.sty | ||
You can now add the package to the combined set as you would with any other texlive package: | You can now add the package to the combined set as you would with any other texlive package: | ||
tex = pkgs.texlive. | tex =(pkgs.texlive.withPackages ( | ||
ps: with ps; [ | |||
texlive-corporate-identity | |||
])); | |||
== Troubleshooting == | == Troubleshooting == | ||