update latex write