def processFilename(filename):
    """ Sanitizes a filename for LaTeX. DON'T feed it a full path.

    Parameters
    ----------
    filename : string
        The name of the file to be sanitized.

    Returns
    -------
    sanitized : string
        Mutated filename without characters that might cause errors in
        LaTeX.

    Example
    -------
    >>> processFilename('FigureBenzo/Inzo_1')
    'FigureBenzoInzo1'

    """

    badchars = [" ", ",", "+", "$", "_", "{", "}", "/", "&"]
    fn = filename
    for bc in badchars:
        fn = fn.replace(bc, "")
    return fn