summaryrefslogtreecommitdiffstats
path: root/latex
diff options
context:
space:
mode:
Diffstat (limited to 'latex')
-rw-r--r--latex/.latexmkrc2
-rwxr-xr-xlatex/.local/bin/szathura3
2 files changed, 4 insertions, 1 deletions
diff --git a/latex/.latexmkrc b/latex/.latexmkrc
index f865d27..c4377a5 100644
--- a/latex/.latexmkrc
+++ b/latex/.latexmkrc
@@ -1,4 +1,4 @@
$pdf_mode = 1;
$pdflatex ="pdflatex -interaction=nonstopmode -synctex 1 %O %S";
push @generated_exts, "brf", "synctex.gz", "nav", "snm";
-$pdf_previewer = "start evince %O %S"
+$pdf_previewer = "~/.local/bin/szathura %Z%S"
diff --git a/latex/.local/bin/szathura b/latex/.local/bin/szathura
new file mode 100755
index 0000000..019ac06
--- /dev/null
+++ b/latex/.local/bin/szathura
@@ -0,0 +1,3 @@
+#!/bin/sh
+FNAME=$PWD/$1
+zathura -x "gvim --servername $FNAME -c \"let g:syncpdf='$FNAME'\" --remote +%{line} %{input}" $*