5

In LaTeX, some document classes specify sans serif fonts for chapter and section titles, and serif fonts for the main text of a document. what is the proper way to achieve this in ConTeXt? I have code like this, to specify my fonts:

\starttypescript[serif][minionpro]
    \definefontsynonym[Serif][name:minionpro]
\stoptypescript

\starttypescript[minionpro]
    \definetypeface[minionpro][rm][serif][minionpro][default]
\stoptypescript

\setupbodyfont[minionpro, 12pt]

1 Answer 1

7
\setuphead[chapter][style={\ssc}]
\setuphead[section][style={\ssb}]

ConTeXt uses \ss to denote sans-serif, and the suffixes a, b, c, d, and e refer to font size. See font switching on the context wiki for more details.

1
  • Just wanted to note that the e suffix doesn't work (anymore), at least right now on my ConTeXt installation (2019-06-04).
    – acidrums4
    Nov 20, 2019 at 16:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .