On 12/31/2015 2:57 PM, Romain Diss wrote:
Hi all,
I am trying to use xtables in a CLD document but when I add a row, it doesn't compile anymore. Is there something wrong? If xtables is not usable with CLD, what is the best set of table commands to use with CLD?
% Minimum not working example : context.starttext() context.startxtable() context.startxrow() context.startxcell() context("Test") context.stopxcell() context.stopxrow() context.stopxtable() context.stoptext() % end of the example.
that has to do with the fact that such a table gets buffered (it needs several passes) i added an experimental trick to the next beta that makes this run ok \starttext \startluacode context.startxtable() for i=1,30 do context.startxrow() for i=1,6 do context.startxcell() context.formatted.bold("test: %s",i) context.stopxcell() context.startxcell() context.formatted.italic("test: %s",i) context.stopxcell() end context.stopxrow() end context.stopxtable() \stopluacode \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------