X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/e2266a6ca10276d2af3065f9e140d994459b92f3..22d69753489bdafa3401e54be79b58d9e94225a3:/pypol/polyhedra.py diff --git a/pypol/polyhedra.py b/pypol/polyhedra.py index aabe0fd..7202bec 100644 --- a/pypol/polyhedra.py +++ b/pypol/polyhedra.py @@ -201,16 +201,16 @@ class Polyhedron(Domain): def _repr_latex_(self): if self.isempty(): - return '$\\emptyset$' + return '$$\\emptyset$$' elif self.isuniverse(): - return '$\\Omega$' + return '$$\\Omega$$' else: strings = [] for equality in self.equalities: strings.append('{} = 0'.format(equality._repr_latex_().strip('$'))) for inequality in self.inequalities: strings.append('{} \\ge 0'.format(inequality._repr_latex_().strip('$'))) - return '${}$'.format(' \\wedge '.join(strings)) + return '$${}$$'.format(' \\wedge '.join(strings)) @classmethod def fromsympy(cls, expr):