dokutexit -> texit and using latexmk instead of manual invocation