On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxtable({"align=middle, width=1.25cm"}) > context.startxrow() > context.startxcell({"width=0.5cm"}) context("") context.stopxcell() > letter = {'A','B','C','D','E','F','G','H','I','J'} > for letter = 1,10 do > context.startxcell() context(print(letter)) context.stopxcell() > end
for _,letter in ipairs(letters) do context.startxcell() context(letter) context.stopxcell() end > context.stopxrow() > context.startxrow({"background=color","backgroundcolor=gray"}) > > context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"}) > context("1") context.stopxcell() > context.startxcell({"width=2cm"}) context("Année") context.stopxcell() > for y = 1998,2006 do > context.startxcell() context(y) context.stopxcell() > end > context.stopxrow() > context.startxrow() > context.startxcell({"width=0.5cm"}) context("2") context.stopxcell() > > context.startxcell({"width=2cm","background=color","backgroundcolor=gray"}) > context("Prix (kg)") context.stopxcell() > local p = 1 > for y = 1,9 do > context.startxcell() context("%0.3f",p) context.stopxcell() > p = p*1.031 > end > context.stopxrow() > context.stopxtable() > \stopluacode > \stopmidaligned > \stoplinecorrection > \stoptext > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________