def latexify(string_item):
    """Recursive function to turn a string, or sympy.latex to a
    latex equation.

    Args:
        string_item (str): string we want to make into an equation

    Returns:
        equation_item (str): a latex-able equation.
    """
    if isinstance(string_item, list):
        return "\n".join([latexify(item) for item in string_item])
    else:
        return "\\begin{equation}" + str(string_item) + "\\end{equation} \\\\"