Difference between revisions of "M-database"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
\usemodule[database] | \usemodule[database] | ||
− | \defineseparatedlist | + | \defineseparatedlist [MyTable] |
− | + | [ | |
− | + | separator=tab, | |
− | + | before=\bTABLE, after=\eTABLE, | |
− | + | first=\bTR, last=\eTR, | |
− | + | left=\bTD, right=\eTD, | |
+ | commentchar=\letterpercent, | ||
+ | ] | ||
+ | % The % has to be set as the comment char, because by default its catcode is changed. | ||
% columns are separated with a tab (not with a space) | % columns are separated with a tab (not with a space) | ||
\startMyTable | \startMyTable | ||
+ | % Cows in Holland, 1 unit meaning 1000 cows. | ||
Cows Total Milking Pregnant | Cows Total Milking Pregnant | ||
01/1995 1709 1449 260 | 01/1995 1709 1449 260 |
Revision as of 22:40, 21 January 2014
< m-database source | MyWay | Tables Overview >
TODO: more examples and explanation (See: To-Do List) |
\usemodule[database] \defineseparatedlist [MyTable] [ separator=tab, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD, commentchar=\letterpercent, ] % The % has to be set as the comment char, because by default its catcode is changed. % columns are separated with a tab (not with a space) \startMyTable % Cows in Holland, 1 unit meaning 1000 cows. Cows Total Milking Pregnant 01/1995 1709 1449 260 01/1996 1713 1444 269 ... ... ... ... 11/2004 1457 1295 161 11/2005 1421 1263 158 \stopMyTable