From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101421 Path: news.gmane.org!.POSTED!not-for-mail From: kaddour kardio Newsgroups: gmane.comp.tex.context Subject: Re: TABLE setups Date: Mon, 30 Jul 2018 15:22:28 +0100 Message-ID: References: <07f734e4-8f8f-0475-b368-d12ef972f596@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8786750420728193372==" X-Trace: blaine.gmane.org 1532960499 13626 195.159.176.226 (30 Jul 2018 14:21:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 14:21:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 30 16:21:35 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fk93G-0003Rd-4B for gctc-ntg-context-518@m.gmane.org; Mon, 30 Jul 2018 16:21:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8C4FC48D14; Mon, 30 Jul 2018 16:23:15 +0200 (CEST) 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 2ASX6IP0qwfl; Mon, 30 Jul 2018 16:23:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C3A7A48D15; Mon, 30 Jul 2018 16:23:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5623548D15 for ; Mon, 30 Jul 2018 16:23:13 +0200 (CEST) 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 nDoWq8ljyof7 for ; Mon, 30 Jul 2018 16:23:12 +0200 (CEST) Original-Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3A0BB48D14 for ; Mon, 30 Jul 2018 16:23:02 +0200 (CEST) Original-Received: by mail-oi0-f44.google.com with SMTP id 13-v6so21539575ois.1 for ; Mon, 30 Jul 2018 07:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=VplD2vw2is5zMeqdvyQinqCo7aZCJVDHcKwSvaiQsuc=; b=e4ogjd39T2T6a2Z3FogVm8TdwoKZB8oFIOL7em8awBTjCXcRcVcdiL8pNpt0Ng9sEw vyeIwuLOTfWAhEf3io6Kx1qW0NwR+3IoD76PwtK7StASm8iiPDLNzxJRUB+InI1nl9xy 0QDm9uUoswL0nW9zkXHFZJgeQXTQVHIBKAv+Je+6FrKlE59/QzfduW1eXcyOKjLua1oy fBCnkLfC0oeKix++UlqGAjiQS3AwKc01VLIFLewK6UKJDYtE+sDaKCrFoKZBEhpgd6Uj Psjfyk9B34gqF78KwBFoyZpnTDdzQNaxMQoYZ6EcjaIWWgzvUnsWa/jVcCB46lcUOC2T N+fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=VplD2vw2is5zMeqdvyQinqCo7aZCJVDHcKwSvaiQsuc=; b=INVvcVUqFrvBETxuni9S6F7pc7vTUvUwJKcfYrX+r5SIBPGS4t8lpRlrFnGZq8CNHi Nnll5UkRd3fe1vdozNjvLVaXczZwpHV44bRn5x+rm7nN0Any5QPwJQl425OEak6knVQf LwkOVy2AQKj8FVIWxJkvzk9WvOV68phkm/Hivfz9T8/o7QvavJsQ+nj3BUBXZZbTPRaa 1Dbxux4/GzexZnftb3VztDWJSC0/iwnz9Bm7erZORcjxGb6n5yU9P0MDfJ7mFFIOiG1Q xF15KmJFAuf0Cw1je0F44tlc84q8NuKFS9PfVybzUOm5AqSOd16NzmofJP3NgU7+j5dD 2ktw== X-Gm-Message-State: AOUpUlFm8aC/QkJd7ShVcLWi3mYC1+3iD00iT1C5U2j0wXNKDO3KRYRi pNX6QGcyzJpZtC47UZz+cCkzxyVCDiyetEWa1CZVeJ5u X-Google-Smtp-Source: AAOMgpcp+I1/hZdQnPi+59U2nkfXCvYVujOCEH/1SDNAcSYjZBv68sNipTtONvYdRnkdOqijebbzXdkYXszSV+OUndE= X-Received: by 2002:aca:2808:: with SMTP id 8-v6mr19174431oix.7.1532960580122; Mon, 30 Jul 2018 07:23:00 -0700 (PDT) In-Reply-To: <07f734e4-8f8f-0475-b368-d12ef972f596@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:101421 Archived-At: --===============8786750420728193372== Content-Type: multipart/alternative; boundary="000000000000d53dce0572383292" --000000000000d53dce0572383292 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable here is an example of mine \startsetups table:width \setupTABLE[align=3D{hyphenated,normal}] \setupTABLE[column][1][width=3D0.3\textwidth] \setupTABLE[column][2][width=3D0.4\textwidth] \setupTABLE[column][3][width=3D0.3\textwidth] \stopsetups % table des patients \startsetups table:style \setupTABLE[frame=3Doff] \setupTABLE[r][1][style=3D\ss] \setupTABLE[r][2][style=3D\tfa\bf] \setupTABLE[r][3][style=3D\ss] \setupTABLE[c][3][align=3Dleft] \setupTABLE[c][2][align=3Dcenter] \setupTABLE[r][4][style=3D\bf] % how to override the \tt in the second colu= mn? \stopsetups %protocole du stress \startsetups table:protocole \setupTABLE[frame=3Doff,option=3Dstretch] \setupTABLE[row][odd][background=3Dcolor, backgroundcolor=3Dlightgree= n] \setupTABLE[row][1][style=3D{\ss\bf}, background=3Dcolor, backgroundcolor=3Dcyan, foregroundcolor=3Dwhit= e] \setupTABLE[column][1][style=3D{\ssx\bf}] \setupTABLE[column][5][align=3Dright] \setupTABLE[column][3][align=3Dcenter] \stopsetups \starttext ..... {\bTABLE[setups=3D{table:style, table:width}] \bTR \bTD nom \& pr=C3=A9noms \eTD \bTD date de naissance \eTD \bTD Adresse \eTD \eTR \bTR \bTD patient.name \eTD \bTD patient.birth \eTD \bTD patient.adresse \eTD \eTR \bTR \bTD motif d'admission \eTD \bTD m=C3=A9decin correspondant\eTD \bTD assurance \eTD \eTR \bTR \bTD sortie.motif \eTD \bTD patient.correspondant \eTD \bTD CNAS \eTD \eTR \eTABLE} \stoptext On Sat, Jul 28, 2018 at 2:36 AM Henri Menke wrote: > On 07/28/2018 07:38 AM, Henning Hraban Ramm wrote: > > Ahoi, > > > > I need a few different table styles and don=E2=80=99t think it makes se= nse to > setup them every single time. > > > > Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ? > > > > Or can I go via setups like \bTABLE[setups=3Dmystyle] ? > > \startsetups mystyle > \setupTABLE[frame=3Doff] > \setupTABLE[row][first][topframe=3Don,bottomframe=3Don,style=3Dbold] > \setupTABLE[row][last] [bottomframe=3Don] > \stopsetups > \starttext > > \bTABLE[setups=3Dmystyle] > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \eTABLE > > \stoptext > > > > > > > Greetlings, Hraban > > --- > > https://www.fiee.net > > http://wiki.contextgarden.net > > https://www.dreiviertelhaus.de > > GPG Key ID 1C9B22FD > > > > > _________________________________________________________________________= __________ > > 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 > > > _________________________________________________________________________= __________ > > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ --=20 Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA. --000000000000d53dce0572383292 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
here is an example of mine=C2=A0
<= font face=3D"trebuchet ms, sans-serif">\startsetups table:width
=C2= =A0 \setupTABLE[align=3D{hyphenated,normal}]
=C2=A0 \setupTABLE[colum= n][1][width=3D0.3\textwidth]
=C2=A0 \setupTABLE[column][2][width=3D0.= 4\textwidth]
=C2=A0 \setupTABLE[column][3][width=3D0.3\textwidth]
\stopsetups
% table des patients
\startsetups table:style
\setupTABLE[frame=3Doff]
\setupTABLE[r][1][style=3D\ss]
\se= tupTABLE[r][2][style=3D\tfa\bf]
\setupTABLE[r][3][style=3D\ss]=
= \setupTABLE[c][3][align=3Dleft]
\setupTABLE[c][2][align=3Dcenter]
\setupTABLE[r][4][style=3D\bf] % how to override the \tt in the second c= olumn?
\stopsetups
%protocole du stress
\startsetups tab= le:protocole
\setupTABLE[frame=3Doff,option=3Dstretch]
=C2=A0 = =C2=A0 =C2=A0 \setupTABLE[row][odd][background=3Dcolor, backgroundcolor=3Dl= ightgreen]
=C2=A0 =C2=A0 =C2=A0 \setupTABLE[row][1][style=3D{\ss\bf},= background=3Dcolor,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0backgroundcolor=3Dc= yan, foregroundcolor=3Dwhite]
=C2=A0 =C2=A0 =C2=A0 \setupTABLE[column= ][1][style=3D{\ssx\bf}]
=C2=A0 =C2=A0 =C2=A0 \setupTABLE[column][5][a= lign=3Dright]
=C2=A0 =C2=A0 =C2=A0 \setupTABLE[column][3][align=3Dcen= ter]

\stopsetups
\starttext
.....

=C2=A0{\bTABLE[setups=3D{table:style, table:width}]
=C2=A0 =C2=A0\bTR
=C2=A0 =C2=A0\bTD nom \& pr=C3=A9noms \eTD
=C2=A0 =C2=A0\bTD date de naissance \eTD
=C2=A0 =C2=A0\bTD Adresse \eTD
=C2=A0 =C2=A0\eTR
=C2=A0 =C2=A0\bTR<= /div>
=C2=A0 =C2=A0\bTD=C2=A0 patient.name=C2=A0 \eTD
=C2=A0 =C2=A0\bTD=C2=A0 patient.birth=C2=A0 \eTD
=C2=A0 =C2=A0\bTD=C2=A0 patient.adresse \eTD
=C2=A0 =C2=A0\eTR
=C2=A0 = =C2=A0\bTR
=C2=A0 =C2=A0\bTD motif d'= admission \eTD
=C2=A0 =C2=A0\bTD m=C3=A9d= ecin correspondant\eTD
=C2=A0 =C2=A0\bTD = assurance \eTD
=C2=A0 =C2=A0\eTR
\bTR
=C2=A0 =C2= =A0\bTD=C2=A0 sortie.motif=C2=A0
=C2=A0 = =C2=A0\eTD
=C2=A0 =C2=A0\bTD patient.corr= espondant=C2=A0 =C2=A0 \eTD
=C2=A0 =C2=A0= \bTD CNAS
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \eT= D
=C2=A0 =C2=A0\eTR
\eTABLE}=C2=A0

\stoptext


On Sat, Jul 28, 2018 at 2:36 AM Henri= Menke <henrimenke@gmail.com= > wrote:
On 07/28/2018 07:38 AM,= Henning Hraban Ramm wrote:
> Ahoi,
>
> I need a few different table styles and don=E2=80=99t think it makes s= ense to setup them every single time.
>
> Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ?=
>
> Or can I go via setups like \bTABLE[setups=3Dmystyle] ?

\startsetups mystyle
=C2=A0 \setupTABLE[frame=3Doff]
=C2=A0 \setupTABLE[row][first][topframe=3Don,bottomframe=3Don,style=3Dbold]=
=C2=A0 \setupTABLE[row][last] [bottomframe=3Don]
\stopsetups
\starttext

\bTABLE[setups=3Dmystyle]
=C2=A0 \bTR
=C2=A0 =C2=A0 \bTD Hello \eTD \bTD Hraban \eTD
=C2=A0 \eTR
=C2=A0 \bTR
=C2=A0 =C2=A0 \bTD Hello \eTD \bTD Hraban \eTD
=C2=A0 \eTR
=C2=A0 \bTR
=C2=A0 =C2=A0 \bTD Hello \eTD \bTD Hraban \eTD
=C2=A0 \eTR
=C2=A0 \bTR
=C2=A0 =C2=A0 \bTD Hello \eTD \bTD Hraban \eTD
=C2=A0 \eTR
\eTABLE

\stoptext

>
>
> Greetlings, Hraban
> ---
> = https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
> ______________________________________________________________________= _____________
> 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________
>

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


--
Dr YAHYAOUI Mohamed= Kaddour, cardiologue -- Clinique KARDIA.
--000000000000d53dce0572383292-- --===============8786750420728193372== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8786750420728193372==--