Correct syntax highlighting.
Add latexmk settings.
Unset temporary variables.