Matrix version of mat2latex