introduce template variables for more flexibility

* usepackages: more LaTeX packages to use (allow also template refactoring)
* headeritems: unspecified header lines (also rewrite-commands)