TEMPLATE should only contain the .tex file