Difference between revisions of "M-database"
Jump to navigation
Jump to search
m (move CSV link from top to bottom list, fix link titles) |
Flying sheep (talk | contribs) m |
||
Line 57: | Line 57: | ||
11/2005 1421 1263 158 | 11/2005 1421 1263 158 | ||
\stopMyTable | \stopMyTable | ||
+ | |||
+ | %load from a file | ||
+ | \processseparatedfile[TSV][cows2.tsv] | ||
</context> | </context> |
Revision as of 20:51, 26 March 2014
< m-database source | 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 % must be set as the comment char explicitly, 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
Links
- exceltex - LaTeX package to fetch data from Excel documents (Scripting Excel article)
- tab4tex - Preprocessor for LaTeX tabular environments
- MyWay about CSV
- Using ConTeXt with databases (article in NTG-MAPS)