mirror of
https://github.com/vale981/master-thesis-tex
synced 2025-03-04 09:11:38 -05:00
use a nicer compilation mode that isn't so verbose
This commit is contained in:
parent
c32d75fed6
commit
4be46388c8
2 changed files with 13 additions and 2 deletions
|
@ -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
11
mybatchmode.lua
Normal 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)
|
Loading…
Add table
Reference in a new issue