Adam Lindsay
Steffen Wolfrum said this at Thu, 10 Mar 2005 23:11:41 +0100:
But if the heading should be set in general in a bold face what do I use instead of \rm so that italic parts of he heading will be typeset in bold-italic (and \sc parts to bold-smallcaps)? I guess something (next to serif, sans, mono, ...) like serifbold (\brm?) should be defined in my typescript?
I'm a bit confused why you're not using \em in this situation, as it adapts to both bold and roman contexts. If you dislike that it defaults to slanted, then there's:
\setupbodyfontenvironment[default][em=italic] {\bf Hello \em World} Hello \em World
But if you want to follow the path of defining your own, adaptive switches, then you could look at these goodies already defined in font-ini:
%D \macros %D {emphbf,emphit,emphsl,emphtf} %D %D The next emphasis alternatives are for \THANH. They adapt %D their style as good as possible.
\def\emphbf{\groupedcommand{\bf\def\emphit{\bi}\def\emphsl{\bs}}{}} \def\emphit{\groupedcommand{\it\def\emphbf{\bi}\def\emphsl{\sl}}{}} \def\emphsl{\groupedcommand{\sl\def\emphbf{\bs}\def\emphit{\it}}{}} \def\emphtf{\groupedcommand{\tf\def\e mphbf{\bf}\def\emphit{\it}\def\emphsl{\sl}} {}}
Right. I can use \em. But my workflow of using ConTeXt is typesetting already finished books (.doc-files). And so I would like to change the "text" as little as possible and instead use an suitable set of typescript and setup environment. That's why I thought I'd need a mysans (or \myrm) defined in the typescript to be used in Taco's full-blown bodyfont switch as described above: \def\SectionStyle{% \switchtobodyfont[myrm,20pt] \setupinterlinespace[line=30pt] } In fact, this is something I would like to have also for other purposes (for example to use a second set of oldstyle figures): defining my own *myserif* or *mysans* that could be used then in a typescriptfile the same way as sans, serif and mono are used there. But up to now I didn't manage it. Somebody did and would like to share his/her knowledge? Thank you, Steffen