added makeLatextTable function