* Don't print '*' in LaTeX mode.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 16 Apr 2001 20:24:27 +0000 (20:24 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 16 Apr 2001 20:24:27 +0000 (20:24 +0000)
ginac/pseries.cpp

index 5f15a2e3447129321f0238437df1cccc608c8877..c35e2e47b3e6187d6f113c3a4d0faa6c448978a1 100644 (file)
@@ -168,7 +168,10 @@ void pseries::print(const print_context & c, unsigned level) const
                                }
                                // print 'coeff', something like (x-1)^42
                                if (!i->coeff.is_zero()) {
-                                       c.s << '*';
+                                       if (is_of_type(c, print_latex))
+                                               c.s << ' ';
+                                       else
+                                               c.s << '*';
                                        if (!point.is_zero()) {
                                                c.s << par_open;
                                                (var-point).print(c);