ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math and bold font
Date: Sat, 04 Dec 2010 09:55:25 +0100	[thread overview]
Message-ID: <4CFA01FD.5070001@wxs.nl> (raw)
In-Reply-To: <op.vm5arxvytpjj8f@lpr>

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
___________________________________________________________________________________


  reply	other threads:[~2010-12-04  8:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03  7:51 Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-03 15:30 ` Vladimir Lomov
2010-12-03 16:00   ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-04  8:55     ` Hans Hagen [this message]
2010-12-05 13:58       ` Procházka Lukáš
2010-12-05 17:34         ` Florian Wobbe
2010-12-05 19:27           ` Math and bold font: \definetypeface Procházka Lukáš
2010-12-05 21:48             ` Florian Wobbe
2010-12-06 14:37               ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-08 10:24                 ` Florian Wobbe
2010-12-10 13:25                   ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-06 10:11       ` Math and bold font Vladimir Lomov
2010-12-06 16:55         ` Procházka Lukáš Ing. - Pontex s. r. o.
     [not found]       ` <op.vm8ptgm00g5ws1@lk-2008-nbk>
2010-12-06 14:27         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFA01FD.5070001@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).