:T writes file before generating latex