1 | initial version |
You can gain more control on spacing and fonts if you also use the html
function and the format
method, since then you can employ the resources of the HTML language. Try this:
reset()
var('x t')
Psi = function('Psi')(x, t)
V = function('V')(x)
format_string = '<strong>Instructions</strong><br>Plug ${}$, ${}$ and ${}$ into ${}$'
terms = [latex(i) for i in [Psi, diff(Psi, t), diff(Psi, x, x), V]]
show(html(format_string.format(*terms)))
The output is:
Instructions
Plug $\Psi\left(x, t\right)$, $\frac{\partial}{\partial t}\Psi\left(x, t\right)$ and $\frac{\partial^{2}}{(\partial x)^{2}}\Psi\left(x, t\right)$ into $V\left(x\right)$