29 Apr
2002
29 Apr
'02
6:32 p.m.
I have been using print_latex and I found that the following piece of code #include <iostream> #include <ginac/ginac.h> using namespace std; using namespace GiNaC; int main() { GiNaC::ex q; q = 2 * pow(6, numeric(1,3)); q.print(print_latex(std::cout)); } produces the output 2 6^{{(\frac{1}{3})}} which latex then typesets in the wrong way, since the space is lost. Putting a \cdot in place of the blank seems to fix the problem. Best wishes. Alessandro Zaccagnini Universita' di Parma