ConTeXt: Trocando fonte para \title e \subject

ConTeXt: Trocando fonte para \title e \subject

Estou tentando alterar a fonte para dois níveis de títulos \titlee subjectno ConTeXt. Embora o código para alterar a fonte dos títulos não seja diferente daquele para alterar a fonte dos assuntos, apenas os títulos aparecem no Zapf Chancery.

Este é o meu MWE:

\define[2]\mytitle{%
  \switchtobodyfont[chorus]%
  #2
}

\define[2]\mysubject{%
  \switchtobodyfont[chorus]%
  #2
}

\setuphead[title][command=\mytitle]
\setuphead[subject][command=\mysubject]

\starttext
\title{In Zapf Chancery}
\subject{Apparently the default font. Why?}

And in the default font, just as expected.
\stoptext

Ele produz a seguinte saída:

Saída do exemplo mínimo de trabalho

Remover a chamada para \switchtobodyfont[chorus]in mytitlefaz com que a legenda use Zapf Chancery, no entanto, não consegui fazer com que ambos usassem Zapf Chancery ao mesmo tempo.

Agradeço antecipadamente por sua ajuda!

Nota: Já fiz esta pergunta no fórum alemão TeXWelt há cerca de duas semanas, mas infelizmente não obtive resposta. Verhttps://texwelt.de/fragen/29432/context-schriftart-einer-uberschrift-und-unteruberschrift-andern.

Responder1

Use a stylechave.

\setuphead
  [title,subject]
  [style=\switchtobodyfont[chorus]]


\starttext
\title{In Zapf Chancery}
\subject{Apparently the default font. Why?}

And in the default font, just as expected.
\stoptext

Refrão em título e assunto

Se você quiser em estilos/tamanhos separados, escolha um para titlee outro para subject.

informação relacionada