Deletion of not needed latex parts