![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 30-7-2010 10:29, Jaroslav Hajtmar wrote:
Hello all,
My big weakness in TeX practice is working with the expansion. Perhaps because he speaks so Lua. I would like to ask whether there is any possibility of printing table columns (throw Mojca database module) when the column data are contained in a separate macro.
Example:
\usemodule[database]
\defineseparatedlist [NaturalTable] [separator=comma, before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD]
\def\tabrow{A, B, C}
\starttext
\startseparatedlist[NaturalTable] a,b,c A,B,C \stopseparatedlist
\blank[big]
\startseparatedlist[NaturalTable] \tabrow \stopseparatedlist
\expanded{\startseparatedlist[NaturalTable] \tabrow} \stopseparatedlist might work
%But I would like get table with three separate columns
\stoptext
While I can parsing column data contained in macro \tabrow, anyway I cant transmit column data to \startseparatedlist[NaturalTable] .. \stopseparatedlist environment to make it work.
Thanx Jaroslav
___________________________________________________________________________________
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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------