Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Bold in table

list_collab = ["A", "B", "C", "D", "E"]
collab = set(list_collab)
show(list_collab)
subcollab = Subsets(collab,3,submultiset=True)
show(list(subcollab))
affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)]
#show(list_collab)
list_collab1 = ['']+list_collab[0:]
list_collab2 = [r'<b style="color:black">'+x+r'</b>' for x in list_collab2]
show(table_aff)

I have no complaints with this code. But the column header is not in bold. A suggegestion .

Bold in table

list_collab = ["A", "B", "C", "D", "E"] ["A_0", "I_0", "E_0", "A_1", "I_1", "E_1"] collab = set(list_collab) show(list_collab) subcollab = Subsets(collab,3,submultiset=True) show(list(subcollab)) affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)] #show(list_collab) list_collab1 = ['']+list_collab[0:] list_collab2 = [r'<b style="color:black">'+x+r'</b>' [r'$'+x+r'$' for x in list_collab2] show(table_aff)

list_collab1] table_aff =table(affinites, header_row=list_collab, header_column=list_collab2) show(table_aff)*

No strong problem with the table if I can have no complaints with this code. But the column indexed values in header is not in bold. A suggegestion .rows.

Bold in table

list_collab = ["A_0", "I_0", "E_0", "A_1", "I_1", "E_1"] collab = set(list_collab) show(list_collab) subcollab = Subsets(collab,3,submultiset=True) show(list(subcollab)) affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)] #show(list_collab) list_collab1 = ['']+list_collab[0:] list_collab2 = [r'$'+x+r'$' for x in list_collab1] table_aff =table(affinites, header_row=list_collab, header_column=list_collab2) show(table_aff)*

No strong problem with the table if I can have indexed values in header rows.

Bold in table

For the following code

list_collab = ["A_0", "I_0", "E_0", "A_1", "I_1", "E_1"]
 collab = set(list_collab)
 show(list_collab)
 subcollab = Subsets(collab,3,submultiset=True)
 show(list(subcollab))
 affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)]
 #show(list_collab)
 list_collab1 = ['']+list_collab[0:]
 list_collab2 = [r'$'+x+r'$' [r'<b style="color:black">$'+x+r'$</b>' for x in list_collab1]
 table_aff =table(affinites, header_row=list_collab, header_column=list_collab2)
    show(table_aff)*

show(table_aff)*

No strong problem with the table if I can have indexed values in header rows.

I tried to edit this question to put it in a nice format but sorry it's impossible.

Bold in table

For the following code

list_collab = ["A_0", "I_0", "E_0", "A_1", "I_1", "E_1"]
collab = set(list_collab)
show(list_collab)
subcollab = Subsets(collab,3,submultiset=True)
show(list(subcollab))
affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)]
#show(list_collab)
list_collab1 = ['']+list_collab[0:]
list_collab2 = [r'<b style="color:black">$'+x+r'$</b>' for x in list_collab1]
table_aff =table(affinites, header_row=list_collab, header_column=list_collab2)
show(table_aff)*

No strong problem with the table if I can have indexed values in header rows.

I tried to edit this question to put it in a nice format but sorry it's impossible.

Bold in table

For the following code

list_collab = ["A_0", "I_0", "E_0", "A_1", "I_1", "E_1"]
collab = set(list_collab)
show(list_collab)
subcollab = Subsets(collab,3,submultiset=True)
show(list(subcollab))
affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)]
#show(list_collab)
list_collab1 = ['']+list_collab[0:]
list_collab2 = [r'<b style="color:black">$'+x+r'$</b>' for x in list_collab1]
table_aff =table(affinites, header_row=list_collab, header_column=list_collab2)
show(table_aff)*

No strong problem with the table if I can have indexed values in header rows.

Bold in table

For the following code

list_collab = ["A_0", "I_0", "E_0", "A_1", "I_1", "E_1"]
collab = set(list_collab)
show(list_collab)
subcollab = Subsets(collab,3,submultiset=True)
show(list(subcollab))
affinites= [[ZZ.random_element(1,5) for i in range(0,5)] for j in range(0,4)]
#show(list_collab)
list_collab1 = ['']+list_collab[0:]
list_collab2 = [r'<b style="color:black">$'+x+r'$</b>' for x in list_collab1]
table_aff =table(affinites, header_row=list_collab, header_column=list_collab2)
show(table_aff)*
show(table_aff)

No strong problem with the table if I can have indexed values in header rows.