Tex: Difference between revisions
m prefix commands with "$" and use syntax highlighting |
m fix indentation |
||
| Line 8: | Line 8: | ||
TeX-documents are not What-you-see-is-what-you-get, but written in plain text, containing tags, commands and functions that instruct the TeX-engine how to lay out the text (or figures or anything else) on the page. | TeX-documents are not What-you-see-is-what-you-get, but written in plain text, containing tags, commands and functions that instruct the TeX-engine how to lay out the text (or figures or anything else) on the page. | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
| Line 95: | Line 94: | ||
<syntaxhighlight lang=nix> | <syntaxhighlight lang=nix> | ||
pkgs.texlive.combine { | |||
scheme-medium = pkgs.texlive.scheme-medium // { | |||
pkgs = pkgs.lib.filter | |||
(x: (x.pname != "apxproof")) | |||
pkgs.texlive.scheme-medium.pkgs; | |||
}; | |||
apxproof = { pkgs = [(pkgs.runCommand "apxproof" { | |||
src = pkgs.fetchurl { | |||
url = "https://raw.githubusercontent.com/PierreSenellart/apxproof/1ac14c47b8351b693ca05eec73dca1332a517ac9/apxproof.sty"; | |||
sha256 = "sha256-XSgtXsOwhMu2Wo4hVp8ZfaPWgjEEg3EBn5/BhD3xkMA="; | |||
}; | |||
passthru = { | |||
pname = "apxproof"; | |||
version = "1.2.3"; | |||
tlType = "run"; | |||
}; | |||
} | |||
" | |||
mkdir -p $out/tex/latex/apxproof/ | |||
cp $src $out/tex/latex/apxproof/apxproof.sty | |||
")]; }; | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||