fix inline latex formulas