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]
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.

  • Just wanted to note that the e suffix doesn't work (anymore), at least right now on my ConTeXt installation (2019-06-04). – acidrums4 2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.