Rework affiliations/emails and support inline-formulas in captions