drudge icon indicating copy to clipboard operation
drudge copied to clipboard

Double superscripts in Tensor.display() output

Open chenpeizhi opened this issue 6 years ago • 1 comments
trafficstars

When a factor of the amplitude of a term is raised to a power, the LaTeX output given by Tensor.display() contains double superscripts, which cannot be properly displayed in a Jupyter notebook. It seems that this could be fixed by modifying the ScalarLatexPrinter class in report.py.

chenpeizhi avatar Aug 13 '19 20:08 chenpeizhi

Yes, I can remember this issue. During a research on tensor structured CC theory, there was something like a regular expression to fix this in a really dirty way. I'll see if there is some easy fix.

tschijnmo avatar Sep 25 '19 06:09 tschijnmo