Ask Your Question

Revision history [back]

Iteration inside a LatexExpr

For presentation reason I have a show like the following one :

show(LatexExpr(r"\text{The variable } x[i] \text{ takes the value :}"), x[i])

How could I have an iteration on on I to display in the text say $x_1$, ...,$x_{10}$ in place of the x[i].