flatten tex tool for journal submissions