ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Florian Wobbe <Florian.Wobbe@awi.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math and bold font: \definetypeface
Date: Wed, 08 Dec 2010 11:24:36 +0100	[thread overview]
Message-ID: <09574017-8392-49F3-A7F3-356BD6F1AAD3@awi.de> (raw)
In-Reply-To: <op.vnaqw9yxtpjj8f@lpr>

> To get back to my problem:
> 
> The default Ctx bodyfont (CMR) is all right for me, I don't need to change it (but it's possible, if it should simplify something).

If you don't need CMR, than simply don't use. It does not have greek boldmath/upright anyway.

> If I understand well, the default Ctx font - CMR - is used for typesetting [bold]math as well. But the problem is that it fails when typesetting bold Greek letters.

Right.

> What code - \typescript, \define???font??? - to use?
> 
> Just to make the code "$Abc \alpha = {\aSwitchToBoldMath Abc \alpha} = or \aCommandToTypeBoldMath{Abc \alpha}$ work.

Minimal example that uses Tex Gyre Pagella and Heros for serif and sans, and either Cambria, Asana, Neo Euler, or XITS for math (comment in your choice and make sure that context finds the fonts):

\starttypescript [myface]
  \definetypeface [\typescriptone] [rm] [serif] [pagella] [default]
  \definetypeface [\typescriptone] [ss] [sans]  [heros] [default]
  \definetypeface [\typescriptone] [tt] [mono]  [modern] [default]
  %\definetypeface [\typescriptone] [mm] [math]  [cambria][default]
  %\definetypeface [\typescriptone] [mm] [math]  [asana][default]
  %\definetypeface [\typescriptone] [mm] [math]  [euler][default]
  \definetypeface [\typescriptone] [mm] [math]  [xits][default]
\stoptypescript

\setupbodyfont[myface]

\starttext
  Pagella \par
  {\ss Heros} \par
  {\tt Modern Typewriter} \par
  $Abc \beta = {{\bi Abc} \bf Abc \beta \mathgreekupright \beta}$
\stoptext

Note that Neo Euler does not have italics and there are no fallbacks for bold/greek italic. So ${\bi A} \bf \beta$ will be displayed as $A \beta$.

Best wishes,
Florian

___________________________________________________________________________________
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-08 10:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03  7:51 Math and bold font 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
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 [this message]
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=09574017-8392-49F3-A7F3-356BD6F1AAD3@awi.de \
    --to=florian.wobbe@awi.de \
    --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).