ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Mixed Normal and Bold Math -- Problem with Lucida
@ 2006-08-04  3:33 Renaud AUBIN
  2006-08-04  7:01 ` Taco Hoekwater
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Renaud AUBIN @ 2006-08-04  3:33 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 6546 bytes --]


Hi all,

I use lucida for a document and now I need some bold math fonts so I
have followed the instructions given in "This Way - Mixed Normal and
Bold Math". The resulting test file is:

\starttext
\usetypescript[lucida] [texnansi]
\usetypescript[lucidabfm] [texnansi]
\usetypescript[lucidaboldmath][texnansi]
\setupformulas[method=bold]
\startformula[lucida] 1 \Gamma \alpha x \stopformula
\startformula[lucida] 1 \Gamma {\bfm \alpha x} \stopformula
\startformula[lucidaboldmath] 1 \Gamma \alpha x \stopformula
\startformula[lucidaboldmath] 1 \Gamma {\bfm \alpha x} \stopformula
\stoptext

I have installed lucida with texfont and added some .tfm (lucida.zip
from Hans). Since I'm on debian, I've done some modifications to
/etc/updmap.d/10tetex-base (I use tetex + latest ConTeXt in ~/texmf) +
sudo update-updmap + sudo updmap-sys...
\loadmapfile[texnansi-bh-lucida.map] is in my cont-sys.tex

texexec gives:


TeXExec | processing document 'lucidabfm.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file lucidabfm.top
TeXExec | using randomseed 1128
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
 \write18 enabled.
 (/home/renaud/texmf/web2c/natural.tcx)
entering extended mode
(./lucidabfm.tex

ConTeXt  ver: 2006.07.28 23:56  fmt: 2006.8.1  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(/home/renaud/texmf/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(/home/renaud/texmf/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/home/renaud/texmf/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(/home/renaud/texmf/tex/context/user/cont-sys.tex
(/home/renaud/texmf/tex/context/base/type-exa.tex)
(/home/renaud/texmf/tex/context/base/type-syn.tex)
(/home/renaud/texmf/tex/context/base/type-enc.tex)
(/home/renaud/texmf/tex/context/base/type-siz.tex)
(/home/renaud/texmf/tex/context/base/type-map.tex)
(/home/renaud/texmf/tex/context/base/type-spe.tex)
(/home/renaud/texmf/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns nl->texnansi:texnansi->1->2:3
nl->ec:ec->2->2:3 fr->
texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3
de->texnansi:texnansi->5->2:3 de->e
c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3
pt->texnansi:texna
nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3
pl->ec:e
c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3
sk->il2:i
l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 en->ec:ec->21->2:3
uk->ec:ec-
>22->2:3 us->ec:ec->23->2:3 agr->agr:agr->24->2:3 da->ec:ec->25->2:3
sv->ec:ec-
>26->2:3 af->ec:ec->27->2:3 no->ec:ec->28->2:3 deo->ec:ec->29->2:3
es->ec:ec->3
0->2:3 ca->ec:ec->31->2:3 la->ec:ec->32->2:3 ro->ec:ec->33->2:3
tr->ec:ec->34->
2:3 fi->ec:ec->36->2:3 hu->ec:ec->37->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : lucidabfm.top loaded
(./lucidabfm.top
specials        : loading definition file tpd
(/home/renaud/texmf/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/home/renaud/texmf/tex/context/base/spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
systems         : system commands are enabled
(/home/renaud/texmf/tex/context/base/sort-def.tex)
(/home/renaud/texmf/tex/context/base/sort-lan.tex)
systems         : begin file lucidabfm at line 1
(/home/renaud/texmf/tex/context/base/type-buy.tex)
(/home/renaud/texmf/tex/context/base/math-lbr.tex)kpathsea: Running
mktextfm LucidaNewMath-Demibold
/usr/share/texmf/web2c/mktexnam: Could not map source abbreviation L for
LucidaNewMath-Demibold.
/usr/share/texmf/web2c/mktexnam: Need to update
/usr/share/texmf-tetex/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;
nonstopmode; input LucidaNewMath-Demibold
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf LucidaNewMath-Demibold
! I can't find file `LucidaNewMath-Demibold'.
<*> ...; nonstopmode; input LucidaNewMath-Demibold

Please type another input file name
! Emergency stop.
<*> ...; nonstopmode; input LucidaNewMath-Demibold

Transcript written on mfput.log.
grep: LucidaNewMath-Demibold.log: Aucun fichier ou répertoire de ce type
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input LucidaNewMath-Demibold' failed to make LucidaNewMath-Demibold.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font \*lucida7ptmmmrbfrm*:=LucidaNewMath-Demibold at 7.0pt not
loadable: Metr
ic (TFM) file not found.
<to be read again>
                   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
                                                  \let
\localrelativefontsiz...

\dodosetmathfamilyB ...amily \fontsize \endcsname
                                                  \else \ifcsname
\fontclass...

\dosetmathfamily ...athfamily \scriptscriptfont #1
                                                  \let \fontbody
#3\dodosetm...
<inserted text> ...scriptface \c!mrbf \mrfallback
                                                  \dosetmathfamily
\mibffam ...
<inserted text> ...\else \the \boldmathstrategies
                                                  \fi
\autoenablemathcollect...
...
l.6 \startformula[lucida]
                          1 \Gamma \alpha x \stopformula
?


LucidaNewMath-Demibold.tfm ???

I really don't now where is the problem (maybe I'm too tired or I'm
completelly dumb...)

Commenting out \setupformulas[method=bold] gives a resulting pdf with
LucidaNewMath-Demibold embedded-Subsetted. Only the last two lines
contains bold symbols. The \bfm command has no effect on \alpha x (the
second line). I assume that font-bfm.tex is loaded since there is no
complains about \bfm def. type-exa is loaded (and consequently bfmath
defined).

At first, I believe that there is a problem with my debian map files or
my lucida installation but it doesn't seems so after checking... Any idea ?

Cheers,

Renaud



[-- Attachment #1.2: Type: text/html, Size: 9868 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-04  3:33 Mixed Normal and Bold Math -- Problem with Lucida Renaud AUBIN
@ 2006-08-04  7:01 ` Taco Hoekwater
  2006-08-04  7:46   ` Renaud AUBIN
  2006-08-04 15:20 ` Renaud AUBIN
  2006-08-05  4:13 ` Mojca Miklavec
  2 siblings, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2006-08-04  7:01 UTC (permalink / raw)


Renaud AUBIN wrote:
> 
> Hi all,
> 
> I use lucida for a document and now I need some bold math fonts so I 
> have followed the instructions given in "This Way - Mixed Normal and 
> Bold Math". The resulting test file is:

There is a typo in type-buy.tex. There is one line that contains

   \definefontsynonym [MathRomanBold]     [LucidaNewMath-Demibold]

but it should be:

   \definefontsynonym [MathRomanBold]     [LucidaNewMath-DemiBold]

(capital B on the last Bold)


Taco

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-04  7:01 ` Taco Hoekwater
@ 2006-08-04  7:46   ` Renaud AUBIN
  2006-08-04  7:53     ` Renaud AUBIN
  0 siblings, 1 reply; 9+ messages in thread
From: Renaud AUBIN @ 2006-08-04  7:46 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 780 bytes --]


Good Morning Taco,

It works, thanks...

Taco Hoekwater a écrit :

>Renaud AUBIN wrote:
>  
>
>>Hi all,
>>
>>I use lucida for a document and now I need some bold math fonts so I 
>>have followed the instructions given in "This Way - Mixed Normal and 
>>Bold Math". The resulting test file is:
>>    
>>
>
>There is a typo in type-buy.tex. There is one line that contains
>
>   \definefontsynonym [MathRomanBold]     [LucidaNewMath-Demibold]
>
>but it should be:
>
>   \definefontsynonym [MathRomanBold]     [LucidaNewMath-DemiBold]
>
>(capital B on the last Bold)
>
>
>Taco
>
>
>
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>  
>


[-- Attachment #1.2: Type: text/html, Size: 1320 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-04  7:46   ` Renaud AUBIN
@ 2006-08-04  7:53     ` Renaud AUBIN
  2006-08-04  8:11       ` Renaud AUBIN
  0 siblings, 1 reply; 9+ messages in thread
From: Renaud AUBIN @ 2006-08-04  7:53 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 206 bytes --]

But there is a problem with \startformula[lucida] 1 \Gamma {\bfm \alpha
x} \stopformula i.e. the "x" is not in bold rm...

Renaud AUBIN a écrit :

>
> Good Morning Taco,
>
> It works, thanks...
>

[-- Attachment #1.2: Type: text/html, Size: 638 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-04  7:53     ` Renaud AUBIN
@ 2006-08-04  8:11       ` Renaud AUBIN
  0 siblings, 0 replies; 9+ messages in thread
From: Renaud AUBIN @ 2006-08-04  8:11 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 646 bytes --]

texfont prints out the typo error too (LucidaNewMath-Demibold)... How
can we change this ? (this font entry in texnansi-bh-lucida.map is
LucidaNewMath-Demibold)

Renaud AUBIN a écrit :

> But there is a problem with \startformula[lucida] 1 \Gamma {\bfm
> \alpha x} \stopformula i.e. the "x" is not in bold rm...
>
> Renaud AUBIN a écrit :
>
>>
>> Good Morning Taco,
>>
>> It works, thanks...
>>
>------------------------------------------------------------------------
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>  
>


[-- Attachment #1.2: Type: text/html, Size: 1389 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-04  3:33 Mixed Normal and Bold Math -- Problem with Lucida Renaud AUBIN
  2006-08-04  7:01 ` Taco Hoekwater
@ 2006-08-04 15:20 ` Renaud AUBIN
  2006-08-05  4:13 ` Mojca Miklavec
  2 siblings, 0 replies; 9+ messages in thread
From: Renaud AUBIN @ 2006-08-04 15:20 UTC (permalink / raw)



Hans, can you help on this one ?

After checking the lucida's afm, it appears that the correct name of
type-buy.tex's LucidaNewMath-DemiBold is LucidaNewMath-Demibold...
I have corrected type-buy.tex but \startformula {\bfm R} \stopformula is
LucidaNewMath-AltItalic... I have understood "Mixed Normal ... Math", I
should have LucidaNewMath-DemiBold... Right ?

As far as I understand, \bfm bolds the current math font... So, I have a
beginner's question, what's the best method to apply when one would
switch from bf to bi for example ?

Renaud

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-04  3:33 Mixed Normal and Bold Math -- Problem with Lucida Renaud AUBIN
  2006-08-04  7:01 ` Taco Hoekwater
  2006-08-04 15:20 ` Renaud AUBIN
@ 2006-08-05  4:13 ` Mojca Miklavec
  2006-08-05 11:20   ` Hans Hagen
  2 siblings, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2006-08-05  4:13 UTC (permalink / raw)
  Cc: Adam Lindsay

On 8/4/06, Renaud AUBIN wrote:
>
>  Hi all,
>
>  I use lucida for a document and now I need some bold math fonts so I have
> followed the instructions given in "This Way - Mixed Normal and Bold Math".
> The resulting test file is:
...

Apart from the problem that you have with Demibold:

I guess that bold math is still a weak point of ConTeXt (I might be
wrong, but last time when I was asking about bold math with iwona, I
got some answers/workarounds, but not really the definite answer how
to solve the problem - the best solution was to use own switch for
bold and cheat by switching to text mode, change typeface there and
switch to math mode again, with some care to properly handle
displaystyle, textstyle, scriptstyle, ...).

Bold math somehow works with CM, but when another font is used, it's a
pure confusion (or at least I can't handle the situation).

Adam wrote some patch at that time which never got into the core. As
far as I remember some bold math worked better, but \rm, \bi, ...
switches failed.

Mojca

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-05  4:13 ` Mojca Miklavec
@ 2006-08-05 11:20   ` Hans Hagen
  2006-08-06  7:15     ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2006-08-05 11:20 UTC (permalink / raw)
  Cc: Adam Lindsay

Mojca Miklavec wrote:
> On 8/4/06, Renaud AUBIN wrote:
>   
>>  Hi all,
>>
>>  I use lucida for a document and now I need some bold math fonts so I have
>> followed the instructions given in "This Way - Mixed Normal and Bold Math".
>> The resulting test file is:
>>     
> ...
>
> Apart from the problem that you have with Demibold:
>
> I guess that bold math is still a weak point of ConTeXt (I might be
> wrong, but last time when I was asking about bold math with iwona, I
>   
it's a matter of lack of tex families; once we have bold, something else 
has to be dropped

i can imagine a setup with bold and normal alongside but no slanted, 
italic, bolditalic then;

the best thing (nowadays) is to have two typefaces defined, one normal, 
and one bold

future versions of context may have more support (soon pdftex will have 
 >16 families)

btw, one of the problems is that several passed over the math list are 
made, which means that font switches are not treated as in text (think 
of \bf test \sl test)

(i dunno if that can be solved in future tex's)

Hans

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

* Re: Mixed Normal and Bold Math -- Problem with Lucida
  2006-08-05 11:20   ` Hans Hagen
@ 2006-08-06  7:15     ` Taco Hoekwater
  0 siblings, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2006-08-06  7:15 UTC (permalink / raw)
  Cc: Adam Lindsay


Hi,

Hans Hagen wrote:
> 
> it's a matter of lack of tex families; once we have bold, something else 
> has to be dropped

More precisely, here is the font family setup of ConTeXt
	
	\fam
	0     math roman (with uppercase greek)
         1     math italic
         2     math symbols
         3     math extension
         4     italic
         5     slanted
         6     bold
         7     --
         8     bold slanted
         9     bold italic
         10    smallcaps
         11    typeface (sans serif or typewriter or ..., text font)
         12    math symbols a (ams)
         13    math symbols b (ams)
         14    math symbols c (mathtime script)
         15    math symbols d (mathtime greek upright)

Only family 7 is really empty, and only 14 and 15 can easily be
redefined (\newfamily always returns 15)

> the best thing (nowadays) is to have two typefaces defined, one normal, 
> and one bold
> 
> future versions of context may have more support (soon pdftex will have 
>  >16 families)

256 families of fonts with 65536 possible characters each, just like
in Aleph.

> btw, one of the problems is that several passed over the math list are 
> made, which means that font switches are not treated as in text (think 
> of \bf test \sl test)
> 
> (i dunno if that can be solved in future tex's)

Not sure that would make sense. Font switches in math mode are in fact
different from ones in ordinary text. {\sl A} and {\bs A} may well have
completely a different meaning.

Cheers, Taco

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

end of thread, other threads:[~2006-08-06  7:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-04  3:33 Mixed Normal and Bold Math -- Problem with Lucida Renaud AUBIN
2006-08-04  7:01 ` Taco Hoekwater
2006-08-04  7:46   ` Renaud AUBIN
2006-08-04  7:53     ` Renaud AUBIN
2006-08-04  8:11       ` Renaud AUBIN
2006-08-04 15:20 ` Renaud AUBIN
2006-08-05  4:13 ` Mojca Miklavec
2006-08-05 11:20   ` Hans Hagen
2006-08-06  7:15     ` Taco Hoekwater

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