Added memory in latex