From e9fef31e9df77f61bced2d153c235f301514df70 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 28 May 2021 22:49:15 +0200 Subject: [PATCH] add settings for latexmk --- general/.aliases | 4 ++++ general/.latexmkrc | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 general/.latexmkrc diff --git a/general/.aliases b/general/.aliases index 0c7cbed..94fa6b6 100755 --- a/general/.aliases +++ b/general/.aliases @@ -57,6 +57,10 @@ if command -v netstat &> /dev/null; then alias ports='sudo netstat -tulpn | grep LISTEN' fi +if command -v latexmk &> /dev/null; then + alias view-latex='latexmk -pdf -pvc main.tex' +fi + # alias tangle-doom-emacs='cd $HOME/.doom.d && $HOME/.emacs.d/bin/org-tangle config.org && cd -' if command -v xmonad &> /dev/null; then diff --git a/general/.latexmkrc b/general/.latexmkrc new file mode 100644 index 0000000..b3b3fd9 --- /dev/null +++ b/general/.latexmkrc @@ -0,0 +1,7 @@ +$pdf_previewer = 'zathura %O'; +$pdflatex = 'pdflatex -synctex=1 -interaction=nonstopmode'; +@generated_exts = (@generated_exts, 'synctex.gz'); + +# pip install quietex +# https://blog.mje.nz/2019-07-31-quietex/ +eval `quietex --latexmkrc`;