
Estou tentando alterar a fonte para dois níveis de títulos \title
e subject
no 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:
Remover a chamada para \switchtobodyfont[chorus]
in mytitle
faz 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 style
chave.
\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
Se você quiser em estilos/tamanhos separados, escolha um para title
e outro para subject
.