From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, TONLINE_FAKE_DKIM autolearn=no autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 0CAC2211B6 for ; Fri, 15 Nov 2024 09:54:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B804D484C45 for ; Fri, 15 Nov 2024 09:53:58 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:list-unsubscribe:list-subscribe :list-post:list-owner:list-help:list-archive:archived-at:list-id :subject:subject:reply-to:precedence:in-reply-to:from:from :content-language:references:user-agent:mime-version:date:date :message-id:received:received:received:received:received :received:received; s=cgl; t=1731660838; x=1734252839; bh=8kLGIY f6UbfsVw5fbaNhOJpSoFVfUL58/OKhH6oiFsM=; b=GqtxkN60dg2Bv42bDWBbFh ER7jdC6tzFv8rHwnqaOXoo9aMr8r77i1EiVmMjbp+O3kC9ghp5WD/vvKjeaSYK52 en6sC6Hx8wHviDcY6r5cO/6Zv9325mdtWRHXuHy14O0XjxMp+omybLF+V2R26DfY dh2BSUYUW43L2cjfIOTKY= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rmCcvR9Eagk0 for ; Fri, 15 Nov 2024 09:53:58 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1EEC5484D2D for ; Fri, 15 Nov 2024 09:52:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2496F4845CE for ; Fri, 15 Nov 2024 09:52:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BfANtN2_1DUZ for ; Fri, 15 Nov 2024 09:52:36 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=194.25.134.21; helo=mailout10.t-online.de; envelope-from=thomasgmeyer@t-online.de; receiver= Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 8FD434845B7 for ; Fri, 15 Nov 2024 09:52:36 +0100 (CET) Received: from fwd70.aul.t-online.de (fwd70.aul.t-online.de [10.223.144.96]) by mailout10.t-online.de (Postfix) with SMTP id 4A791C0D; Fri, 15 Nov 2024 09:52:36 +0100 (CET) Received: from [192.168.178.60] ([91.48.93.27]) by fwd70.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1tBs4B-0EFW8e0; Fri, 15 Nov 2024 09:52:35 +0100 Message-ID: <3e3ecdc7-7d18-41a6-9943-d9918a6b1ba6@t-online.de> Date: Fri, 15 Nov 2024 09:52:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Wolfgang Schuster , mailing list for ConTeXt users References: <21d6d575-e2f0-c228-1fd1-db10ae39f614@gmail.com> <1aa402e0-7028-4e5b-84f1-e041e30a480d@t-online.de> <463aed1c-3422-4f02-90a4-d0b815780784@fiee.net> <3a988866-d930-2a6a-3340-7e36e6758399@gmail.com> Content-Language: de-DE From: Thomas Meyer Autocrypt: addr=thomasgmeyer@t-online.de; keydata= xsFNBGPqOQMBEADR9MbN06aQ90AeXfb5AsL9m/neBE0QAuCqMH8pwKWBaZiaj0VRS0vVnTEW M3FazzdzOAT5BJx3bnUHbS9k6rQ1zKxJ0ekDdLFUD+ARHfH8M4tEs/2WLfcW98/K5gEPwPdo mrkMlWan8wLQXTZDrStv7b1m2oYSaBra8R7ghd7z7rjOwy9YhufFAJ6LackE5YG/AyAKusAS MoPE6Lh6ZSCqO7zknDbAOEgZx9evVWV6u1vedI9vVQOxuJt6JZjBF7T9FoQbs6x9ro5LqPcI B21QY/XooQDTYZbZtNQbFEtQ8xnexLU2vzjxrdpE33Wfd/0J3ugTFiVGENNBEJhb0xdj/sho SxGSH6pAmjaJ9CZ2/qI/3btRuGJV/1hsG4IbgmxKKI+CWHfyeQopKo0YuykXlFz1V8cb3Mvi mOyDjwj2J78HIHsa9ntHoplJu0P2+l3RQJpTwzU337lgfoj/jofAcIWa9tvLBxpNS08FakjD H5dvRHHcy74dcC/o+J80F+bRhujXk9IS+Jx0xSiQSrnwxUZ6lplKV8j1y4vqaC/hHb6R6Nqn Sw/oNUEUnwdlX2/SZeVMgoSfDu7+uku2fkUI6Mhyctxbkc8Egktw+wZdPv7gP9p8ciU/4TLK TvYljgURZNF5u9N7l9NdzdtI05tSmSsVoTZ/H+K16g0nvUritwARAQABzSdUaG9tYXMgTWV5 ZXIgPHRob21hc2dtZXllckB0LW9ubGluZS5kZT7CwY4EEwEIADgWIQSAz9g3CRDmHXoe8puK KqP1fhKLhQUCY+o7XwIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCKKqP1fhKLhQnH D/9lEqUmGfAugqSHHGIFkzTGzpJxZdoGe1EddqsEov2ibzdYBbmVImP5+V9d2IzVafNPLNZd 3wAxq53xye9grS9SGI4cbY6uW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N NORMAL X-TOI-MSGID: bd88a292-0b51-4a09-9562-2369a7850a23 Message-ID-Hash: X7K6BSH3HEC6G5ZUZAYQMWXFJ6BVKQ42 X-Message-ID-Hash: X7K6BSH3HEC6G5ZUZAYQMWXFJ6BVKQ42 X-MailFrom: thomasgmeyer@t-online.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Problem with tabulate List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============3661019600607371899==" This is a multi-part message in MIME format. --===============3661019600607371899== Content-Type: multipart/alternative; boundary="------------bG4Cs6eXETGjtUhvO7OWUVPS" Content-Language: de-DE This is a multi-part message in MIME format. --------------bG4Cs6eXETGjtUhvO7OWUVPS Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Thank you Hraban and many thanks Wolfgang, for your detailed explanations! Greetings Thomas Am 14.11.24 um 20:13 schrieb Wolfgang Schuster: > Thomas Meyer schrieb am 14.11.2024 um 12:02: >> Hi Hraban, >> >> Wolfgangs example >> >> \start >> \setupTABLE[start][frame=3Doff,width=3D11mm,align=3Dmiddle,offset=3D0p= t] >> \setupTABLE[row][first][topframe=3Don] >> \setupTABLE[row][last][bottomframe=3Don] >> \startTABLE >> \NC[nc=3D2] Wurfst=C3=A4rke\\ R / H \NC\NR >> \NC 2 \NC 3 \NC\NR >> \stopTABLE >> \stop >> >> seems to be a mixture of >> \starttabulate >> \NC \NC \NC\NR ... >> >> and >> \setupTABLE >> \bTABLE >> \bTR \bTD ... >> >> For that what Wolfgang wrote I found nothing in the wiki. >> No explanation for \start nor width nor the mixture(?) above ... >> Perhaps Wolfgang can also comment on that. > > 1. \startTABLE > > The \startTABLE environment I used in my example is just a wrapper for=20 > \bTABLE which saves typing for short/small tables. > > In the following example both tables produce the same results because=20 > the first table is converted into the code used by the second table. > > %%%% begin example > \starttext > > \startTABLE > \NC table content \NC\NR > \stopTABLE > > \bTABLE > \bTR \bTD table content \eTD \eTR > \eTABLE > > \stoptext > %%%% end example > > > 2. Table settings > > When you use the \bTABLE environment each cell is a \framed block=20 > where you can set the width or height, framecolor etc. > > %%%% begin example > \starttext > > \bTABLE > \bTR \bTD[width=3D2cm,height=3D2cm,framecolor=3Dred,align=3D{middle,loh= i}]=20 > table content \eTD \eTR > \eTABLE > > \startframed[width=3D2cm,height=3D2cm,framecolor=3Dred,align=3D{middle,= lohi}]=20 > table content \stopframed > > \stoptext > %%%% end example > > > 3. \setupTABLE > > With the \setupTABLE command you can change the values which are used=20 > to format the cells of the table. > > With the first two optional arguments you can control whether settings=20 > are applied only to certain table rows or columns but also for certain=20 > cells (e.g. row 3 column 2). > > %%%% begin example > \starttext > > \setupTABLE[framecolor=3Dred] > > \bTABLE > \bTR \bTD first table \eTD \eTR > \eTABLE > > \stoptext > %%%% end example > > > 4. \start > > When you use the \setupTABLE command like shown below the settings are=20 > applied to all the following tables. > > %%%% begin example > \starttext > > \setupTABLE[framecolor=3Dred] > > \bTABLE > \bTR \bTD first table \eTD \eTR > \eTABLE > > \bTABLE > \bTR \bTD second table \eTD \eTR > \eTABLE > > \stoptext > %%%% end example > > To ensure the new color for the frame is only applied to the first=20 > table add \start before you change the value with \setupTABLE and=20 > \stop after the table. > > When you do this you create a local group where the changed frame=20 > color is kept local to the group. > > %%%% begin example > \starttext > > \start > \setupTABLE[framecolor=3Dred] > \bTABLE > \bTR \bTD first table \eTD \eTR > \eTABLE > \stop > > \bTABLE > \bTR \bTD second table \eTD \eTR > \eTABLE > > \stoptext > %%%% end example > > When you have multiple tables with the same style you don't want to=20 > change the table values each time by hand. > > The method of choice here is to collect all changes to the table=20 > layout in a \startsetups block (the argument is just a name for the=20 > block) and load it afterwards at the start of the table with the=20 > setups key. > > %%%% begin example > \starttext > > \startsetups [redtableframe] > \setupTABLE[framecolor=3Dred] > \stopsetups > > \bTABLE[setups=3Dredtableframe] > \bTR \bTD first table \eTD \eTR > \eTABLE > > \bTABLE > \bTR \bTD second table \eTD \eTR > \eTABLE > > \stoptext > %%%% end example > > Wolfgang > --------------bG4Cs6eXETGjtUhvO7OWUVPS Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you Hraban and
many thanks Wolfgang,
for your detailed explanations!

Greetings
Thomas


Am 14.11.24 um 20:13 schrieb Wolfgang Schuster:
Thomas Meyer schrieb am 14.11.2024 um 12:02:
Hi Hraban,

Wolfgangs example

\start
\setupTABLE[start][frame=3Doff,width=3D11mm,align=3Dmiddle,offset= =3D0pt]
\setupTABLE[row][first][topframe=3Don]
\setupTABLE[row][last][bottomframe=3Don]
\startTABLE
\NC[nc=3D2] Wurfst=C3=A4rke\\ R / H \NC\NR
\NC 2 \NC 3 \NC\NR
\stopTABLE
\stop

seems to be a mixture of
\starttabulate
\NC \NC \NC\NR ...

and
\setupTABLE
\bTABLE
\bTR \bTD ...

For that what Wolfgang wrote I found nothing in the wiki.
No explanation for \start nor width nor the mixture(?) above ...<= br> Perhaps Wolfgang can also comment on that.

1. \startTABLE

The \startTABLE environment I used in my example is just a wrapper for \bTABLE which saves typing for short/small tables.

In the following example both tables produce the same results because the first table is converted into the code used by the second table.

%%%% begin example
\starttext

\startTABLE
\NC table content \NC\NR
\stopTABLE

\bTABLE
\bTR \bTD table content \eTD \eTR
\eTABLE

\stoptext
%%%% end example


2. Table settings

When you use the \bTABLE environment each cell is a \framed block where you can set the width or height, framecolor etc.

%%%% begin example
\starttext

\bTABLE
\bTR \bTD[width=3D2cm,height=3D2cm,framecolor=3Dred,align=3D{middle= ,lohi}] table content \eTD \eTR
\eTABLE

\startframed[width=3D2cm,height=3D2cm,framecolor=3Dred,align=3D{middle,lo= hi}] table content \stopframed

\stoptext
%%%% end example


3. \setupTABLE

With the \setupTABLE command you can change the values which are used to format the cells of the table.

With the first two optional arguments you can control whether settings are applied only to certain table rows or columns but also for certain cells (e.g. row 3 column 2).

%%%% begin example
\starttext

\setupTABLE[framecolor=3Dred]

\bTABLE
\bTR \bTD first table \eTD \eTR
\eTABLE

\stoptext
%%%% end example


4. \start

When you use the \setupTABLE command like shown below the settings are applied to all the following tables.

%%%% begin example
\starttext

\setupTABLE[framecolor=3Dred]

\bTABLE
\bTR \bTD first table \eTD \eTR
\eTABLE

\bTABLE
\bTR \bTD second table \eTD \eTR
\eTABLE

\stoptext
%%%% end example

To ensure the new color for the frame is only applied to the first table add \start before you change the value with \setupTABLE and \stop after the table.

When you do this you create a local group where the changed frame color is kept local to the group.

%%%% begin example
\starttext

\start
\setupTABLE[framecolor=3Dred]
\bTABLE
\bTR \bTD first table \eTD \eTR
\eTABLE
\stop

\bTABLE
\bTR \bTD second table \eTD \eTR
\eTABLE

\stoptext
%%%% end example

When you have multiple tables with the same style you don't want to change the table values each time by hand.

The method of choice here is to collect all changes to the table layout in a \startsetups block (the argument is just a name for the block) and load it afterwards at the start of the table with the setups key.

%%%% begin example
\starttext

\startsetups [redtableframe]
\setupTABLE[framecolor=3Dred]
\stopsetups

\bTABLE[setups=3Dredtableframe]
\bTR \bTD first table \eTD \eTR
\eTABLE

\bTABLE
\bTR \bTD second table \eTD \eTR
\eTABLE

\stoptext
%%%% end example

Wolfgang


--------------bG4Cs6eXETGjtUhvO7OWUVPS-- --===============3661019600607371899== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============3661019600607371899==--