def clean_latex(ltx):
    """
        Clean a latex string to facilitate
        the creation of a unicode string
    """
    latex_to_replace = [
        ("$", ""),
        (r"\left", ""),
        (r"\right", ""),
        (r"\log", "log"),
        (r"\sin", "sin"),
        (r"\cos", "cos"),
        (r"\tan", "tan"),
        (" ", ""),
    ]
    latex_to_replace.extend(
        [("partial^{" + i, "partial^{" + i + "}") for i in "1234567890"]
    )

    for to, rep in latex_to_replace:
        ltx = ltx.replace(to, rep)
    return ltx