latexmk -pvc can compile tex files continuously and update the pdf viewer, but how can I stop it from invoking the pdf viewer automatically?
latexmk -pvc -view=none.
As a complement to Johns answer, here is some of the stuf I have in my
latexmk default configuration file:
$latex = "latex -synctex=1 -halt-on-error %O %S"; $pdflatex = "pdflatex -synctex=1 -halt-on-error %O %S"; $sleep_time = 1; $view = 'none'; $pdf_mode = 1;
-halt-on-error is very handy in pvc mode, it makes latex stop at the first error and them
latexmk is able to go back and wait for the next change to be saved
Addition: might be better to add options to
@extra_pdflatex_options eventhough it is not documented.