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.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham 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 9CB9520930 for ; Tue, 2 Jul 2024 00:26:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3D505484717 for ; Tue, 2 Jul 2024 00:24:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=flump.de 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 ru-BWKFMvFlT for ; Tue, 2 Jul 2024 00:24:31 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CE108484749 for ; Tue, 2 Jul 2024 00:23:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 63B27483C2F for ; Tue, 2 Jul 2024 00:23:07 +0200 (CEST) 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 lnG3_-Ub9CCd for ; Tue, 2 Jul 2024 00:23:07 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= Received: from flump.de (flump.de [185.163.118.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 1A679483BC3 for ; Tue, 2 Jul 2024 00:23:07 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id C3275122BFA5; Tue, 2 Jul 2024 00:23:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1719872586; bh=S1bpn7S5EYTdhv6Ua7H5KdrmLalNNVTvRuNN+huw9/w=; h=From:To:Subject:Date:In-Reply-To:References; b=zOCZt2n108/o2rclNSfez7wc1P6v4rcuioR03dS0VHik05zTf8kkvehDp6AUeI4e+ bsHCns1/R5b3V55/qT/+HVoTTaT2bgXS28u4J0ypkLAGhFqMep6gRJYpjAC1JY2BuJ lU5lcQ8XpvsfF5R7C5Mw1tSTabBbdP+cXV43K6DM= From: Gerion Entrup To: mailing list for ConTeXt users , Wolfgang Schuster Date: Tue, 02 Jul 2024 00:23:06 +0200 Message-ID: <4358478.ejJDZkT8p0@falbala> In-Reply-To: <34663299-e8db-9bfe-f2ec-8a908366588a@gmail.com> References: <3492953.QJadu78ljV@falbala> <34663299-e8db-9bfe-f2ec-8a908366588a@gmail.com> MIME-Version: 1.0 Message-ID-Hash: QEZCTBANSAPQ25QN6GC255HP3OGHDUYA X-Message-ID-Hash: QEZCTBANSAPQ25QN6GC255HP3OGHDUYA X-MailFrom: gerion.entrup@flump.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.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: How to specify a default formatting for TABLE 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="===============0089093656403464174==" --===============0089093656403464174== Content-Type: multipart/signed; boundary="nextPart2198086.Mh6RI2rZIc"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart2198086.Mh6RI2rZIc Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup Date: Tue, 02 Jul 2024 00:23:06 +0200 Message-ID: <4358478.ejJDZkT8p0@falbala> In-Reply-To: <34663299-e8db-9bfe-f2ec-8a908366588a@gmail.com> MIME-Version: 1.0 Am Dienstag, 2. Juli 2024, 00:17:36 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 01.07.2024 um 23:56: > > Hi, > > > > I want to format a bunch a tables with the same formatting. > > It seems that specifying the \setupTABLE commands as part of the preamble works. > > > > However, I need some tables that are formatted in another way. > > Is there a generic way to specify this? > > > > Here is a MWE: > > [...] > > > > The last two tables should be formatted as if the four setupTABLE commands in the header are not existent. > > My solution does not work, however. > > 1. Put your table settings in a setups-block and load the one you want > at the start of your table. > > 2. You don't need \setupcolors[state=start] because colors are enabled > by default (since a veee...eeery long time). > > 3. You can replace \bTD ... \eTD with \bTH ... \eTH for table headers to > get bold text. > > %%%% begin example > \startsetups[table:a] > \setupTABLE [each] [frame=off,width=1cm,height=1cm,align={middle,lohi}] > \setupTABLE [each] [background=color,backgroundcolor=lightgray] > \stopsetups > > \startsetups[table:b] > \setupTABLE [each] > [frame=off,width=2cm,height=1.2\lineheight,align=middle] > \setupTABLE [each] [topframe=on,bottomframe=on] > \stopsetups > > \starttext > > \bTABLE > \bTR > \bTD A \eTD > \bTD B \eTD > \eTR > \bTR > \bTD C \eTD > \bTD D \eTD > \eTR > \eTABLE > > \blank > > \bTABLE[setups=table:a] > \bTR > \bTD A \eTD > \bTD B \eTD > \eTR > \bTR > \bTD C \eTD > \bTD D \eTD > \eTR > \eTABLE > > \blank > > \bTABLE[setups=table:b] > \bTR > \bTD A \eTD > \bTD B \eTD > \eTR > \bTR > \bTD C \eTD > \bTD D \eTD > \eTR > \eTABLE > > \stoptext > %%%% end example > > Wolfgang Thank you very much! That are a bunch of nice tricks. The setups environment is really powerful. I will actively search for this keyword in the documentation next time. Gerion --nextPart2198086.Mh6RI2rZIc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmaDLEoACgkQloeAdSYJ HephQQwAqlLbFXSubfZlTtssuwdT3IgL4WPk43izKyyY14jdZ/jrCddN2ppA+O3p nMBeMmhZ0Aobp3JHh5Cyeth7SMWKHHr4IvyR+zo9vOAbrrE3xb7dcezTDeZMKl+G BI0JdDmHmoVITXjIlsOlCbdSkDHke2tFUOzlba0Xtk504zrh6uHDPouRgICXe8ym JR9arYeT9ZiqvStTg2qu3UpuL+3jSu6VKkTyuMVWhg2plB5xltWlu7FcmzrhEb6C AJYzw5slpArMU92rzX+ixPRHjHxUZ5NMhbu57uIOsEP69EWQsaTt1iozIFDoHSNx pKSINwfN12FgM+I2eAD/hS+AJHRb6CtNjShRlV12JBNIxtSUA8UUVRKmoBmUDEIh yEzNcv9UlILB9glGLkUoYN6jkKj+PAaJbsXmcQgFpM8BQF9B90/DN0UBWBAT0bGZ LzIXr4aVgV690wE0da7huezUKVHzbWjPmkX8l9OdTk3H7zbn1AHSOZc4LdGCW6Dp NjltBaAC =wgJ0 -----END PGP SIGNATURE----- --nextPart2198086.Mh6RI2rZIc-- --===============0089093656403464174== 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 ___________________________________________________________________________________ --===============0089093656403464174==--