fixes disp-formula in fig/caption or table