add -t for text files
update style for template.txt with blocks, like tex file