Use displaystyle in _repr_latex_
[linpy.git] / pypol / polyhedra.py
index aabe0fd..7202bec 100644 (file)
@@ -201,16 +201,16 @@ class Polyhedron(Domain):
 
     def _repr_latex_(self):
         if self.isempty():
 
     def _repr_latex_(self):
         if self.isempty():
-            return '$\\emptyset$'
+            return '$$\\emptyset$$'
         elif self.isuniverse():
         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('$')))
         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):
 
     @classmethod
     def fromsympy(cls, expr):