From c98867d0b4be4a098d325a12acad0a74a07c93ba Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 27 Oct 2023 14:49:26 +0200 Subject: [PATCH] Latex + Zathura: test continuous preview --- modules/hm/development/latex.nix | 5 +++++ modules/hm/zathura.nix | 1 + 2 files changed, 6 insertions(+) diff --git a/modules/hm/development/latex.nix b/modules/hm/development/latex.nix index ad4a4f6..565bd48 100644 --- a/modules/hm/development/latex.nix +++ b/modules/hm/development/latex.nix @@ -5,4 +5,9 @@ inherit (pkgs) texlab aspell; inherit (pkgs.aspellDicts) en en-computers en-science it; }); + + home.file.".latexmkrc".text = '' + $pdf_previewer = 'zathura %O %S'; + $pdf_update_method = 2 + ''; } diff --git a/modules/hm/zathura.nix b/modules/hm/zathura.nix index dac14bf..7808f92 100644 --- a/modules/hm/zathura.nix +++ b/modules/hm/zathura.nix @@ -18,6 +18,7 @@ in # recolor-darkcolor = strPalette.primary.foreground; # statusbar-bg = strPalette.bright.black; selection-clipboard = "clipboard"; + filemonitor = "signal"; # adapted from https://github.com/eastack/zathura-gruvbox notification-error-bg = strPalette.primary.background;