From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109612 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice L Newsgroups: gmane.comp.tex.context Subject: Re: startCSV Wiki, Natural Table Date: Tue, 24 Nov 2020 15:13:27 -0500 Message-ID: <383951B8-F084-40AB-87FB-FDB17C2E6551@gmail.com> References: <39494C5D-C1FA-46AC-9F98-735EFEF642CB@gmail.com> <7056b3e7-c53d-725b-732a-59223f7eefed@gmail.com> <78930F6E-9F9D-480C-B84A-988CFC926E91@gmail.com> <816c0a6b-6cc8-77eb-b767-58810505604c@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Content-Type: multipart/mixed; boundary="===============2572669943033977401==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5376"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 24 21:14:15 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khehb-0001Ix-9v for gctc-ntg-context-518@m.gmane-mx.org; Tue, 24 Nov 2020 21:14:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CA0311AA5B3; Tue, 24 Nov 2020 21:13:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ddTIvYgUhsgz; Tue, 24 Nov 2020 21:13:36 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CA7091AA5BE; Tue, 24 Nov 2020 21:13:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 72BA51AA5B2 for ; Tue, 24 Nov 2020 21:13:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L5lYwo5xpTdX for ; Tue, 24 Nov 2020 21:13:34 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.182; helo=mail-qt1-f182.google.com; envelope-from=fabrice.alpha@gmail.com; receiver= Original-Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 018AC1AA5A0 for ; Tue, 24 Nov 2020 21:13:33 +0100 (CET) Original-Received: by mail-qt1-f182.google.com with SMTP id g17so17090153qts.5 for ; Tue, 24 Nov 2020 12:13:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=i/36NBAezgabValc6cdncvtSKdt2jp+Jcmvvc+eNiPw=; b=rtFi7LzMTg4ViswbY/nZq6N6Y03goehEgrjZvt+uK0jOYlJY5uy32iaFcNQmpgVJcZ ZF/PWOmD/z+7LgBZyVj5WHd89IktYvfcIj8s9smPHKjgxn79YVQHiMztfIs0cVO8tZZZ mFZB1hth7x3dt5PgEMqklps59ZrO9MEceL+s1BkLNiUhuP1IAndvYoKD3WyW0P3OJdN8 RB3V7gbDOnGD09WwgA5s9A5SRYGNkBX41zIm9PufqpUy6qtz6ZYFsAC+kN/K4BkW/Oxx mn0iPDLrGFUaOBfWd5+JGXrgDwetV/cV4GwxEJV74tAK4LwHKH+mOJHRWWSIvp7YDAdQ y7mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=i/36NBAezgabValc6cdncvtSKdt2jp+Jcmvvc+eNiPw=; b=PnfIE+IDpbXs/gMjjOgjk6STDIG8wQHI379JUC0Dx3Vjw2RJh+XQS9p32o+vKmGT5n KNpuZLGLd5PQcGi+cX5DjvhJDI0sIcKO2oiYDSCSZq3ut+5a83lJg7U7svGOt6u9HO9c rY4aoZ9ziH8iJgprQlsqNUgQX/Yeb5+aKhozqMNOdzGP2BfcSQSrClaSCzXxdgHnKe73 JcTGTThAL13bk1PDfi05p6Zg8GOKCXoK0lOsdzgQ5yDKq1WNAOJTKu59CAvQwb17nUf5 /e7clgMuPbRpVn7CXlisxJKHLHFZSjuzU/B706XgcANJIFaDNT5QEncoKXubnngWcEQ4 /XfQ== X-Gm-Message-State: AOAM530sqM9a4EfHN7JPylIJgcs/OwM2/PtxfdGG+Dq/eitDw0RvrthY G2axx/AKBruwwK0DD2PSQh0= X-Google-Smtp-Source: ABdhPJwWwJAH+1z5awoYk/P7WgxcRnv/TLw73kC0/JRKek7e2brgtNU+Ha9LrALiunhQHxEVjhPXlw== X-Received: by 2002:ac8:5bc4:: with SMTP id b4mr6155917qtb.189.1606248810454; Tue, 24 Nov 2020 12:13:30 -0800 (PST) Original-Received: from icovid.lan ([38.74.28.141]) by smtp.gmail.com with ESMTPSA id q31sm93365qtd.23.2020.11.24.12.13.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2020 12:13:29 -0800 (PST) In-Reply-To: <816c0a6b-6cc8-77eb-b767-58810505604c@gmail.com> X-Mailer: Apple Mail (2.3654.20.0.2.21) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109612 Archived-At: --===============2572669943033977401== Content-Type: multipart/alternative; boundary="Apple-Mail=_39B71E05-5867-48DF-961C-28E778D6DEA6" --Apple-Mail=_39B71E05-5867-48DF-961C-28E778D6DEA6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 24 nov. 2020 =C3=A0 13:36, Wolfgang Schuster = a =C3=A9crit : >=20 > Fabrice L schrieb am 24.11.2020 um 19:08: >>> Le 24 nov. 2020 =C3=A0 12:52, Wolfgang Schuster = a =C3=A9crit : >>>=20 >>> 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=E2=80=A6= I admit I do not understand the code, but is there is missing \eTR = somewhere ? >>> Use the database module. >>>=20 >>> \usemodule[database] >>>=20 >>> \defineseparatedlist >>> [CSV] >>> [separator=3D{,}, >>> before=3D\bTABLE, >>> after=3D\eTABLE, >>> first=3D\bTR, >>> last=3D\eTR, >>> left=3D\bTD, >>> right=3D\eTD] >>>=20 >>> \starttext >>>=20 >>> \startCSV >>> 1,2,3 >>> 3,5,6 >>> 7,8,9 >>> \stopCSV >>>=20 >>> \stoptext >>>=20 >>> Wolfgang >> Wolfgang, thanks. I have seen the use if the database module on the = wiki, but was trying to do without it, the reason is that my documents = are often shared with colleagues, for which installation of modules is = most often very difficult. >=20 > There is nothing to install because the database module is part of = ConTeXt. I see=E2=80=A6 wonderfull ! Thanks a lot for the help.=20 >=20 > Wolfgang Fabrice.= --Apple-Mail=_39B71E05-5867-48DF-961C-28E778D6DEA6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Le 24 nov. 2020 =C3=A0 13:36, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> a =C3=A9crit = :

Fabrice L schrieb am 24.11.2020 um 19:08:
Le 24 nov. 2020 =C3=A0 = 12:52, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> a =C3=A9crit :

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=E2=80=A6  I admit I do not = understand the code, but is there is missing \eTR somewhere ?
Use the database module.

\usemodule[database]

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

\starttext

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

\stoptext

Wolfgang
Wolfgang, thanks. I have seen the use if the = database module on the wiki, but was trying to do without it, the reason = is that my documents are often shared with colleagues, for which = installation of modules is most often very difficult.

There is nothing to install because the database module is = part of ConTeXt.

I see=E2=80=A6 wonderfull ! Thanks a lot for the = help. 

Wolfgang

Fabrice.
= --Apple-Mail=_39B71E05-5867-48DF-961C-28E778D6DEA6-- --===============2572669943033977401== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2572669943033977401==--