diff --git a/.config/nvim/lua/plugins/knap.lua b/.config/nvim/lua/plugins/knap.lua index ae6a375..32fbf9b 100644 --- a/.config/nvim/lua/plugins/knap.lua +++ b/.config/nvim/lua/plugins/knap.lua @@ -23,13 +23,14 @@ return { if engine == "xelatex" then vim.g.knap_settings.textopdf = "xelatex -synctex=1 -interaction=batchmode %docroot%" else - vim.g.knap_settings.textopdf = "pdflatex -synctex=1 -interaction=batchmode %docroot%" + vim.g.knap_settings.textopdf = "pdflatex --shell-escape -synctex=1 -interaction=batchmode %docroot%" end end vim.g.knap_settings = { delay = 100, texoutputext = "pdf", - textopdf = "pdflatex -synctex=1 -interaction=batchmode %docroot%", + -- textopdf = "pdflatex --shell-escape -synctex=1 -interaction=batchmode %docroot%", + textopdf = "xelatex -synctex=1 -interaction=batchmode %docroot%", textopdfviewerlaunch = "zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' ./%outputfile%", textopdfviewerrefresh = "reload", textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%", diff --git a/.local/bin/etc/nvim/compiler b/.local/bin/etc/nvim/compiler index d85ad58..372d59f 100755 --- a/.local/bin/etc/nvim/compiler +++ b/.local/bin/etc/nvim/compiler @@ -15,7 +15,7 @@ vipercmd="carbon" #"silicon" cd "$dir" || exit textype() { \ - command="pdflatex" + command="pdflatex --shell-escape" ( sed 5q "$file" | grep -i -q 'xelatex' ) && command="xelatex" $command --output-directory="$dir" "$base" && grep -i addbibresource "$file" >/dev/null &&