From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16828 invoked from network); 21 Sep 2023 05:02:51 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 21 Sep 2023 05:02:51 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6CBDF48309D for ; Thu, 21 Sep 2023 07:02:18 +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 yRQEQJgK78ei for ; Thu, 21 Sep 2023 07:02:18 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1973A4831AF for ; Thu, 21 Sep 2023 07:01:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0D3C6483083 for ; Thu, 21 Sep 2023 07:01:19 +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 weD5vrn3LLkR for ; Thu, 21 Sep 2023 07:01:18 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 AC42F483082 for ; Thu, 21 Sep 2023 07:01:18 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1c5c91bec75so4167885ad.3 for ; Wed, 20 Sep 2023 22:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695272477; x=1695877277; darn=ntg.nl; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=E1CFyRZ7zH4Ro5/5S1nfCMTXtcdsoWpgraldZfDd8mg=; b=YxtHtOhZeP+GrxmHUVA5/o0vK8ascThm//Cf8X+zZg5w1fxt3CPebQR9EVLoseHoaP EYUMrAoVmH4kQHmYem/8Nk5BvP57HHh6xhigPs7znf3d8XGGSTRzEcD5xhllkGEABYIT Nsef09ArbAlDToBJzQd+EnpyUABGMlGZLibnzwkUe1ZddFb1F2DJMZmDWEkWy/OS+pIi Os9FBGeAPbMJOwgyvkuztoFQt81YCVTxZPFQlTY5ialoxlSjJkRRoQ2CRuhu2wB+DqC9 8u4NLBo0AFSR2V2dUlzzApYmqb4lw+4mg84M5+P3DgEqdOdmvwii6ELj1LLY1TcCD1Ti ohEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695272477; x=1695877277; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=E1CFyRZ7zH4Ro5/5S1nfCMTXtcdsoWpgraldZfDd8mg=; b=R7Udk0/l2oYX1ya/x02SofSuQtSYwhZH25/4z3ZKYGsOOYdhUa1vHcacmFMCYzc9iS 73b6a6863IOBq5vC7YBOo4ygDomhwa9wl0LdUZbEBm8G7N522SHQh/25SfCBelAcPx+n mMTmntrbEqmw5EvFr35Rfy7AzzlIwkpyfqj4MK4khz2JEYLYeUs7o+k+q+Esbix90jUH eCYbUcKcKCN0YcSUrKGC2Lix864Pd7OqpQ6/Bk4+87HXBHWoL4mQw5tFo0Pv4LKKwsZg CRbhdcS2reAb2xkCZnaUyJvAaDl2okQrK8O05ZPT0zoJ5bnvh2jprmSKOSPFs6tbtjUZ tJ2w== X-Gm-Message-State: AOJu0Yz3Y0X6Kvq0K3V0fVS7CZFd37kZQYZcjIJ1l/2riVBQwCzYtorK +HWQouYojCDk3RxTOxKJ1BA= X-Google-Smtp-Source: AGHT+IEn65cagPnH7SFszn6Zg+SZEoNGQyVbLVm9182F1Y9qVkRIlKgq3NXypXb+cOQrqpGccYvopg== X-Received: by 2002:a17:903:32cf:b0:1c3:b1d8:41b7 with SMTP id i15-20020a17090332cf00b001c3b1d841b7mr4961790plr.7.1695272476850; Wed, 20 Sep 2023 22:01:16 -0700 (PDT) Received: from [192.168.1.5] ([117.102.133.204]) by smtp.gmail.com with ESMTPSA id j3-20020a170902758300b001bdeedd8579sm369965pll.252.2023.09.20.22.01.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Sep 2023 22:01:16 -0700 (PDT) Message-ID: <615a9f7c-e33e-e2ef-5fc3-3e57a7c048e2@gmail.com> Date: Thu, 21 Sep 2023 15:01:11 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 To: Wolfgang Schuster , mailing list for ConTeXt users References: <5316a271-08fc-5ab7-89cc-afa1b820eeb1@gmail.com> <122e1a2d-d050-32ef-40cb-fd08caecf1ba@gmail.com> Content-Language: en-AU From: jbf In-Reply-To: <122e1a2d-d050-32ef-40cb-fd08caecf1ba@gmail.com> Message-ID-Hash: L6BHW2QAXDXR43XQZ2L3QTZNKCIRHCDJ X-Message-ID-Hash: L6BHW2QAXDXR43XQZ2L3QTZNKCIRHCDJ X-MailFrom: roma83537@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: \underbar in head 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="===============2595862275361876911==" This is a multi-part message in MIME format. --===============2595862275361876911== Content-Type: multipart/alternative; boundary="------------BOVh0QLombbVFKPozNXwuxNL" Content-Language: en-AU This is a multi-part message in MIME format. --------------BOVh0QLombbVFKPozNXwuxNL Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything else underlined in 'Ward'. Could it be something to do with the version of LMTX? Mine is 2022.08.25 19:21 LMTX. I do have a workaround, with a \defineframed[underbarframed] and then setting offsets accordingly and using that as a textcommand. Julian On 21/9/23 14:26, Wolfgang Schuster wrote: > jbf schrieb am 21.09.2023 um 05:03: >> >> Am attempting to get an underlined head style (chapter) with: >> >> \setuphead[chapter][textcommand=\underbar] >> >> But I get no underline. Am I doing something wrong? I can, of course, >> achieve the result at each chapter level with >> \startchapter[title={\underbar{text}}] but would prefer to achieve >> this with \setuphead >> > > \setuphead[chapter][textcommand={\setbar[underbar]}] > > \starttext > > \chapter{\samplefile{ward}} > > \stoptext > > Wolfgang > --------------BOVh0QLombbVFKPozNXwuxNL Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

However, Wolfgang, if I do, e.g.

\setuphead[chapter][textcommand={\setbar[underbar]}]

\starttext

\startchapter[title={My title}]

\input ward

\stopchapter

\stoptext

Then I do not get My Title with underline, which is what I want, and nor is anything else underlined in 'Ward'.

Could it be something to do with the version of LMTX? Mine is 2022.08.25 19:21 LMTX.

I do have a workaround, with a \defineframed[underbarframed] and then setting offsets accordingly and using that as a textcommand.

Julian

On 21/9/23 14:26, Wolfgang Schuster wrote:
jbf schrieb am 21.09.2023 um 05:03:

Am attempting to get an underlined head style (chapter) with:

\setuphead[chapter][textcommand=\underbar]

But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar{text}}] but would prefer to achieve this with \setuphead


\setuphead[chapter][textcommand={\setbar[underbar]}]

\starttext

\chapter{\samplefile{ward}}

\stoptext

Wolfgang

--------------BOVh0QLombbVFKPozNXwuxNL-- --===============2595862275361876911== 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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============2595862275361876911==--