compile tex file