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
|
if engine == "xelatex" then
|
||||||
vim.g.knap_settings.textopdf = "xelatex -synctex=1 -interaction=batchmode %docroot%"
|
vim.g.knap_settings.textopdf = "xelatex -synctex=1 -interaction=batchmode %docroot%"
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
vim.g.knap_settings = {
|
vim.g.knap_settings = {
|
||||||
delay = 100,
|
delay = 100,
|
||||||
texoutputext = "pdf",
|
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%",
|
textopdfviewerlaunch = "zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' ./%outputfile%",
|
||||||
textopdfviewerrefresh = "reload",
|
textopdfviewerrefresh = "reload",
|
||||||
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
|
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ vipercmd="carbon" #"silicon"
|
|||||||
cd "$dir" || exit
|
cd "$dir" || exit
|
||||||
|
|
||||||
textype() { \
|
textype() { \
|
||||||
command="pdflatex"
|
command="pdflatex --shell-escape"
|
||||||
( sed 5q "$file" | grep -i -q 'xelatex' ) && command="xelatex"
|
( sed 5q "$file" | grep -i -q 'xelatex' ) && command="xelatex"
|
||||||
$command --output-directory="$dir" "$base" &&
|
$command --output-directory="$dir" "$base" &&
|
||||||
grep -i addbibresource "$file" >/dev/null &&
|
grep -i addbibresource "$file" >/dev/null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user