Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

As well as the usual spherical polar coordinates r,\theta,\phi, I also want to use their velocites as coordinates, which I'm currently representing as vr, vtheta, vphi. I'd prefer to display the latter as (latex) \dot r, \dot\theta, \dot\phi.

I vaguely recall cadabra1 had a way of doing this. Can I do it somehow in cadabra2?

in General questions by (460 points)

1 Answer

+1 vote

Yes, use LaTeXForm, as in

vr::LaTeXForm("\dot{r}").
vtheta::LaTeXForm("\dot{\theta}").

ex:= vr + vtheta;

gives $\dot{r}+\dot{\theta}$.

by (83.1k points)

OK, thanks. That works for me. :-)

...