def latex_to_unicode(string):
    """Returns a unicode representation from latex strings used by pyFAI.

    .. note:: The latex string could be removed from the pyFAI core.

    :param str string: A latex string to convert
    :rtype: str
    """
    string = string.replace('$', u'')
    string = string.replace('^{-2}', u'⁻²')
    string = string.replace('^{-1}', u'⁻¹')
    string = string.replace('^.', u'⋅')
    string = string.replace('2\\theta', u'2θ')
    string = string.replace('^{o}', u'°')
    string = string.replace('\\AA', u'Å')
    string = string.replace('log10', u'log₁₀')
    string = string.replace('^{*2}', u'd*²')
    return string
