Fix latex build errors in example