Changes

Jump to navigation Jump to search
196 bytes removed ,  04:03, 1 June 2016
new example
{{todo|more examples and explanation}}
<texcode>\usemodule[database]== Inline ==
\defineseparatedlist [MyTable][ separator=tab, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD, commentchar=\letterpercent,]% The % must (This might be set as the comment char explicitly, because by default its catcode is changed. % columns are separated with a tab (not with a spaceoutdated)\startMyTable% Cows in Holland, 1 unit meaning 1000 cows.Cows Total Milking Pregnant01/1995 1709 1449 26001/1996 1713 1444 269... ... ... ...11/2004 1457 1295 16111/2005 1421 1263 158\stopMyTable</texcode>
<contextsource=yes mode=mkiv>
\setuplayout[scale=0.8]
\setupcolors[state=start]
%load from a file
%\processseparatedfile[TSV][cows2cows.tsv] </context> ==Data from File== (This is current as of 2016-05-31) <context source=yes mode=mkiv>\usemodule[database] \starttext \defineseparatedlist [test] [separator=space, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \processdatabasefile[test][csv.csv] \stoptext
</context>

Navigation menu