From 5c247da3d98364314015898339dc400580d12996 Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Fri, 14 Mar 2025 09:20:03 -0400 Subject: [PATCH] Configured SyncTeX. --- hosts/randolph/home.nix | 5 +++++ snippets/kakoune/kak-lsp.toml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/hosts/randolph/home.nix b/hosts/randolph/home.nix index 71e6f07..db0950e 100644 --- a/hosts/randolph/home.nix +++ b/hosts/randolph/home.nix @@ -206,6 +206,11 @@ rec { programs.zathura = { enable = true; + options = { + selection-clipboard = "clipboard"; + synctex = "true"; + synctex-editor-command = "texlab inverse-search -i %{input} -l %{line}"; + }; }; programs.pandoc = { enable = true; }; diff --git a/snippets/kakoune/kak-lsp.toml b/snippets/kakoune/kak-lsp.toml index 61f5a5a..677bda8 100644 --- a/snippets/kakoune/kak-lsp.toml +++ b/snippets/kakoune/kak-lsp.toml @@ -392,6 +392,8 @@ command = "texlab" # # Preview configuration for zathura with SyncTeX search. # For other PDF viewers see https://github.com/latex-lsp/texlab/wiki/Previewing +build.forwardSearchAfter = true +build.onSave = true forwardSearch.executable = "zathura" forwardSearch.args = [ "%p",