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,HTML_MESSAGE,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 9190C2125B for ; Tue, 30 Apr 2024 16:07:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EE426484580 for ; Tue, 30 Apr 2024 16:05:41 +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 GoPPjGh4EbYN for ; Tue, 30 Apr 2024 16:05:40 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A988E484540 for ; Tue, 30 Apr 2024 16:02:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 667A04844C9 for ; Tue, 30 Apr 2024 16:02:10 +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 5DyDdvHxpzC5 for ; Tue, 30 Apr 2024 16:02:09 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.52; helo=mail-lf1-f52.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 2F3944844C8 for ; Tue, 30 Apr 2024 16:02:08 +0200 (CEST) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5176f217b7bso10093481e87.0 for ; Tue, 30 Apr 2024 07:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714485728; x=1715090528; darn=ntg.nl; h=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=mAaintMDLhoLwuE9SKtArLZ66DRBUgJyGxEVrbV798g=; b=VdkbQ3/6Y8Eu+w++GkzlUECOB4z10hHZNRjaFMiLrPUXw4cBbOxxzBq2imo30awJ5n 5pnMRDnbjbqHnEDKSyLyb82427zk9lL6QRjhGGmufNP56o3nrrPdIgBlTCP7DtXuaPf+ m7mxerP+EvvNlz5pQcgtIiVGz3+81SvsEDhA9sHvC/+t7JP4W9IDyaP/mFVX/rmFgUiY s9THHh+3Htt60GckXL93BtnEgzcm+2fFjR84JkRdWFyUw/m6amVGAlPHAexUUR44hGEX ybiDIWXzF3D2uVq5n7XmzQQ30T/XNL61ptoAFz4hu3yMCYn/Wavn+4p78/J7Ft6Frrpa b5Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714485728; x=1715090528; h=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=mAaintMDLhoLwuE9SKtArLZ66DRBUgJyGxEVrbV798g=; b=kxnDj6ukvft0EpBa2UnHvI1mbBLMNKepolxHZk5j/BKVzrikieMlq0kq+rNzT/oIro 5Bs2EhaN7A3qp8LzKSkBMTWkrNfzm9PvRCPfCmSrBeGdihj80vw7ujvRmI8w+4OkTj95 IycCoZ4BGNjbWDZql2sKSxDH/2WU672VfZ4bDc6x7yngjLBysEy0/mKptYSXJIWjA2Vy FY5TwcLx8y1oCuxyqMCYtmf0GKWd0K1r809yjETwDAB3KZj0gl3MWzTSswv7FwxWDHyl VuCCEIOXJGAOfFaAiNm1iSLcfEfh4QnD1kKOrE1pCT+m3/ycRb+85El6wrpwym8LzIIo gXrQ== X-Gm-Message-State: AOJu0Yy70vix+fSx0yrtpbSRk5oY4BWFQOobEPdUvuH7622Ya5n27JfZ m9I1YUKbHX2y5cEKpRzQwoRiYhw25MSboseHBgzfxya75wwKrjiQCewYUA== X-Google-Smtp-Source: AGHT+IG8YKbTF21uC5uvoQXrGbC0sicTErv6UROHOkaLCAe0oeZEnsAvng9wk3mv91gPVRHT48pI4g== X-Received: by 2002:ac2:483c:0:b0:51c:5570:f570 with SMTP id 28-20020ac2483c000000b0051c5570f570mr10982605lft.59.1714485727573; Tue, 30 Apr 2024 07:02:07 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10::3322? ([2a02:810d:a8bf:dc10::3322]) by smtp.gmail.com with ESMTPSA id wr12-20020a170907700c00b00a58f4eff0d3sm3353337ejb.109.2024.04.30.07.02.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2024 07:02:06 -0700 (PDT) To: mailing list for ConTeXt users , denis.maier@unibe.ch References: From: Wolfgang Schuster Message-ID: <66dcb305-0ac0-aeab-6cd6-0ae7c423979a@gmail.com> Date: Tue, 30 Apr 2024 16:02:05 +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: Content-Language: en-US Message-ID-Hash: ZEXNB7BZP6KZZTJC5HOTUTWFHBZOJG7I X-Message-ID-Hash: ZEXNB7BZP6KZZTJC5HOTUTWFHBZOJG7I 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: Font switching for titles and subtitle not working as expected ? 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="===============1218633899894856997==" This is a multi-part message in MIME format. --===============1218633899894856997== Content-Type: multipart/alternative; boundary="------------F296E5CCF972A9DBBDCBBEA3" Content-Language: en-US This is a multi-part message in MIME format. --------------F296E5CCF972A9DBBDCBBEA3 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit denis.maier@unibe.ch schrieb am 30.04.2024 um 14:22: > > Hi, > > I just jumbled upon this question on tex stackexchange : > https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 > > Using the style key as suggested in the accepted answer works, but > I’ve had a look in to this, and I don’t understand why the original > code does not work. > > I’ve also tried to find a solution using textcommand instead of > command, but that makes no difference. Only one setting will be > accepted. As soon as both, titles and subjects, are changed only the > first change will be accepted. > > Is this a bug, or am I missing something? > When you load a typescript only in a local group (e.g. a section title) you should always load it at the start of the document to avoid such side effects.     \usebodyfont[chorus] % load the chorus typescript     \setupbodyfont[modern] % set the default font for the document Wolfgang --------------F296E5CCF972A9DBBDCBBEA3 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit denis.maier@unibe.ch schrieb am 30.04.2024 um 14:22:

Hi,

I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 

Using the style key as suggested in the accepted answer works, but I’ve had a look in to this, and I don’t understand why the original code does not work.

I’ve also tried to find a solution using textcommand instead of command, but that makes no difference. Only one setting will be accepted. As soon as both, titles and subjects, are changed only the first change will be accepted.

 

Is this a bug, or am I missing something?


When you load a typescript only in a local group (e.g. a section title) you should always load it
at the start of the document to avoid such side effects.

    \usebodyfont[chorus] % load the chorus typescript
    \setupbodyfont[modern] % set the default font for the document

Wolfgang

--------------F296E5CCF972A9DBBDCBBEA3-- --===============1218633899894856997== 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 ___________________________________________________________________________________ --===============1218633899894856997==--