That used to work back when \dot{...}
was reserved to always print as a centered dot, but this goes against the idea that you should be able to use it as e.g. a time derivative.
In order to make the example work, you therefore need to tell Cadabra that you want to print this in a different way. Add a LaTeXForm
property, as in the first line below,
\dot(A??,B??)::LaTeXForm("(", A??, "\cdot{}", B??, ")");
{\mu, \nu, \rho, \sigma}::Indices(vector);
ex:= A_{\mu} B_{\nu} C_{\nu} D_{\mu};
substitute(_, $A?_{\rho} B?_{\rho} -> \dot{A?}{B?}$, repeat=True);
and it works again. Thanks for spotting this, will update the docs.