update texfiles and template