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.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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 3F7D02329B for ; Thu, 23 Jan 2025 23:50:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2CA50484B24 for ; Thu, 23 Jan 2025 23:48:40 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); 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-transfer-encoding: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:in-reply-to:from:from:references:user-agent :mime-version:date:date:message-id:received:received:received :received:received:received:received; s=cgl; t=1737672519; x= 1740264520; bh=Rdl0K9uuR2A3JwSLG41VHDXTIhHS8DZstD/N7IOrLM4=; b=l vsAxKUtNltVwlj+zUsjB6vEMZPX2Hg1Tb/nl/c6Kq2egmrNSrxm8JSNtZ35C32nk 0lGuxMs9/o/2OtaB+namkybm/9Q6V5rK0N3voZqIa8Y0819FVS5Xt8hiETQIeOA8 q8lAADjvZk7wHRvbNVa3fELMnx1xYiq34P1e3zo2h0= 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 AM-qiNH4mzMA for ; Thu, 23 Jan 2025 23:48:39 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BD2564851A7 for ; Thu, 23 Jan 2025 23:47:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1C15D484B23 for ; Thu, 23 Jan 2025 23:46:57 +0100 (CET) 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 oMLPCBrlZ5di for ; Thu, 23 Jan 2025 23:46:54 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.47; helo=mail-ej1-f47.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 B8BE8484B19 for ; Thu, 23 Jan 2025 23:46:54 +0100 (CET) Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-aaee0b309adso220492766b.3 for ; Thu, 23 Jan 2025 14:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737672414; x=1738277214; darn=ntg.nl; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=/PWit9L/+EVM4K/73JdhDcBKyITDe3deHK5z8YJRZrg=; b=Yjm99kevRukg9TzfJrHpljwtL3/6ygIuOtaGsPfWHM98FgNrRmqdi05MMA6RM+zNu9 dLZdMY4202k4U2pyV0w36D9Y/iTRBhooQaUTwVc4mTeX/9hUCgovMK8Ot4gMt8xiLcam f/N+nAIROEup1r/x7h1IUDwV4pQfJIQng51z2GOEsxmQoe2aC44VJZkfaUpZ9V6l1UZV okiNEQq6OyL7cmfQ0/0R8cbw6weUU1KxHij/zRgGmJg/dizQ9LHt73dh+yNOgkr6H2Ph rkZULk8QjpkMGVVReNMTnoravRdCCjh9MZZ+UeJbdZV4OCa7sts0lEZaVVtrGS2Dl0wI 47ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737672414; x=1738277214; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=/PWit9L/+EVM4K/73JdhDcBKyITDe3deHK5z8YJRZrg=; b=XSBdYVWKu///SNjhOebu7ujn0O7+OiVzP8oH7Zdi4db5VgbjlPS4+2viDyMW/5UEEK EJbeMFQdnCAQNyXhSM9kpoH9sxIXgY1a+Qvy8lkxRLHLpQnjqBpB3JuypRbjsYb4+jzj GvilUmH8GVwXglSqqDZSOYFW/B66dxQd2F4RtcakrIwp+cApYimRcrImSOEdpJeSZyfz xLoRRVJa4THs3GDXgf3f9sLN2WXyRr39XB3vQ+XCxtSpksuiYAPN8Jx9fhDvKr5dBUfM uvqH5D16fXAbeviq7bFG8NTyKQxJ4+Ug8L+AwJgQ3FctjBaF5c+Cqpty1neERWqPjoPU V+Ig== X-Gm-Message-State: AOJu0Yy7wO4z7AgQu9fnbp1JhFY4mbt+S/mvU+Kii7qz1Uaf1FKXapav MIBtLiZHiEQfkmqqHu6uBBX9PasSKTsQ5GKKhBPfBdqHX+Dfx2mJhNBatjZE X-Gm-Gg: ASbGncvTN7czAK1KYYIhXTnt+KKP1QaqSsmiD6ZlKUjbtCIQPNjJmsJtDlBLDCiv+xe rXM3fw75K+JyVkHvOQIMjlvgmGVmBmQpBjc0D4gGUq5+xRiGvdKmZGD3i3pknM9wswE0Mx7BP+g YV0Icu5v5kLx5e9769qmYg6xNJIu9fFl/bRkNeXMtXRHyMQNhjFm5YBpZcKPZJqwWitn7bCS3Mu NfSyS97G8beFojbag08yCKi6gy6cZ6lWhlC6Gb6uLtlYvBOZRixpQszhdYs4HxKX6uo78n3mjXt xiAwKBv5yGxSp62Dp0CMIDj2r1ZLtzm9By+0+FHcDzhsTq+tz0Re58grp0V55gPYCzhY324r4Cs j X-Google-Smtp-Source: AGHT+IEzqnI85MY+pZVA4FCwdcGSR8LOP2eY6BxjX7TphVJIwxw1m7lWOzapFZ11itdRc6aJIL13IA== X-Received: by 2002:a17:906:4fcb:b0:aa6:90a8:f5ff with SMTP id a640c23a62f3a-ab38b3fbfe3mr2760553266b.50.1737672414078; Thu, 23 Jan 2025 14:46:54 -0800 (PST) Received: from ?IPV6:2a02:810d:a8c0:7ec:9dc9:21e0:2e2a:56f0? ([2a02:810d:a8c0:7ec:9dc9:21e0:2e2a:56f0]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab675e64e9bsm27036466b.46.2025.01.23.14.46.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jan 2025 14:46:52 -0800 (PST) Message-ID: <8e0465fd-a570-49f0-a267-ce8aa88c95dc@gmail.com> Date: Thu, 23 Jan 2025 23:46:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ntg-context@ntg.nl References: <173766961779.3183021.753067148315620497@cgl.ntg.nl> From: Wolfgang Schuster In-Reply-To: <173766961779.3183021.753067148315620497@cgl.ntg.nl> Message-ID-Hash: UTK3DYTDGGVZDCZFC4QB5MU2BH3I7PIV X-Message-ID-Hash: UTK3DYTDGGVZDCZFC4QB5MU2BH3I7PIV 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Decreasing size of the section number according to its level 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 Am 23.01.2025 um 23:00 schrieb garulfo@azules.eu: > Hi, > > in setuphead, I try to get a decreasing size of the section number according to its level > with \defineconversion and \definestructureconversionset. > > It works as expected for the first levels, but between 6th and 7th, the variation doesn't occur. The missing font change occurs between level 5 and 6 when you use the correct conversion name as shown below. The reason for this is the default font size for the sections and the fact that \tf doesn't switch to the default font size, i.e. when you use \tf after \tfa the a-size remains. \starttext \tfa{\tfc 1.}{\tfb 1.}{\tfa 1.}{\tf 1.}{\tfx 1} \stoptext > Any clue about what is happening ? > > For the MVE, I've added a visual check in dark red to show the discrepancy. > > \setuppapersize[A5] > > \define[1]\NivA{\tfc #1} > \defineconversion[NA][\NivA] > > \define[1]\NivB{\tfb #1} > \defineconversion[NB][\NivB] > > \define[1]\NivC{\tfa #1} > \defineconversion[NC][\NivC] > > \define[1]\NivD{\tf #1} > \defineconversion[ND][\NivD] > > \define[1]\NivE{\tfx #1} > \defineconversion[ND][\NivE] This should be: \defineconversion[NE][\NivE] A better alternative is to create a processor for each conversion. \defineprocessor [level_3] [style=\tfc] \defineprocessor [level_4] [style=\tfb] \defineprocessor [level_5] [style=\tfa] \defineprocessor [level_6] [style=\tf ] \defineprocessor [level_7] [style=\tfx] \defineconversionset [mysectionnumbers] [n,n,level_3->n,level_4->n,level_5->n,level_6->n,level_7->n] [n] 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 ___________________________________________________________________________________