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):