On Sat, 12 Jul 2008, Alan Stone wrote:
> Thanks for your quick response Aditya.
>
> I've read that too and unfortunately don't find anything on that page that
> answers my question.
>
> Hmmm...
>
> Either the question was not clear enough or I've been smoking the carpet...
> :O)
I wanted to say that by default, \tfa = 1.2 times \tf size, tfb is 1.44
times \tf size, tfc = 1.728 times \tf size, tfd = 2.074 times \tf size,
and tfe = 2.488 times \tf size. So you can always use
(in a 10 point document)
\definefont[chapterfont][Sans sa 1.728]
\setuphead[chapter][style=chapterfont]
> Let's try to formulate it otherwise...
>
> With somefont defined through \definetypeface[somefont][...]
>
> style={\switchtobodyfont[somefont,huge]} gives a compile error,
> only, for example, style={\switchtobodyfont[somefont,14pt]} works
>
> like in \setuphead[chapter][style={\switchtobodyfont[somefont,14pt]}]
>
> I don't want to manually input some pt size but, for example, the \tfc or
> huge corresponding pt size.
>
>
>
> Therefore I'm looking for
>
> - the ConTeXtMagicCommand to convert
> \ConTexTMagicCommand[\tfc or huge] to "\tfc or huge size expressed in pt"
>
> or
>
> - some other ConTeXtSuperMagic trick to display the chapter heading in
> somefont and \tfc or huge size
The default values of \tfa etc can be changed by \definefont. If these
values have not been changed, then you can use:
\definefont[chapterfont][Sans sa \magfactor3]
\setuphead[chapter][style=chapterfont]
\magfactor is defined in font-ini.tex as
\def\magfactor#1%
{\ifcase#1 1.000\or1.200\or1.440\or1.728\or2.074\or2.488\or1\fi}
so \magfactor 3 is equal to \tfc in size. You can also use a more plain
TeX like syntax as
\definefont[chapterfont][Sans scaled \magstep3]
where \magstep is defined in font-ini.tex as
\def\magstep#1%
{\ifcase#1 [EMAIL PROTECTED]@m\fi}
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________