8

I have several Mathematica expressions in which subscripts are expressed with square brackets. E.g. `x[12]`

is meant to represent *x*_{12}, etc. If I evaluate `TeXForm`

on such an expression, `x[12]`

, e.g., gets converted to `x(12)`

. Is there a way to get it to produce the `x_{12}`

form instead?

The problem is then telling apart

`x[2]`

which is meant to be $x_2$ and`f[x]`

or`f[0]`

which are $f(x)$ or $f(0)$. – Szabolcs – 2013-01-12T23:10:09.330