%% Conditionally enter maths mode. Can't use \ensuremath here because we
%% aren't necessarily sure where the maths will actually end.
%% Conditionally enter maths mode. Can't use \ensuremath here because we
%% aren't necessarily sure where the maths will actually end.