Make captions for math elements optional