def _repr_latex_(self, name=None, dist=None):
    if (dist is None):
        dist = self
    mu = dist.mu
    w = dist.w
    sd = dist.sd
    name = ('\\text{%s}' % name)
    return '${} \\sim \\text{{NormalMixture}}(\\mathit{{w}}={},~\\mathit{{mu}}={},~\\mathit{{sigma}}={})$'.format(name, get_variable_name(w), get_variable_name(mu), get_variable_name(sd))
def _repr_latex_(self, name=None, dist=None):
    if (dist is None):
        dist = self
    mu = dist.mu
    w = dist.w
    sd = dist.sd
    name = ('\\text{%s}' % name)
    return '${} \\sim \\text{{NormalMixture}}(\\mathit{{w}}={},~\\mathit{{mu}}={},~\\mathit{{sigma}}={})$'.format(name, get_variable_name(w), get_variable_name(mu), get_variable_name(sd))