It's probably best to have the fraction as `<span data-if="A &lt; 0">-</span> \dfrac{<var>abs(A)</var>}`, just so it doesn't suddenly change here, although it's not a major point.