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=-1.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_ZEN_BLOCKED_OPENDNS, URIBL_DBL_BLOCKED_OPENDNS,URIBL_ZEN_BLOCKED_OPENDNS 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 2FF182538F for ; Tue, 16 Sep 2025 21:52:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E1B8F486F4D for ; Tue, 16 Sep 2025 21:50:56 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavis); 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:message-id:date:date:from :from:in-reply-to:references:mime-version:received:received :received:received:received:received; s=cgl; t=1758052256; x= 1760644257; bh=pfgovrnRZfzqH1R/CMs/uUWdN8Fhl11Fae8X5xmnSG0=; b=t 8jyYcxZUme2fFFEm3bXl2O2Taf1EP39PmXD78ID5ezdvOw/rwKAYfU36akYQn69P hR11RqdTuy/yAKoBv8QufXTsTQL2M7KEbImWyQ8SKJtnqBBv54RuRcAjb/IwZBMB b1PeRkHs2QmfMI9x0vys0YwNvvNzd50UmA9sogEsSI= X-Virus-Scanned: Debian amavis at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavis); 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]) (amavis, port 10024) with ESMTP id h9S4RHw3JKzC for ; Tue, 16 Sep 2025 21:50:56 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5F783486F2C for ; Tue, 16 Sep 2025 21:48:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C10E8486E0B for ; Tue, 16 Sep 2025 21:47:40 +0200 (CEST) X-Virus-Scanned: Debian amavis at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavis, port 10024) with ESMTP id GnsbHLoP-lPF for ; Tue, 16 Sep 2025 21:47:39 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.41; helo=mail-lf1-f41.google.com; envelope-from=alan.caruanambom@gmail.com; receiver=ntg.nl Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 C13E4486DFF for ; Tue, 16 Sep 2025 21:47:39 +0200 (CEST) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-55f6017004dso5913694e87.0 for ; Tue, 16 Sep 2025 12:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758052059; x=1758656859; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=FNbZUSkvzsJ3+FlzbPJxKhTtXeDZ0hwe1e/P9Cri64M=; b=DmgZMd7XlZzuXtXtIwKrcw/sY977v5K0rbw4BfV89bKMyYFreiKFr48jExkaXLELaF qGI2SLPKKHo4J19lh26fMEr4NeTX93lG0uWbZw7HXlbxkjgLfqej1zWOSLWFjfqgNuaG JOL698nXr0c1dJ4woovn9HwuddmlEiWZQizrRqZUJP7AFbIL5uwENfsLMTFlPs0dG8UY aW1Swf+cI55wiEHiPzsid0iLPKIYjCIjcHPYShFLQzIpyBFdqNsPDjlCOXwJk2w2nn+L jUj2/L5LZLhP/tZqbJBZbhGoi7azs6VEz8O/u0QTPR1hbbPhw8kCQC0sBbJim6RMSLUP RcvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758052059; x=1758656859; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FNbZUSkvzsJ3+FlzbPJxKhTtXeDZ0hwe1e/P9Cri64M=; b=e3ZGDJSQVNFj0CpGxdMXez65Q/E8rsJ2JFa4HU2yFpihTbGDcvCO2/ttoK1klCXBpX LW6iwCOVKci8kv+DSrrz3d5TdrAX9mS17G9kgzZbFBcoa1NJBwcxZhsvHbkoWI685mum wydtAAjEWcKNYXqi0kkItFh+E8jSQbAO3ZY1fduaDbPQrHX/RPws6EMDy9yMv5A9wgO8 LJVQA3+FLowPFnFf64EsvTyYPMGWbXTGJVsCFdWs412EedkyS3r+HtshjxLE2pHiLwZA pFbbZP0e2uC+DaZLNCxT3H0HfxEsexYG6JisepQXytSixGbr4ZLKp9I03rZud19OTKse AOHw== X-Gm-Message-State: AOJu0YyywFstPDYtpRCxRGFnyJqo6i4Zs1ZqCd+Q9GleyclfRP/2q4oX feLGZkuFBtux+KlxpjFk/hmrVZ8HMMYhwRRsls/PeytAA7BXYsgA0uPYVpoZtNWG4ijZz0thSGh MGnwvZzBQOqeOVrppxXYmBm9JaaX8kqkaHDqs X-Gm-Gg: ASbGncvmJel8QQglNjfK5mZACd/EryjHbd04ZtpsBb1/l8a3swCgppiucHIjrZWtESc z/+UGBvdjYh0cS88lAlS3wzkIqU5/8wTAgX9hxMbJ5FGKGrq+xNNXStsz8U3Z2r8/LDvzVirlua 2w2+RPU+x+ZUOVJa4tbwePHOyDlrBMibjM54hngsPqPDEQk0ohuV3GrtetXGpm0NvY1im0qSBpU bHuxg8= X-Google-Smtp-Source: AGHT+IFu781Jgzud3idq2C0oWK0Wzp1KCuKLaVlfZYzUcAUetpp3Xy56PF78WvSz8TRoFuZeAgODJ1ol4iNpReMmgDw= X-Received: by 2002:a05:6512:3498:b0:55f:6aa7:c09 with SMTP id 2adb3069b0e04-5704e724245mr4481829e87.44.1758052058158; Tue, 16 Sep 2025 12:47:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alan Caruanambo Date: Tue, 16 Sep 2025 14:47:28 -0500 X-Gm-Features: AS18NWC-6rzCbgVFRC3hYarRa_4xUgyTtreCvLWJ2OGGXcN0euPqTLr10VhruwE Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: RN5AMKK4JV5LSI4OBQ45KR3X2SK7V2QJ X-Message-ID-Hash: RN5AMKK4JV5LSI4OBQ45KR3X2SK7V2QJ X-MailFrom: alan.caruanambom@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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Doubt when centering titles 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="===============3951811010303181418==" --===============3951811010303181418== Content-Type: multipart/alternative; boundary="0000000000006c5b3e063ef064dd" --0000000000006c5b3e063ef064dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! :) El mar, 16 sept 2025 a la(s) 2:40=E2=80=AFp.m., Wolfgang Schuster ( wolfgang.schuster.lists@gmail.com) escribi=C3=B3: > Am 16.09.2025 um 20:33 schrieb Alan Caruanambo: > > I have the following code. How can I make the number and text centered > > as if they were a single block? > > You can use "alternative=3Dparagraph" for \setuphead but it ignores the > width setting. > > To get centered text and a shorter text width you have to create you own > layout for the title: > > \define[2]\SectionCommand > {\vbox\bgroup > \headsetupspacing > \hsize=3D.75tw > \begstrut#1\nobreakspace#2\endstrut > \egroup} > > \setuphead > [section] > [style=3D\ss\bfc, > align=3Dmiddle, > indentnext=3Dyes, > margin=3D.125tw, > command=3D\SectionCommand, > color=3Ddarkred] > > 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 > > _________________________________________________________________________= __________ > --0000000000006c5b3e063ef064dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you! :)

<= /div>
El mar, 16 sept 2025 a la(s) 2:40=E2=80=AFp.m., Wolfgang S= chuster (wolfgang.schu= ster.lists@gmail.com) escribi=C3=B3:
Am 16.09.2025 um 20:33 schrieb Alan Caruanambo: > I have the following code. How can I make the number and text centered=
> as if they were a single block?

You can use "alternative=3Dparagraph" for \setuphead but it ignor= es the
width setting.

To get centered text and a shorter text width you have to create you own layout for the title:

\define[2]\SectionCommand
=C2=A0 =C2=A0{\vbox\bgroup
=C2=A0 =C2=A0 =C2=A0 \headsetupspacing
=C2=A0 =C2=A0 =C2=A0 \hsize=3D.75tw
=C2=A0 =C2=A0 =C2=A0 \begstrut#1\nobreakspace#2\endstrut
=C2=A0 =C2=A0 \egroup}

\setuphead
=C2=A0 =C2=A0[section]
=C2=A0 =C2=A0[style=3D\ss\bfc,
=C2=A0 =C2=A0 align=3Dmiddle,
=C2=A0 =C2=A0 indentnext=3Dyes,
=C2=A0 =C2=A0 margin=3D.125tw,
=C2=A0 =C2=A0 command=3D\SectionCommand,
=C2=A0 =C2=A0 color=3Ddarkred]

Wolfgang

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--0000000000006c5b3e063ef064dd-- --===============3951811010303181418== 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 ___________________________________________________________________________________ --===============3951811010303181418==--