ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: startCSV Wiki, Natural Table
Date: Tue, 24 Nov 2020 18:52:20 +0100	[thread overview]
Message-ID: <7056b3e7-c53d-725b-732a-59223f7eefed@gmail.com> (raw)
In-Reply-To: <39494C5D-C1FA-46AC-9F98-735EFEF642CB@gmail.com>

Fabrice L schrieb am 24.11.2020 um 18:44:
> Hi,
> 
> I was using in the past (MKII) a snippet of code to produce (natural) tables from CSV. I was trying to compile my code with MKIV, but this does not work anymore. As a matter of fact, it doe snot work at all, nor MKII, nor MKIV (probably my error !).
> 
> So I came back to the wiki, where my code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column in the resulting table…  I admit I do not understand the code, but is there is missing \eTR somewhere ?

Use the database module.

\usemodule[database]

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

\starttext

\startCSV
1,2,3
3,5,6
7,8,9
\stopCSV

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-11-24 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24 17:44 Fabrice L
2020-11-24 17:52 ` Wolfgang Schuster [this message]
2020-11-24 18:08   ` Fabrice L
2020-11-24 18:36     ` Wolfgang Schuster
2020-11-24 20:13       ` Fabrice L

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=7056b3e7-c53d-725b-732a-59223f7eefed@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).