# [IPython-User] Notebook, mathjax, string substitution

Matthias BUSSONNIER bussonniermatthias@gmail....
Wed Oct 2 10:58:53 CDT 2013

Le 2 oct. 2013 à 17:47, Derek O'Connell a écrit :

> I'm probably missing something obvious but since mathjax strings use
> {}'s in their format how then do I substitute in my own values from
> variables? I would normally use format() but maybe templates is a better
> option in this case?
Not sure I understand the question, but still :

Triple bracket ?

>>> print r'\foo_{{{ind}}}'.format(ind='xyx')
\foo_{xyx}

?
--
M