Adam Lindsay wrote:
I'm not sure I understand the "CVS or something else" part from the
Probably a typo for CSV, comma-seperated values. It should be rather easy to typeset csv data in table format. The following tentative code ignores the fact that csv data may optionally be enclosed in "" quotes that have to be removed (to be done in TBLentry) and that these quoted strings may contain commas themselves (which means writing a custom version of \processcommalist instead). Apart from that, it seems to work. (I just felt an urge of creativism, so I took up the challenge.) \def\TBLentry#1{\bTD#1\eTD} \def\TBLline#1{\bTR\processcommalist[#1]\TBLentry} % Iterate over all the lines of text captured with \obeylines active % command to call is first argument, is not called for empty lines \bgroup \obeylines \gdef\ProcessLines#1#2{\doProcessLines{#1}#2^^M\doProcessLines}% \gdef\doProcessLines#1#2^^M#3\doProcessLines{% \doifnotempty{#2}{#1{#2}}% \doifnotempty{#3}{\doProcessLines{#1}#3\doProcessLines}% }% \egroup \def\startCSV{\bgroup\obeylines\dostartCSV} \def\dostartCSV#1\stopCSV{% \bTABLE \ProcessLines\TBLline{#1}% \eTABLE \egroup } \starttext CSV test: \startCSV a,b,c,d,e 1,2,3,4,5 6,7,8,9,10 some text,11,12,,14 \stopCSV \stoptext Hans, what goodies of ConTeXt did I miss? Is the above sufficiently ConTeXtish to be wikiable? regards, Christopher