fix tex output