latex header transformation function included