Problem with TexAct

54 views
Skip to first unread message

Ananth Krishna

unread,
Dec 27, 2024, 4:43:38 AM12/27/24
to xAct Tensor Computer Algebra
Im facing issues with TexPrintAlignedEquations in TexAct
BianchiIDA = Collect[Bianchi[-1, -3, -1, -3, -4] // Simplify, NPCVComponents]
Equation1 = 0 == BianchiIDA
TexPrintAlignedEquations@Equation1
Im finally getting Hold[Throw["Tex Error"]] as my output. Can anyone help how to resolve this issue? I also attached my mathematica notebook.
psi_0.nb

Thomas Bäckdahl

unread,
Dec 27, 2024, 9:53:35 AM12/27/24
to xa...@googlegroups.com
Hi!

The first  problem comes from the output of
Tex@PDNP[{1, -NP}][PsiCD1[]]
which is
"\Psi _{1}{}{}_{\text{\c } 1}"
\c is not understood by the LaTeX compiler.
The quickest fix is probably
Tex["\[Cedilla]"] = ",";

Observe that TexAct will choose Prefix or Postfix notation from the $CovDFormat variable.

I suspect that you actually would like the Tex output to match the notation you have in this part of the notebook. You can do this with
$CovDFormat = "Prefix";
FormatTexBasis[PDNP[{1, -NP}], "D "];
FormatTexBasis[PDNP[{2, -NP}], "\\Delta "];
FormatTexBasis[PDNP[{3, -NP}], "\\delta "];
FormatTexBasis[PDNP[{4, -NP}], "\\bar\\delta "];

I can also recommend that you take a look at the SpinFrames package. With this you can probably make your notebook much shorter if you want.
I told a little bit about this package in the end of the 20 Years of xAct webinar
https://youtu.be/k_7s6_ZqV6M?list=PLdIcYTEZ4S8TSEk7YmJMvyECtF-KA1SQ2
https://amoeba.wolfram.com/index.php/s/ZxgjKXtJgALyCw4

Please let me know if you want more information or help.

Regards
Thomas
--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xact/33525963-ceaf-4903-93d8-d0f190a4e649n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages