Hi all,
I've encountered a bug/problem with the way TexAct handles indices defined via the PrintAs option of a tensor (i.e. not space-time indices!). Here is a minimal example:
DefTensor[Phi[], M4, PrintAs -> ToString[Subscript["\[Phi]", "(K)"], StandardForm]]
% // TexPrint,
where M4 is some manifold previously defined and (K) is a type of label index, which I would rather not always have to write via LI[(K)], but have defined together with the symbol. The code above produces a host of RecurssionLimit, StringJoin and StringExpression errors and produces no output in the end.The problem seems to be with the interplay between the Tex command and StandardForm strings. For example:
DefTensor[AV[b], M4, PrintAs -> "A"]
AV[c]
ToString[%, StandardForm]
% // TexPrint
produces an analogous host of errors (b and c are previously defined indices for this manifold). Does anyone have a neat fix for this? What I'm looking for is (ideally) a modification to a few lines in the TexAct source code that fixes this. I can hack things by re-casting everything with the use of label indices, as mentioned above, but I'd rather not if at all possible.
Many thanks and best wishes,
Johannes