Closed
Description
In the LaTeX representation of a multivariate polynomial is an unnecessary blank when variable is concatenated with a -
, see
sage: R.<X,Y> = ZZ[]
sage: latex(X-Y)
X - Y
sage: latex(X^2-X)
X^{2} - X
It does not happen with +
sage: latex(X+Y)
X + Y
or with a constant
sage: latex(X-1)
X - 1
In the univarate case the problem does not appear.
Note that this "wrong" output is no problem (i.e. a correct input for LaTeX)
Component: user interface
Keywords: latex, blank, multivariate polynomial
Work Issues: add additional regression test, formatting nitpicks
Author: André Apitzsch, Durgesh Agrawal
Branch: 86d9920
Reviewer: Debbie Matthews, Erik Bray, Emmanuel Charpentier
Issue created by migration from https://trac.sagemath.org/ticket/12908