mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-04-27 08:11:37 +02:00
Nvim: Knap now uses shell-escape which works better for some compiled data (for example svg)
This commit is contained in:
@@ -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%",
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user