Jens-Uwe Morawski said this at Thu, 10 Apr 2003 00:10:09 +0200:
The problem is, for example, how can one declare a bold-italic small-caps font in ConTeXT. AFAIK i can define \definefontsynonym[SerifBoldItalicCaps][AFont-BoldItalicCaps]
but there seems no standard way to access it (\bfitsc or {\bf{\it{\sc...}}}) ConTeXt lacks a complete standard set of font attributes and how they have to be used. LaTeX has them defined, thus it is easier to create FDs than typescript. Even how to name typescript-files is nowhere defined.
Clearly you're asking for a standard way. I can't provide that--only Hans can--but I can suggest a solution that I have been and still am working on. I'm defining some new fontstyles for each of sans and serif, CapsSans (cs) and RomanCaps (rc). The basic definitions look something like: \starttypescript [serif] [romancaps] [size] \definebodyfont [17.3pt,16pt,14.4pt,13pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][rc] [tf=SerifCaps sa 1, tfa=SerifCaps sa \magfactor1, tfb=SerifCaps sa \magfactor2, tfc=SerifCaps sa \magfactor3, tfd=SerifCaps sa \magfactor4, bf=SerifCapsBold sa 1, bfa=SerifCapsBold sa \magfactor1, bfb=SerifCapsBold sa \magfactor2, bfc=SerifCapsBold sa \magfactor3, bfd=SerifCapsBold sa \magfactor4, it=SerifCapsItalic sa 1, ita=SerifCapsItalic sa \magfactor1, itb=SerifCapsItalic sa \magfactor2, itc=SerifCapsItalic sa \magfactor3, itd=SerifCapsItalic sa \magfactor4, bi=SerifCapsBoldItalic sa 1, bia=SerifCapsBoldItalic sa \magfactor1, bib=SerifCapsBoldItalic sa \magfactor2, bic=SerifCapsBoldItalic sa \magfactor3, bid=SerifCapsBoldItalic sa \magfactor4] \stoptypescript \starttypescript [sans] [sanscaps] [size] \definebodyfont [17.3pt,16pt,14.4pt,13pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][cs] [tf=SansCaps sa 1, tfa=SansCaps sa \magfactor1, %% ... bid=SansCapsBoldItalic sa \magfactor4] \stoptypescript If you create font synonyms for each of the three extra symbolic names for each font, and use the above typescripts, then you can call the Small Caps font directly with a style switch (\rc\bi), with a style switch, but keeping the alternative (\switchstyleonly\cs), or with the following \SmCap macro, which tries to be a little cleverer about the available alternatives. I haven't worked the ungrouped \kap command into it, because I'm not sure how. \def\SSSmCap{ss} \def\SSmCap{cs} % Don't know how else to compare. \def\SmCap {\ifx\fontstyle\SSSmCap\doifdefinedelse{cs} {\switchstyleonly[cs]}{\sc}\else \ifx\fontstyle\SSmCap \else% Do nothing: we're already there \doifdefinedelse{rc} {\switchstyleonly[rc]}{\sc}\fi\fi} \let\OldStyle\SmCap [be gentle... it's my first command with lower-level macros] I'm hoping to write this up as a "My Way" before too long, but I wanted to get this idea out there for some feedback. As my recent posts suggest, it requires some extra font memory. hope that's of some use, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-