Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 3 years ago

CyrilleP gravatar image

Iterate on a LatexExpr

This is certainly a question I have already asked, but I don't find any source.

I have a list of indexed variables up to 2 digits (for example x13) and I want to loop on a `LatexExp()' of the sort :

show(LatexExpr(r"\text{blabla } p_i = ", some stuff)

The result should be

blabla p1=10

blabla p20=10

Hope my question is not too unclear