ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* splitting tables from csv with first row as header
@ 2021-06-23 14:07 Jan U. Hasecke
  0 siblings, 0 replies; only message in thread
From: Jan U. Hasecke @ 2021-06-23 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

Hi all,

I have this sample:

\usemodule[database]

\setuppapersize [A6]

\setupTABLE
   [split=yes,
   header=repeat]

\defineseparatedlist
    [test]
    [separator={;}, % tab
     before=\bTABLE,after=\eTABLE,
     first=\bTR,last=\eTR,
     left=\bTD,right=\eTD]

\starttext
\processdatabasefile[test][test.csv]

\stoptext


A test.csv is attached.

The table splits but no header is repeated.

I guess I have to define that the first row in the file is the header.

How to achieve this?

TIA
juh

[-- Attachment #2: test.csv --]
[-- Type: text/csv, Size: 654 bytes --]

A;B;C;D;E;F
1;2;3;4;5;6
2;3;4;5;6;7
3;4;5;6;7;8
4;5;6;7;8;9
5;6;7;8;9;10
6;7;8;9;10;11
7;8;9;10;11;12
8;9;10;11;12;13
9;10;11;12;13;14
10;11;12;13;14;15
11;12;13;14;15;16
12;13;14;15;16;17
13;14;15;16;17;18
14;15;16;17;18;19
15;16;17;18;19;20
16;17;18;19;20;21
17;18;19;20;21;22
18;19;20;21;22;23
19;20;21;22;23;24
20;21;22;23;24;25
21;22;23;24;25;26
4;5;6;7;8;9
5;6;7;8;9;10
6;7;8;9;10;11
7;8;9;10;11;12
8;9;10;11;12;13
9;10;11;12;13;14
10;11;12;13;14;15
11;12;13;14;15;16
12;13;14;15;16;17
13;14;15;16;17;18
14;15;16;17;18;19
15;16;17;18;19;20
16;17;18;19;20;21
17;18;19;20;21;22
18;19;20;21;22;23
19;20;21;22;23;24
20;21;22;23;24;25
21;22;23;24;25;26

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-23 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 14:07 splitting tables from csv with first row as header Jan U. Hasecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).