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 DA4A223382 for ; Mon, 1 Jul 2024 23:57:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4517D4843CE for ; Mon, 1 Jul 2024 23:57:04 +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 TvqlrJXczSa7 for ; Mon, 1 Jul 2024 23:57:03 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 322FD484531 for ; Mon, 1 Jul 2024 23:56:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 95A49484310 for ; Mon, 1 Jul 2024 23:56:26 +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 bbOAzohGuz2N for ; Mon, 1 Jul 2024 23:56:26 +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) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 3FCB14842E4 for ; Mon, 1 Jul 2024 23:56:25 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id A31381224ED4 for ; Mon, 1 Jul 2024 23:56:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1719870985; bh=MBBZkfTa4gObrdwswgNZeqTye44AFDe7cv7S4rek1Ys=; h=From:To:Subject:Date; b=oKmr3U3xf1NnRlR+2wNQpRZ0BG6l0L/E2kfCfpVLnl19pf/2P9PnvR3/gNDYiiark LylYHXCAEgyU57DEW4DMffn6fSXvL0/nFTmWwbEmPx7iJYpACm0vpjrPmCkgQr4qB2 NYgPlVhDgnefcfpNILe0CNtLUoP30On53Zon6yso= From: Gerion Entrup To: mailing list for ConTeXt users Date: Mon, 01 Jul 2024 23:56:19 +0200 Message-ID: <3492953.QJadu78ljV@falbala> MIME-Version: 1.0 Message-ID-Hash: P5XOX3JGF7SEKOKZBMJLHKU3AKNTX7O3 X-Message-ID-Hash: P5XOX3JGF7SEKOKZBMJLHKU3AKNTX7O3 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] 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="===============6460830081327282444==" --===============6460830081327282444== Content-Type: multipart/signed; boundary="nextPart1896418.CQOukoFCf9"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart1896418.CQOukoFCf9 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: mailing list for ConTeXt users Subject: How to specify a default formatting for TABLE Date: Mon, 01 Jul 2024 23:56:19 +0200 Message-ID: <3492953.QJadu78ljV@falbala> MIME-Version: 1.0 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: ``` \setupTABLE[frame=off, offset=2pt] \setupTABLE[row][first][topframe=on, bottomframe=on, style=bf] \setupTABLE[row][last][bottomframe=on] \setupTABLE[row][even][background=color,backgroundcolor=red] \setupcolors[state=start] \starttext A table:\\ \bTABLE \bTR \bTD head1 \eTD \bTD head2 \eTD \eTR \bTR \bTD data1 \eTD \bTD data2 \eTD \eTR \bTR \bTD data3 \eTD \bTD data4 \eTD \eTR \eTABLE \blank[line] Another table with the same format:\\ \bTABLE \bTR \bTD head1 \eTD \bTD head2 \eTD \eTR \bTR \bTD data1 \eTD \bTD data2 \eTD \eTR \bTR \bTD data3 \eTD \bTD data4 \eTD \eTR \eTABLE \blank[line] This table should be formatted in another way (actually not formatted):\\ \bTABLE \setupTABLE[row][each][topframe=off, bottomframe=off, style=, background=] \bTR \bTD head1 \eTD \bTD head2 \eTD \eTR \bTR \bTD data1 \eTD \bTD data2 \eTD \eTR \bTR \bTD data3 \eTD \bTD data4 \eTD \eTR \eTABLE \blank[line] This does not work either:\\ { \setupTABLE[row][each][topframe=off, bottomframe=off, style=, background=] % \setupTABLE[row][1,2,3][topframe=off, bottomframe=off, style=, background=] % this deactivates the color at least \bTABLE \bTR \bTD head1 \eTD \bTD head2 \eTD \eTR \bTR \bTD data1 \eTD \bTD data2 \eTD \eTR \bTR \bTD data3 \eTD \bTD data4 \eTD \eTR \eTABLE } \stoptext ``` 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. Gerion --nextPart1896418.CQOukoFCf9 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmaDJgMACgkQloeAdSYJ HeokLQv/fmtgB1d8+wBEZka1hx9W2ma+XNpCf5f2Y2lk1LCDDHJnqllltrxPjmaB k+CDFeCOJZJW0hlp02mmSkwx5o52ppNY/zxK9ZqU67QcBXlz4dsiSfYqQY7jZJse kEbma1YBCbE4oino2Va2tJNxVVMky+hR+PhBIXI5xoxFUzVMuspb5DmebsVGtuuu +hyYf1eAMxq90mxC5TDJNZKn82/1kr+WC8fh15PUcHMoCsTIXm7FN/Pv83rO/Ncr T68bXI1un6n+9phF4LXDRLAwDFwp5bw174AMhE1G6MrUZPjjJv/YxBeqWTWrQRxB oTkg+OZVK+ld8tPnd07pAsA9NQHraSa306EMN9BNB7j/xtQyxYFs1XIUhED6q/8F GQgn1TANoZIe5n9N+d+Tg+XbW+vlrX6cn6gi1X+mM7uCLZdqxaKo1I/FHgipVpBb NmzkNwVdi/FTUzQPsIn0KIp+wJOd8V8DGP6c8fu4Rfdq61WGcEOQjJXJMelDVb6f SqvxVnTx =DBiR -----END PGP SIGNATURE----- --nextPart1896418.CQOukoFCf9-- --===============6460830081327282444== 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 ___________________________________________________________________________________ --===============6460830081327282444==--