Yes, this is a bug -- a missing pair of brackets. Run the following
before using TexPrint:
Tex[ParamD[xAct`xTensor`Private`ps__][xAct`xTensor`Private`expr_]] :=
Apply[StringJoin,
xAct`xTensor`Private`TexParamD /@
Split@Sort[{xAct`xTensor`Private`ps}]] <>
xAct`xTensor`Private`TexOpen["["] <>
Tex[xAct`xTensor`Private`expr] <> xAct`xTensor`Private`TexClose["]"]
Regards
Thomas
Tex[ParamD[xAct`xTensor`Private`ps__][xAct`xTensor`Private`expr_]] :=
If[$ParamDFormat == "Postfix",
StringJoin[Tex[xAct`xTensor`Private`expr], "{}_{,",
Sequence @@ (Tex /@ {xAct`xTensor`Private`ps}), "}"],
Apply[StringJoin,
xAct`xTensor`Private`TexParamD /@
Split@Sort[{xAct`xTensor`Private`ps}]] <>
Tex[xAct`xTensor`Private`expr]]
Now, TexPrint should respect the $ParamDFormat setting.
Observe that in postfix notation the parameters are listed as they are,
but in prefix notation, they are sorted and grouped into powers.
For instance
ParamD[s, t, s][T[a, b]]
is printed as
\partial_s^{2} \partial_t T^{ab}
in prefix notation, but as
T^{ab}{}_{,sts}
in postfix notation.
I hope it works for you.
Regards
Thomas