23 Dec
2010
23 Dec
'10
12:57 p.m.
Dear list, I cannot figure out what I am doing wrong here. If I remove \hbox, it works fine, but I would like to draw a table. \starttext \startluacode function draw_table(unicode_start,n_columns) for i=0,0xF do tex.print('\\dontleavehmode\\definedfont[Serif at 20pt]\\kern0pt') for j=0,n_columns do --tex.print('\\hbox{ \\char %d }', unicode_start+i*16+j) tex.print('\\hbox to 1.5em{\\hss %s \\hss}', unicode.utf8.char(unicode_start+i*16+j)) end tex.print('\\crlf') end end draw_table(0x00C0,4) \stopluacode \stoptext Any hints welcome. Thanks, Mojca