def latex(input):
    """Create the latex output version of the input."""
    if isinstance(input, float):
        input = '%.4f' % input
        return '{' + str(input) + '}'
    elif isinstance(input, int):
        return '{' + str(input) + '}'
    elif isinstance(input, dict):
        return str(input).replace('{', '').replace('}', '').replace("'", ''
            ).replace('_', '')
    else:
        return ''
