Create tex file