[MIN] Minor fixes in LatexRunner() and templates