Difference between revisions of "M-database"

From Wiki
Jump to navigation Jump to search
m (link to NTG-MAPS article)
m (move CSV link from top to bottom list, fix link titles)
Line 1: Line 1:
< [[source:m-database.tex|m-database source]] | [http://dl.contextgarden.net/myway/csv.pdf MyWay] | [[Tables Overview]] >
+
< [[source:m-database.tex|m-database source]] | [[Tables Overview]] >
  
 
{{todo|more examples and explanation}}
 
{{todo|more examples and explanation}}
Line 62: Line 62:
 
==Links==
 
==Links==
  
* [http://www.physik.uni-freiburg.de/~doerr/exceltex/index.en.html exceltex] - LaTeX package to fetch data from Excel documents ([http://www.rubygarden.org/ruby?ScriptingExcel])
+
* [http://www.physik.uni-freiburg.de/~doerr/exceltex/index.en.html exceltex] - LaTeX package to fetch data from Excel documents ([http://www.rubygarden.org/ruby?ScriptingExcel Scripting Excel article])
 
* [http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=tab4tex tab4tex] - Preprocessor for LaTeX tabular environments
 
* [http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=tab4tex tab4tex] - Preprocessor for LaTeX tabular environments
* [http://www.ntg.nl/maps/42/12.pdf] – Using ConTeXt with databases (article in NTG-MAPS)
+
* [http://dl.contextgarden.net/myway/csv.pdf MyWay] about CSV
 +
* [http://www.ntg.nl/maps/42/12.pdf Using ConTeXt with databases] (article in NTG-MAPS)
  
 
[[Category:Tables]]
 
[[Category:Tables]]

Revision as of 02:41, 21 February 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