Re: [NTG-context] Bold math broken in beta

2018-01-03 Thread Hans Hagen

On 1/2/2018 11:30 PM, Henri wrote:

On Tue, 2018-01-02 at 22:40 +0100, Hans Hagen wrote:

On 1/2/2018 10:17 PM, Henri wrote:


\starttext

oeps $\mb e^{i\pi} = -1$

\bold{oeps $e^{i\pi} = -1$}

\bold{oeps $\mb e^{i\pi} = -1$}

\stoptext

\mb : there is no full-blown bold math in latin modern, just use \bf


Also doesn't work with Lucida (which has a bold math font).
You probably meant \bi, \bf switches to upright as well.
an engine issue ... in node-nut.lua patch this (line 227) ... normally 
this branch is not entered


if not direct.getfam then
local getfield = direct.getfield
local setfield = direct.setfield

direct.getfam = function(n)   return getfield(n,"small_fam")   end
direct.setfam = function(n,f)setfield(n,"small_fam",f) end
end

(we'll probably push a new luatex to the garden one of these days)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold math broken in beta

2018-01-02 Thread Henri
On Tue, 2018-01-02 at 22:40 +0100, Hans Hagen wrote:
> On 1/2/2018 10:17 PM, Henri wrote:
> > 
> > \starttext
> > 
> > oeps $\mb e^{i\pi} = -1$
> > 
> > \bold{oeps $e^{i\pi} = -1$}
> > 
> > \bold{oeps $\mb e^{i\pi} = -1$}
> > 
> > \stoptext
> \mb : there is no full-blown bold math in latin modern, just use \bf

Also doesn't work with Lucida (which has a bold math font).
You probably meant \bi, \bf switches to upright as well.

> 
> Hans
> 
> 
> 
> -
>    Hans Hagen | PRAGMA ADE
>    Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold math broken in beta

2018-01-02 Thread Pablo Rodriguez
On 01/02/2018 10:17 PM, Henri wrote:
> \starttext
> oeps $\mb e^{i\pi} = -1$
> \bold{oeps $e^{i\pi} = -1$}
> \bold{oeps $\mb e^{i\pi} = -1$}
> \stoptext

Hi Henri,

I can confirm the issue with bold math.

From the beta backups I have, it seems to have been introduced in beta
from 2017.10.24 10:30 (previous beta from 2017.10.19 13:50 doesn’t
suffer from the issue.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold math broken in beta

2018-01-02 Thread Hans Hagen

On 1/2/2018 10:17 PM, Henri wrote:

\starttext

oeps $\mb e^{i\pi} = -1$

\bold{oeps $e^{i\pi} = -1$}

\bold{oeps $\mb e^{i\pi} = -1$}

\stoptext

\mb : there is no full-blown bold math in latin modern, just use \bf

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bold math broken in beta

2018-01-02 Thread Henri
\starttext

oeps $\mb e^{i\pi} = -1$

\bold{oeps $e^{i\pi} = -1$}

\bold{oeps $\mb e^{i\pi} = -1$}

\stoptext

test.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bold math trouble

2012-08-12 Thread Kumar Appaiah
Hi.

I use ConTeXt in Debian. If this helps, please keep it in mind:

dpkg -l context gives:
ii  context   2012.05.30.20120611-1

Now, if you consider the following:

code
\usetypescript[palatino][texnansi]
\definetypeface[mainface][mm][math][modern][modern][encoding=texnansi]
\definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi]
\switchtobodyfont[palatino,14pt]

\starttext
Hi
\startformula
x = \boldsymbol{\Sigma}\Sigma
\stopformula
\stoptext
/code

The issue I have is that this doesn't work, and throws me:

! Math formula deleted: Insufficient symbol fonts.
\mathboldsymbol ...t]$\mathsurround \zeropoint #1$
  }} {\hbox {\switchtoformul...
l.9 x = \boldsymbol{\Sigma}
   \Sigma

However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is
there something I am doing wrong?

Thanks.

Kumar
-- 
Kumar Appaiah
___
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
___


Re: [NTG-context] Bold math trouble

2012-08-12 Thread Hans Hagen

On 12-8-2012 22:25, Kumar Appaiah wrote:

Hi.

I use ConTeXt in Debian. If this helps, please keep it in mind:

dpkg -l context gives:
ii  context   2012.05.30.20120611-1

Now, if you consider the following:

code


you can try ad here:

\definebodyfontenvironment[14pt]


\usetypescript[palatino][texnansi]
\definetypeface[mainface][mm][math][modern][modern][encoding=texnansi]
\definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi]
\switchtobodyfont[palatino,14pt]

\starttext
Hi
\startformula
x = \boldsymbol{\Sigma}\Sigma
\stopformula
\stoptext
/code

The issue I have is that this doesn't work, and throws me:

! Math formula deleted: Insufficient symbol fonts.
\mathboldsymbol ...t]$\mathsurround \zeropoint #1$
   }} {\hbox {\switchtoformul...
l.9 x = \boldsymbol{\Sigma}
\Sigma

However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is
there something I am doing wrong?


maybe there is no bold math available

-
  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
___


Re: [NTG-context] Bold math trouble

2012-08-12 Thread Kumar Appaiah
Dear Hans,

On Mon, Aug 13, 2012 at 12:41:09AM +0200, Hans Hagen wrote:
 you can try ad here:
 
 \definebodyfontenvironment[14pt]

Thanks.

 \usetypescript[palatino][texnansi]
 \definetypeface[mainface][mm][math][modern][modern][encoding=texnansi]
 \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] 
 [encoding=texnansi]
 \switchtobodyfont[palatino,14pt]
 
 \starttext
 Hi
 \startformula
 x = \boldsymbol{\Sigma}\Sigma
 \stopformula
 \stoptext
 /code
 
 The issue I have is that this doesn't work, and throws me:
 
 ! Math formula deleted: Insufficient symbol fonts.
 \mathboldsymbol ...t]$\mathsurround \zeropoint #1$
}} {\hbox 
  {\switchtoformul...
 l.9 x = \boldsymbol{\Sigma}
 \Sigma
 
 However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is
 there something I am doing wrong?
 
 maybe there is no bold math available

I see. In other words, you are saying that I don't have the fonts to
generate bold math at those sizes?

I'll settle with a workaround without bold math for now, then.

Thanks!

Kumar
-- 
Kumar Appaiah
___
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
___


[NTG-context] bold math

2009-07-03 Thread Mojca Miklavec
Hello Hans,

I wanted to use

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]
\starttext
$\boldsymbol θ$
\stoptext

but it seems to fail in mkii and has no influence in mkiv. (The
workaround in mkii is to use \theta instead of θ, in mkiv it makes no
difference.)

1. Is there any simple patch that could make θ work in mkii? (I'm
working with mkii at the moment)
2. I have no idea what to do in mkiv case. Some of symbols (including
bold greek) exist is the same font, some don't and might require
another (bolder) font. Maybe fixing the behaviour of \boldsymbol and
a few mappings for greek could be enogh to start with.

I have tried to enter MATHEMATICAL BOLD ITALIC SMALL THETA directly
with LM, but it didn't work (probably there are some mappings still
missing, but it's a bit uncomfortable to type proper mathematical
symbols anyway as editor is somehow lacking the characters and
keyboard would have to be reconfigured heavily).

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-07-03 Thread Mojca Miklavec
On Fri, Jul 3, 2009 at 15:12, Mojca Miklavec wrote:
 Hello Hans,

 I wanted to use

 \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]
 \starttext
 $\boldsymbol θ$
 \stoptext

 but it seems to fail in mkii

Sorry, I take my word back. It works OK with \boldsymbol{θ}. However
the functionality in mkiv still needs to be fixed.

 and has no influence in mkiv. (The
 workaround in mkii is to use \theta instead of θ, in mkiv it makes no
 difference.)

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-07-03 Thread Hans Hagen

Mojca Miklavec wrote:


and has no influence in mkiv. (The
workaround in mkii is to use \theta instead of θ, in mkiv it makes no
difference.)


in mkiv (unicode) we need complete bold fonts .. (or make additional 
vectors); bold alphabets are part of math in unicode and should work ok 
but symbols is a 'whole font' issue


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-07-03 Thread Mojca Miklavec
On Fri, Jul 3, 2009 at 15:23, Hans Hagen wrote:
 Mojca Miklavec wrote:

 and has no influence in mkiv. (The
 workaround in mkii is to use \theta instead of θ, in mkiv it makes no
 difference.)

 in mkiv (unicode) we need complete bold fonts .. (or make additional
 vectors); bold alphabets are part of math in unicode and should work ok but
 symbols is a 'whole font' issue

I agree ... there are lots of other symbols.

I noticed the tex-bi in math-vfu (I'm still looking into beta
version). There's no mapping for it, but I guess that it's probably
exactly the same as math-bi.

Do you plan to misuse tex-bi or to to define mathematics.make_font (
lmroman10-boldmath ... ) for bold math then?

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-07-03 Thread Hans Hagen

Mojca Miklavec wrote:

On Fri, Jul 3, 2009 at 15:23, Hans Hagen wrote:

Mojca Miklavec wrote:


and has no influence in mkiv. (The
workaround in mkii is to use \theta instead of θ, in mkiv it makes no
difference.)

in mkiv (unicode) we need complete bold fonts .. (or make additional
vectors); bold alphabets are part of math in unicode and should work ok but
symbols is a 'whole font' issue


I agree ... there are lots of other symbols.

I noticed the tex-bi in math-vfu (I'm still looking into beta
version). There's no mapping for it, but I guess that it's probably
exactly the same as math-bi.

Do you plan to misuse tex-bi or to to define mathematics.make_font (
lmroman10-boldmath ... ) for bold math then?


currently only math tf is defined (fam 0) and we will also have math bf 
(fam 1); mostly a matter of definitions but i was not in the mood to 
figure out all the bold fonts involved/needed


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-07-03 Thread Hans Hagen

Mojca Miklavec wrote:


I have tried to enter MATHEMATICAL BOLD ITALIC SMALL THETA directly
with LM, but it didn't work (probably there are some mappings still
missing, but it's a bit uncomfortable to type proper mathematical
symbols anyway as editor is somehow lacking the characters and
keyboard would have to be reconfigured heavily).


sure, which is why most symbols have names too; i expect lm typewriter 
to be complete with respect to math some day so thatit can be used for 
editing



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bold math

2009-03-27 Thread Bostjan Vesnicer

Hi,

what is the current (preferred) way of using math bold symbols.

Bostjan



smime.p7s
Description: S/MIME Cryptographic Signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-03-27 Thread Aditya Mahajan

On Fri, 27 Mar 2009, Bostjan Vesnicer wrote:


Hi,

what is the current (preferred) way of using math bold symbols.


For MKII, define

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]

and then use \boldsymbol around symbol that you want in bold.

For MKIV, bold math isn't handled yet.

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-03-27 Thread Boštjan Vesnicer
Thanks, Aditya.

I have the same question for calligraphic and doublestroke symbols.

Bostjan

On Fri, Mar 27, 2009 at 4:17 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 27 Mar 2009, Bostjan Vesnicer wrote:

  Hi,

 what is the current (preferred) way of using math bold symbols.


 For MKII, define

 \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]

 and then use \boldsymbol around symbol that you want in bold.

 For MKIV, bold math isn't handled yet.

 Aditya

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-03-27 Thread Aditya Mahajan

On Fri, 27 Mar 2009, Boštjan Vesnicer wrote:


Thanks, Aditya.

I have the same question for calligraphic and doublestroke symbols.


I do not know of fonts that provide calligraphic and doublestroke symbols. 
Calligraphic uppercase letters, and doublestroke letters are provided by 
ams fonts, and can be used using


{\cal ABC} {\Bbd ABC}

without requiring any extra setup.

Aditya



Bostjan

On Fri, Mar 27, 2009 at 4:17 PM, Aditya Mahajan adit...@umich.edu wrote:


On Fri, 27 Mar 2009, Bostjan Vesnicer wrote:

 Hi,


what is the current (preferred) way of using math bold symbols.



For MKII, define

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]

and then use \boldsymbol around symbol that you want in bold.

For MKIV, bold math isn't handled yet.

Aditya

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net

___

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bold Math (slightly improved solution)

2007-06-04 Thread Aditya Mahajan
Hi,

I needed to use \boldsymbol recently, and studied the different 
solutions that have been posted on the mailing list. Using a \hbox 
wrapper seems to be the easiest way, but none of the definitions using 
\hbox took care of spacing around the symbols. Since ConTeXt now has 
equivalents of amsmath's \binrel@ and \binrel@@ commands, here is an 
improved definition of \boldsymbol.

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [modern]
 [encoding=texnansi]

\unprotect
\def\boldsymbol#1%
   {\preparebinrel{#1}%
\currentbinrel
{\mathchoice
 {\hbox{\switchtoformulabodyfont [EMAIL PROTECTED]
 {\hbox{\switchtoformulabodyfont [EMAIL PROTECTED]
 {\hbox{\switchtoformulabodyfont  [boldmath,[EMAIL PROTECTED]
 {\hbox{\switchtoformulabodyfont[boldmath,[EMAIL PROTECTED]

\protect

\starttext
$a \times b$ $a \boldsymbol{\times} b$
\stoptext

This is equivalent to \boldsymbol of amsbsy.sty. I have added this to 
the wiki,

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bold Math (slightly improved solution)

2007-06-04 Thread Hans Hagen
how about \closesymbol (sluitsymbol in dtch)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bold Math (slightly improved solution)

2007-06-04 Thread Hans Hagen
Hans Hagen wrote:
 how about \closesymbol (sluitsymbol in dtch)

   
sorry, different thread -) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bold math not mathitalic

2005-11-15 Thread Hans van der Meer
I am using the follwing (extracted) typescript lines for math in the lucida fonts:\starttypescript [luc]    \definetypeface [luc][mm][math][lucidayy][default][encoding=texnansi]    \definetypeface [luc][mm][bfmath][lucidayy][default][encoding=texnansi]\stoptypescript\starttypescript [math] [lucidayy] [default]    \definebodyfont [default] [mm]      [mr=MathRoman mo 1, mi=MathItalic mo 1, ]\stoptypescript\starttypescript [bfmath] [lucidayy] [default]    \definebodyfont [default] [mm]      [mrbf=MathRomanBold mo 1, mibf=MathItalicBold mo 1, ]\stoptypescript\starttypescript [math] [lucidayy] [name]  \definefontsynonym [MathRoman]         [LucidaBright]  \definefontsynonym [MathItalic]        [LucidaNewMath-AltItalic]\stoptypescript\starttypescript [math] [lucidayy] [texnansi,ec,8r]  \definefontsynonym [LucidaBright]                [hlhr8y]   [encoding=texnansi]  \definefontsynonym [LucidaNewMath-AltItalic]     [hlcrima]\stoptypescript\starttypescript [bfmath] [lucidayy] [name]  \definefontsynonym [MathRomanBold]     [LucidaBright-Demi]  \definefontsynonym [MathItalicBold]    [LucidaNewMath-AltDemiItalic]\stoptypescript\starttypescript [bfmath] [lucidayy] [texnansi,ec,8r]  \definefontsynonym [LucidaBright-Demi]           [hlhb8y]   [encoding=texnansi]  \definefontsynonym [LucidaNewMath-AltDemiItalic] [hlcdima]\stoptypescriptTypesetting:\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptext Gives me for the variables neatly LucidaNewMath-AltItalic.But typesetting\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\bfmath\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptextGives me LucidaBright-Demi instead of LucidaNewMath-AltDemiItalic.Everything else however (even the blackletters from ma) are in the correct bold math font.The font must be present, because substituting MathItalicBold for MathItalic in the [math] script proves that.It seems that mibf has not been substituted, but instead used the mr typeface.Could this be a flaw in the (bold)math handling? For example a wrong fam chosen in the font switch?It seems weird that everything behaves neat except for the bold math italic.Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bold math in section titles ??

2005-05-23 Thread Enrico Schmitz

Is it possible to activate bold math printing in a
chapter/section/subsection title? In the example the
numbers withing math mode (and the greek symbols)
are set in regular style, while the rest of the title
is printed in bold.

This is an example using the euler math fonts:

\definetypeface[careless][mm][math][euler][euler][encoding=texnansi]
\definetypeface[careless][mm][bfmath][euler][euler]

\definetypeface[boldmath][mm][boldmath][euler][euler]
\definetypeface[boldmath][mm][bfmath][euler][euler]

\setupbodyfont[careless]

\starttext
\setuphead[section][style={\bfa}]
\section{Normal $a^2+b^2=c^2$}
\setuphead[section][style={\switchtobodyfont[boldmath]\bfa}]
\section{Bold $a^2+b^2=c^2$}
\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bold math

2004-08-31 Thread Sytse Knypstra
At 8/30/2004 10:50, you wrote:
Is there a simple way to get bold (, |, *, and ) in math?
nikolai
I don't know how to get them in the standard cmr fonts, but I have the 
lucida fonts installed and realised these bold characters as follows:

\definetypeface [mainface] [rm] [serif]   [lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [tt] [mono][lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [ss] [sans][lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [mm] [math,bfmath] [lucida] [default] 
[encoding=texnansi]
\setupformulas [method=bold]
\usetypescript [lucida] [texnansi]
\switchtotypeface  [lucida] [12pt]
\switchtobodyfont[mainface]
\usemathcollection[lbr]
\setupbodyfont[mainface]

\starttext
${\bfm ( |  *  )}$
\stoptext
Sytse Knypstra
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bold math

2004-08-31 Thread Hans Hagen
Sytse Knypstra wrote:
At 8/30/2004 10:50, you wrote:
Is there a simple way to get bold (, |, *, and ) in math?
nikolai

I don't know how to get them in the standard cmr fonts, but I have the 
lucida fonts installed and realised these bold characters as follows:

\definetypeface [mainface] [rm] [serif]   [lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [tt] [mono][lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [ss] [sans][lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [mm] [math,bfmath] [lucida] [default] 
[encoding=texnansi]
\setupformulas [method=bold]
\usetypescript [lucida] [texnansi]
\switchtotypeface  [lucida] [12pt]
\switchtobodyfont[mainface]
\usemathcollection[lbr]
\setupbodyfont[mainface]

\starttext
${\bfm ( |  *  )}$
\stoptext
there is also a magazine about it (see show-mag.pdf at www page) 

Hans  

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bold math

2004-08-30 Thread Nikolai Weibull
Is there a simple way to get bold (, |, *, and ) in math?
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bold math

2004-05-09 Thread Adam Lindsay
Hi all.

I've revisited the euler support scripts with an eye towards bold math. I
think I have it right now.

I tried applying the same techniques to computer-modern math in order to
get bold math going for the TeX default font, and it seems not to switch
back to the right font after a grouped \bfm font switch. The minimum case
for this is $x{\bfm x}x$, which gives an italic x, a bold x, and then a
roman x.

Hans (others with full Lucida math?), what does the test case look like?

If you want to try the attached typescript, the following should work well:
\definetypeface[mainface][mm][math][euler][euler]
\definetypeface[mainface][mm][bfmath][euler][euler]
\definetypeface [boldmath][mm][boldmath][euler][euler]
\definetypeface [boldmath][mm][bfmath][euler][euler]

The following fails on cases like the one I described, but is reasonable
otherwise:
\definetypeface[mainface][mm][math][computer-modern][computer-modern]
\definetypeface[mainface][mm][bfmath][computer-modern][computer-modern]
\definetypeface [boldmath][mm][boldmath][computer-modern][computer-modern]
\definetypeface [boldmath][mm][bfmath][computer-modern][computer-modern]
 


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay  [EMAIL PROTECTED]
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

type-eul-new.tex
Description: TeX document


cmr-bfm-x.pdf
Description: Adobe PDF document


Re: [NTG-context] bold math

2003-11-24 Thread Hans Hagen
At 10:48 21/11/2003, you wrote:
Ahoj,

On November 11 I asked the list how I could generate bold greek math 
symbols (I have the lucida family installed).
Until now I didn't get a response, so maybe I should be more specific.

Let me put it this way:
On page 12 of the `Fonts in ConTeXt' manual I find the footnote:
`Bold math is already prepared in the core modules, so normally one can do 
with less code.'

Can anybody tell me what code I have to add and where?
I would like to get the following line
$\theta = {\bfmath \alpha' x}$
with \theta in normal math and \alpha and x in math boldface?
First of all, the definition of \bfmath is broken (i probably never really 
tested it)

\def\bfmath{\bf\mf\synchronizesymb\mf}

i'll come back to more advanced mixed normal/bold switching later (playing 
a bit with that now);

a main switch to bold math is best done with a new typeface:

(i just found out that there's a typo in type-syn.tex and type-enc.tex: 
LucidaNewMath-Demibold - LucidaNewMath-DemiBold

\definetypeface [mainface] [rm] [serif]
  [lucida] [default] [encoding=texnansi]
\definetypeface [mainface] [tt] [mono]
  [lucida] [default] [encoding=texnansi]
\definetypeface [mainface] [ss] [sans]
  [lucida] [default] [encoding=texnansi]
\definetypeface [mainface] [mm] [math]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [rm] [serif]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [tt] [mono]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [ss] [sans]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [mm] [boldmath]
  [lucida] [default] [encoding=texnansi]
\switchtobodyfont[mainface] \usemathcollection[lbr]  \showmathtoken{Gamma}
\switchtobodyfont[boldmath] \usemathcollection[lbr]  \showmathtoken{Gamma}
\startlines
$x=10 \Gamma \Delta \alpha \delta \zeta$
{$x=10 \Gamma \Delta \alpha \delta \zeta$}
{$x=10 \Gamma \Delta \alpha \delta \zeta$}
$\mainface  x=10 \Gamma \Delta \alpha \delta \zeta$
$\boldmath  x=10 \Gamma \Delta \alpha \delta \zeta$
\stoplines

\startformula
  x=12=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[mainface]
   x=12=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath]
  x=12=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,8pt]
  x=8=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,12pt,small]
  x=12s=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,small]
  x=s=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,10pt]
  x=10=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,11pt,small]
  x=11s=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,9pt]
  x=9=\fontbody \Gamma \Delta \alpha \delta \zeta
\stopformula
\formula[boldmath]{1=2x}

Hans

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bold math

2003-11-21 Thread Sytse Knypstra
Ahoj,

On November 11 I asked the list how I could generate bold greek math 
symbols (I have the lucida family installed).
Until now I didn't get a response, so maybe I should be more specific.

Let me put it this way:
On page 12 of the `Fonts in ConTeXt' manual I find the footnote:
`Bold math is already prepared in the core modules, so normally one can do 
with less code.'

Can anybody tell me what code I have to add and where?
I would like to get the following line
$\theta = {\bfmath \alpha' x}$
with \theta in normal math and \alpha and x in math boldface?
Sytse Knypstra

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bold math

2003-11-11 Thread Sytse Knypstra
Hi all,

I would like to use bold greek math symbols (I have the lucida family 
installed).
In the `Fonts in ConTeXt' manual I concluded from page 12 that this should 
be relatively simple.
However all my attempts failed: either I got the normal math symbols or I 
got all (roman and greek) symbols bold,
whereas I want to use them alternately.
I tried the description on the pages 13 and 14, but I couldn't get it working.
I simply inserted `,boldmath' in the lucida typescript in the file type-exa 
and it gave me all symbols bold.
I must admit that I don't understand much of what is written in the `Fonts 
in ConTeXt' manual.

Can anybody give me a solution of how to achieve this?

BTW. Shouldn't this feature be a standard one in ConTeXt?

Thanks
Sytse
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context