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.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 362772495E for ; Tue, 2 Jul 2024 00:20:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CE2B44845BE for ; Tue, 2 Jul 2024 00:18:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com 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 5DmGjj6HwT4v for ; Tue, 2 Jul 2024 00:18:48 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 324DC484658 for ; Tue, 2 Jul 2024 00:18:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 17B9C482633 for ; Tue, 2 Jul 2024 00:17:41 +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 RHnn3kRpPRSu for ; Tue, 2 Jul 2024 00:17:40 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.43; helo=mail-ej1-f43.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 BCD014823BE for ; Tue, 2 Jul 2024 00:17:40 +0200 (CEST) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a6fe617966fso317357266b.1 for ; Mon, 01 Jul 2024 15:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719872260; x=1720477060; darn=ntg.nl; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=tRHnn/P1JW9FbheiQn0yNmIkHJ5Tc1Tijr+0RgRfbI4=; b=m4+WsXfRi85uo4f25CRQbjUlnAyc1ePLP9YrdBc5Izwdl6IdCyqesfCJ0zVXxmAPec 4WCIWC2E3F7TlarEmEhmyffX53cLBlFYz3lAw9grkiBAHwIJi8HBUJzGCB6vdItg1bXs 5F1ODfeupt8ozZMEfuCu2GZaT3vOqoGAbzNPZKTn6CLhp6Rjc7M2ipUBqbFBrAOd4OT+ 2sewmw2DVraf5n6oSeMhiUHvUQvZONOwMqcJENMN3/5KiGm8FtNzSKbFmYVkA5H3tTgY APWyxFGe6cJf0ze63i0snx4bsI9TbBMi/JwbXrXu6U1gqupcRWgGdBQqYlc2Ste4H2R3 Mxww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719872260; x=1720477060; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tRHnn/P1JW9FbheiQn0yNmIkHJ5Tc1Tijr+0RgRfbI4=; b=tCSg2zj6Tgy/I/0YrwtV8Nx/zs3uvAZ89+wZyDWwUS1hMxIi9OZqrg7c63kkN7pYKH G0/b+3uBiYiFAr1CyNT1AaGoIUY/vzshKuOyaJbcpnXK6WbWQ9APeAc35yrAo4583m4b 4iGLNEvoahWGxEwR1TdOwgfHBsShP8dZUOYi2f+cjPSal6DSxj2+sMf7r2rVkPiQLEO/ zEpVFefaNf5go33CYgv5gEN4/fWlcsIfgGleusO/ej9PjBKezfOWTstRu3fzf8/15uCY jn0vSzm8LJe9XrAY5iCHQF9dIHyzikbApJ9wZejeKzscEgJqwJQ+5N4iZkjgVPDP0+R4 9ksw== X-Gm-Message-State: AOJu0YxbzTSjrqKyF1nvqopsvaujoxxAc7I9KQMW8B89Nu5J5o9jfEes QxDV1kZZ0TdYGHUF36OufwpSb+BF4A6WYin08n6XGpNeOlEpVImi X-Google-Smtp-Source: AGHT+IHpZ3LJ539ngU6iMjDMXwnD0usZ8pAWw+MAKkjGtw5Dy+Mk2M4eCVB5NwZd/Agsb7Fx/vpHuQ== X-Received: by 2002:a17:906:e81:b0:a6f:11c9:f349 with SMTP id a640c23a62f3a-a751447b0e9mr379564366b.23.1719872258483; Mon, 01 Jul 2024 15:17:38 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10:c473:56fa:3248:496c? ([2a02:810d:a8bf:dc10:c473:56fa:3248:496c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf62951sm365552866b.66.2024.07.01.15.17.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2024 15:17:38 -0700 (PDT) To: mailing list for ConTeXt users , Gerion Entrup References: <3492953.QJadu78ljV@falbala> From: Wolfgang Schuster Message-ID: <34663299-e8db-9bfe-f2ec-8a908366588a@gmail.com> Date: Tue, 2 Jul 2024 00:17:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <3492953.QJadu78ljV@falbala> Content-Language: en-US Message-ID-Hash: RJIIZKNTSMW6NNHMMMPTHB5QH7VXQ3DR X-Message-ID-Hash: RJIIZKNTSMW6NNHMMMPTHB5QH7VXQ3DR X-MailFrom: wolfgang.schuster.lists@gmail.com 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: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________