From acba3ccf92bfc51ca6595848d4d827d5078da3ba Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Thu, 11 Feb 2016 18:25:17 -0500 Subject: Finally got my dream LaTeX setup --- latex/.latexmkrc | 2 +- latex/.local/bin/szathura | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 latex/.local/bin/szathura (limited to 'latex') 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}" $* -- cgit v1.3