Add support for inline latex like $x_i$