From: Bruce Horrocks via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Bruce Horrocks <ntg@scorecrow.com>
Subject: Re: processdatabasefile styling of table cells
Date: Wed, 6 Apr 2022 22:31:24 +0100 [thread overview]
Message-ID: <1191D46D-AF3C-4F79-B2C7-37508A8585FD@scorecrow.com> (raw)
In-Reply-To: <b9fde0d8-e7d6-6928-7eaa-2e1a67ed19d1@mailbox.org>
> On 6 Apr 2022, at 12:18, juh+ntg-context--- via ntg-context <ntg-context@ntg.nl> wrote:
>
>
> 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?
This previous announcement from Hans might help.
<https://www.mail-archive.com/ntg-context@ntg.nl/msg99681.html>
> The data differs a lot. Sometimes only the last column contains decimal numbers, sometimes the last two columns.
Not sure what will happen here - try it and see. Whenever my table layouts go wildly wrong, Context usually manages to display something rather than fail with an error code. :-)
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2022-04-06 21:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 11:18 juh+ntg-context--- via ntg-context
2022-04-06 21:31 ` Bruce Horrocks via ntg-context [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1191D46D-AF3C-4F79-B2C7-37508A8585FD@scorecrow.com \
--to=ntg-context@ntg.nl \
--cc=ntg@scorecrow.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).