use a nicer compilation mode that isn't so verbose

This commit is contained in:
Valentin Boettcher 2022-09-07 14:24:10 +02:00
parent c32d75fed6
commit 4be46388c8
2 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,5 @@
$pdf_mode = 4;
@default_files = ('index.tex');
$out_dir = 'output';
set_tex_cmds( '--shell-escape %O %S' );
$pdf_previewer = 'start zathura output/index.pdf'
set_tex_cmds( '-lua=mybatchmode.lua --shell-escape %O %S' );
$pdf_previewer = "zathura %O %S";

11
mybatchmode.lua Normal file
View file

@ -0,0 +1,11 @@
texconfig.interaction = 0 -- Activate batchmode
texconfig.halt_on_error = true -- Stop at first error
callback.register('show_error_message', function(...)
texio.write_nl('term and log', status.lasterrorstring)
texio.write('term', '.\n')
end)
callback.register('show_lua_error_hook', function(...)
texio.write_nl('term and log', status.lastluaerrorstring)
texio.write('term', '.\n')
end)