add settings for latexmk

This commit is contained in:
Oystein Kristoffer Tveit 2021-05-28 22:49:15 +02:00
parent 81cbb7d078
commit e9fef31e9d
2 changed files with 11 additions and 0 deletions

View File

@ -57,6 +57,10 @@ if command -v netstat &> /dev/null; then
alias ports='sudo netstat -tulpn | grep LISTEN' alias ports='sudo netstat -tulpn | grep LISTEN'
fi 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 -' # alias tangle-doom-emacs='cd $HOME/.doom.d && $HOME/.emacs.d/bin/org-tangle config.org && cd -'
if command -v xmonad &> /dev/null; then if command -v xmonad &> /dev/null; then

7
general/.latexmkrc Normal file
View File

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