On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
thanks for the example. I can see that:
- In another font(s) (at least in cambria in your example) bold Greek
chars are OK.
- \bf in math mode causes chars to become "vertical", i.e. when I want
to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I
thought that the "slantedness" is kept by default when switching to bold
in math mode, but no problem to switch to slanted/italics font manually.
In fact in math these are not font switches, but switches to a different
alphabet. In traditional tex that normally is afont switch so one gets
the other bold or whatever shapes for free, given that they are in that
font (so it's a side effect of the way math alphabets are implemented),
but not so in open type math.
- But I still have no idea how to "restore" Greek chars when using the
*default* bold math font (i.e. when not using
\setupbodyfont[<another-font>]. Or do I have to \setup???font[???]
explicitly when I want to use Greek bold chars as well?
there is no default math font in mkiv: one uses regular math or bold
math (given that there are two font(set)s available which is seldom the
case) and within them gets bold or heavy alphabets (plus a few chars)
IMHO (I'm not expert in context) this depends on used fonts. See for
example follwoing:
<example file="ex1.tex">
\setupbodyfont[cambria]
\starttext
This is a test.
$a=\alpha$
$\bf a=\alpha$
$\bi a=\alpha$
\stoptext
</example>
BTW, I not sure if I use "correct" way to switch fonts in math mode (in
LaTeX commands to switch fonts are different in text and math mode, and
I have big LaTex background, so for me this way is unusual :).
best try to convert to the unicode math approach: bold a-z is different
unicode slots than a-z and in context the \bf command does that
transformation on ascii a-z (you can also key in the official unicode
chars); the benefit is that you can cut and paste the bold characters in
pdf files i.e. you retain that property; a bold b is not a bold one in
typographic sense but a special symbol that happens to use a bold
rendering; in for instance a section title, one can have all math bold,
and then this regular bold character will become real bold
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________