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