Configured SyncTeX.

This commit is contained in:
vorboyvo 2025-03-14 09:20:03 -04:00
parent 7867c69415
commit 5c247da3d9
2 changed files with 7 additions and 0 deletions

View file

@ -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; };

View file

@ -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",