ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to \bf for math?
@ 2006-01-15 11:07 Mojca Miklavec
  2006-01-15 12:48 ` Henning Hraban Ramm
  2006-01-16 18:00 ` David Munger
  0 siblings, 2 replies; 19+ messages in thread
From: Mojca Miklavec @ 2006-01-15 11:07 UTC (permalink / raw)


Hello,

What exactly is the ConTeXt alternative to LaTeX's \mathbf (switch to
bold or bold italic math fonts)?

(Btw: is it better to use bold or bold italic for typesetting vectors?
We use "overrightharpoonup", so I don't know what an international
standard says.)

I understand the main commands for switching the font in text (rm, tt,
ss for family and tf, sl, it, bf, bs, bi, sc + an optional
x/xx/a/b/c/d), but I didn't understand yet what to use for math.

~~~
As an intermezzo: is there any way to ger small caps slanted? \sc will
do the small caps, but \sl switches to normal slanted font (no small
caps) again. I suppose that the current model (set of current font
definitions) doesn't account for the possibility of using small caps
slanted or small caps bold (slanted). Is there any elegant way to do
that, for example by defining new commands such as \scbf, \scit, \scbi
[+ xx/x/a/b/c/d]? (I can still use other tricks to get those fonts,
but some general scheme for using them could be useful for others as
well.)
~~~

I tried to use the examples described in mfonts.pdf, but I can't get
those examples working. (I probably used too few definitions when more
definitions are required at once to make the examples work.)
I also tried the command from one of Adam's articles,
\def\mfunction#1{{\em#1}}, to get italic euler math font, but without
success.

I managed to use "bold math" as a whole (on the example of iwona which
has different weights of math fonts):
\starttypescript [math] [iwona-heavy] [default]
  \definefontsynonym [Iwona-Math-Letters-Heavy]       [rm-iwonah]
  \definefontsynonym [Iwona-Math-Letters-HeavyItalic] [mi-iwonahi]
  \definefontsynonym [Iwona-Math-Symbols-Heavy]       [sy-iwonahz]
  \definefontsynonym [Iwona-Math-Extension-Heavy]     [ex-iwonah]
\stoptypescript
\starttypescript [math] [iwona-heavy] [name]
  \definefontsynonym [MathRoman]     [Iwona-Math-Letters-Heavy]
  \definefontsynonym [MathItalic]    [Iwona-Math-Letters-HeavyItalic]
  \definefontsynonym [MathSymbol]    [Iwona-Math-Symbols-Heavy]
  \definefontsynonym [MathExtension] [Iwona-Math-Extension-Heavy]
\stoptypescript
\definetypeface [iwona] [mm] [math] [iwona-heavy] [default]

But I can't get ant further than that, so that I could switch between
"thin" and "bold".

I tried
\starttypescript [boldmath] [iwona-heavy] [name]
  \definefontsynonym [MathRomanBold]     [Iwona-Math-Letters-Heavy]
...
\starttypescript %[boldmath] [iwona-heavy] [default]
	\definebodyfont [boldmath] [mm]
	[(bf)mr=MathRomanBold mo 1, ...]
...
and different settings in starttypescript/definebody font ... but no
success at all.

I would like to create some definitions, so that I could easily say
(write a command) "I want the light version for regular math and the
regular font for bold math" or "I want the regular version for regular
and the heavy version for bold math".

Thanks a lot for help,
    Mojca

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-02-18 11:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-15 11:07 How to \bf for math? Mojca Miklavec
2006-01-15 12:48 ` Henning Hraban Ramm
2006-01-15 14:59   ` Mojca Miklavec
2006-01-15 18:11     ` Hans Hagen
2006-01-16 11:06       ` Taco Hoekwater
2006-01-16 17:08         ` Mojca Miklavec
2006-01-16 17:59           ` Taco Hoekwater
2006-02-16 20:20           ` Adam Lindsay
2006-02-16 20:40             ` Adam Lindsay
2006-02-17 10:36               ` Taco Hoekwater
2006-02-17 17:24               ` David Munger
2006-02-17 18:23                 ` Adam Lindsay
2006-02-17 19:09                   ` David Munger
2006-02-17 19:56                     ` Adam Lindsay
2006-02-17 20:10                       ` David Munger
2006-02-17 21:37                       ` Hans Hagen
2006-02-18 11:56                         ` Taco Hoekwater
2006-01-16 17:26       ` Mojca Miklavec
2006-01-16 18:00 ` David Munger

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).