+export latex buffer with template from file
latex export template func tweaks