My current project layout looks like this:
Mainfile.tex with \begin{document} including
- preamble (
\documentclass, packages, newcommands, etc) and - chapters, split into separate subfiles.
I'm using the following .latexmkrc to compile with latexmk -pvc -pdf Mainfile.tex:
$pdflatex = "xelatex -src-specials -synctex=1 -interaction=nonstopmode %O %S";
$pdf_previewer = "evince %O %S";
$pdf_update_method = 0;
$sleep_time = 1;
push @cus_dep_list, "nlo nls 0 nlo2nls";
sub nlo2nls {
system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg");
}
The document compiles perfectly without errors, but latexmk never recompiles it no matter whether I change the main file or one of the included subfiles.
Any ideas?
Edit: John Collins' right. Not using "start" was the culprit here.