Allow to generate tex only, and write to output directory