Alessandro Zaccagnini zaccagni at
Mon Apr 29 18:32:11 CEST 2002

I have been using print_latex and I found that the following piece of

#include <iostream>
#include <ginac/ginac.h>

using namespace std;
using namespace GiNaC;

int main() {
  GiNaC::ex q;

  q = 2 * pow(6, numeric(1,3));



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

More information about the GiNaC-list mailing list