corrections to utils and materials latex dump function