Ticket #1838: latex-lists-and-tables-with-a-space-after-the-comma.diff

File latex-lists-and-tables-with-a-space-after-the-comma.diff, 818 bytes (added by schilly, 15 years ago)
  • sage/misc/latex.py

    diff -r f45bbd14ad23 sage/misc/latex.py
    a b def list_function(x): 
    5858            K[0] = '[' + K[0]
    5959            K[-1] = K[-1] + ']'
    6060            for w in K:
    61                 s += w + ',\\\\\n'
     61                s += w + ',\,\\\\\n'
    6262            s += '\\end{array}'
    6363            return s
    6464        else:
    65             sep = ', \n\\\\'
    66     else:
    67         sep = ', \n '
     65            sep = ',\, \n\\\\'
     66    else:
     67        sep = ',\, \n '
    6868    return "\\left[" + sep.join(K) + "\\right]"
    6969
    7070def tuple_function(x):
    71     return "\\left(" + ", \n ".join([latex(v) for v in x]) + "\\right)"
     71    return "\\left(" + ",\, \n ".join([latex(v) for v in x]) + "\\right)"
    7272
    7373def bool_function(x):
    7474    if x: