def tex_tableau(cor, div0, div1, u, nblist, chf_unite):
    """tableau de conversion pour les unités simples : L, g ou m"""
    if len(u) == 6:
        cor.append('\\begin{tabular}{c|c|c|c|c|c}')
        cor.append('h%s & da%s & %s & d%s & c%s & m%s \\\\ \\hline' % u)
        delta = 1
        div0 = div0 - 1
        div1 = div1 - 1
    else:
        cor.append('\\begin{tabular}{c|c|c|c|c|c|c}')
        cor.append('k%s & h%s & da%s & %s & d%s & c%s & m%s \\\\ \\hline' % u)
        delta = 0
    for dummy in range(-div0 + chf_unite):
        tmp = nblist.pop(0)
        nblist[0] = tmp + nblist[0]
    for dummy in range(div0 - chf_unite):
        nblist.insert(0, '0')
    for dummy in range(-len(u) + len(nblist)):
        tmp = nblist.pop(7)
        nblist[6] = nblist[6] + tmp
    for dummy in range(len(u) - len(nblist)):
        nblist.append('0')
    nblist[div0] = '%s\\Rnode{virg0}{\\ }' % nblist[div0]
    nblist[div1] = '{%s\\Rnode{virg1}{\\textcolor{red}{ \\LARGE ,}}}' % nblist[
        div1]
    cor.append(('%s ' + '& %s' * (6 - delta)) % tuple(nblist))
