[NTG-context] processdatabasefile styling of table cells

juh+ntg-context at mailbox.org juh+ntg-context at mailbox.org
Wed Apr 6 13:18:56 CEST 2022


Hi all,

I include tables via csv files like this

\processdatabasefile[test][test.csv]

I was able to style the tables with this:

\setupTABLE [ split=yes, header=repeat, option=stretch,
loffset=.5ex,roffset=.5ex]

\setupTABLE [row] [odd]
[background=color,backgroundcolor=hs-hellblau,]

\setupTABLE [start] [spaceinbetween=25pt]

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

Is it possible to align decimal numbers in cells to the right?


The data differs a lot. Sometimes only the last column contains decimal 
numbers, sometimes the last two columns.

juh


More information about the ntg-context mailing list