Updated latex plugin