inputs: { pkgs, config, ... }: let # TODO: add latexmkrc texliveEnv = with pkgs; texlive.combine { inherit (texlive) scheme-small latexmk texdoc # Needed for texdoc but somehow not automatically added luatex collection-langenglish collection-langfrench csquotes glossaries glossaries-english glossaries-french glossaries-extra microtype fontspec lm-math cm-super a4wide biber biblatex biblatex-ieee biblatex-apa nath stmaryrd placeins wrapfig svg transparent textpos # For Octavo Tufte template {{{ epigraph # For epigraph nextpage tcolorbox # For tcolorbox environ listingsutf8 tufte-latex # For tufte-latex hardwrap titlesec palatino # }}} algorithms algorithmicx # For Metropolis Beamer theme catchfile minted asymptote todonotes standalone dirtree cleveref xurl # For varioref tools footmisc morewrites # For Metropolis Beamer theme pgfopts beamertheme-metropolis beamercolorthemeowl # Dependencies somehow missing logreq xstring fvextra ifplatform framed # For standalone currfile # For glossaries xindy mfirstuc xfor datatool tracklang # For datatool substr # For asymptote everypage media9 ocgx2 ; }; in { users.extraUsers.minijackson.packages = with pkgs; [ texliveEnv biber #tomorrowPygments asymptote ghostscript xdotool ]; # Fira Code is nice for code reading fonts.packages = with pkgs; [ fira-code cm_unicode ]; vim = { lsp.texlab = { cmd = [ "${pkgs.unstable.texlab}/bin/texlab" ]; settings.texlab.build = { executable = "${texliveEnv}/bin/latexmk"; args = [ "-synctex=1" "-interaction=nonstopmode" "-shell-escape" "-use-make" "-8bit" "-xelatex" "-output-directory=latexmk-build" "%f" ]; auxDirectory = [ "latexmk-build" ]; }; }; }; }