print_latex

Alessandro Zaccagnini zaccagni at prmat.math.unipr.it
Mon Apr 29 18:32:11 CEST 2002


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



More information about the GiNaC-list mailing list