Use latexmk to make sure latex is run enough times

This ensures that latex is run enough times so that the toc and all the
page references are produced properly.