Read template.tex only when needed
Split directive using colon or space
Use long name for visit directives