From: Vladimir Lomov <lomov.vl@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math and bold font
Date: Fri, 3 Dec 2010 23:30:39 +0800 [thread overview]
Message-ID: <20101203153039.GA4262@smoon> (raw)
In-Reply-To: <op.vm4n4frotpjj8f@lpr>
Hi.
** Procházka Lukáš Ing. - Pontex s. r. o. [2010-12-03 08:51:41 +0100]:
> Hello all,
>
> I'd to explain some effects in the .pdf from the code bellow. It was copied from co-font.pdf, pg. 19-20; just "Abc" was added to try something.
>
> ---
> \enableregime[cp1250]
>
> \starttext
> $Abc\sqrt{625}=5\alpha$
> $\bf Abc\sqrt{625}=5\alpha$
> $Abc\sqrt{625}=\bf5\alpha$
> $\bfmath Abc\sqrt{625}=5\alpha$
>
> \definetypeface[whow][mm][math,boldmath][modern][default]%[encoding=texnansi]
> []
>
> $Abc\sqrt{625}=5\alpha$
> $\bf Abc\sqrt{625}=5\alpha$
> $Abc\sqrt{625}=\bf5\alpha$
> $\bfmath Abc\sqrt{625}=5\alpha$
>
> \usetypescriptfile[typeface]
>
> $Abc\sqrt{625}=5\alpha$
> $\bf Abc\sqrt{625}=5\alpha$
> $Abc\sqrt{625}=\bf5\alpha$
> $\bfmath Abc\sqrt{625}=5\alpha$
> \stoptext
> ---
>
> Things I cannot do or understand:
>
> - The "alpha" symbol is not printed as soon as it's used in \bf or \bfmath mode (lines 2-4 in each paragraph). Why? How to make it appear?
>
> - - The same effect may be observed in the co-fonts.pdf at the pg. 19 at the lowest line - there is bold font working, but "alpha" is missing as well.
>
> - - - Unfortunately, there is no fully working example in the document with bold math and "alpha" together.
>
> - In my example, normal (thin) "Abc" is shown a bit slanted (as should be in math mode). Once it is used in bold math mode, it's no more slanted but "vertical" as normal text. Is there a way how to keep the "slantedness" even in math bold mode? (This is e.g. often used to mark vectors.)
>
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 :).
P.S. My example works with mkiv but not with mkii. The last uses
"default" fonts that don't have bold variant for greek letters (I could
be wrong here, for LaTeX I have to redefine commands for greek letters
because there is appropriate font but greek letters are defined in a
way so nobody could use bold variant by default).
---
WBR, Vladimir Lomov
--
Avoid reality at all costs.
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-12-03 15:30 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 [this message]
2010-12-03 16:00 ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-04 8:55 ` Hans Hagen
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=20101203153039.GA4262@smoon \
--to=lomov.vl@gmail.com \
--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).