From 7a5d60123b8476f1e4412005cf1385ac2f39c199 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Mon, 28 Sep 2026 23:04:40 +0200 Subject: [PATCH] feat(latex): add watch command --- latex/flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/latex/flake.nix b/latex/flake.nix index 5a74b46..3f40bc0 100644 --- a/latex/flake.nix +++ b/latex/flake.nix @@ -11,6 +11,13 @@ pkgs = import nixpkgs { inherit system; }; + + watchLatex = pkgs.writeShellApplication { + name = "watch-latex"; + text = '' + latexmk -pdf -pdflatex='pdflatex -interaction=nonstopmode' -pvc -view=none + ''; + }; in { devShells.default = pkgs.mkShell { packages = with pkgs; [ @@ -21,6 +28,8 @@ gnumake latexminted + watchLatex + # Presentation tools pdfpc pympress