From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
denis.maier@unibe.ch
Subject: [NTG-context] Re: Font switching for titles and subtitle not working as expected ?
Date: Tue, 30 Apr 2024 16:02:05 +0200 [thread overview]
Message-ID: <66dcb305-0ac0-aeab-6cd6-0ae7c423979a@gmail.com> (raw)
In-Reply-To: <GV0P278MB02117F777292E73BF638D8BB831A2@GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM>
[-- Attachment #1.1: Type: text/plain, Size: 975 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3082 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-04-30 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 12:22 [NTG-context] " denis.maier
2024-04-30 14:02 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66dcb305-0ac0-aeab-6cd6-0ae7c423979a@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=denis.maier@unibe.ch \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).