def build_vt_command(opt_dict):
    if '_args' in opt_dict:
        args = opt_dict['_args']
    else:
        args = ''
    opt_str = ''
    for k, v in opt_dict.iteritems():
        if k == '_args':
            continue
        if v is None:
            opt_str += '%s,\n' % k
        else:
            opt_str += '%s=%s,\n' % (k,v)
    if opt_str:
        full_str = (opt_str, args) % "\\vistrail[%s]{%s}"
    else:
        full_str = "\\vistrail{%s}" % args
    #print '^^ LATEX ^^', opt_dict, full_str
    return full_str
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/publishing/parse_latex.py/build_vt_command/swapped operands of `%`