Correct inline text: $2+\frac{1}{2}$ other text. Should have been in display mode: 2+\frac{1}{2}

other text.