Bold Greek Math with Fourier Font
Hi all,
Does anyone know how to setup fourier to have boldfaced symbols (both
greek and roman) using the Fourier font? I've read through the
"Mixed Normal and Bold Math" doc, but I cannot seem to get bold to
work at all with the Fourier font. Heck, I cannot even get the
boldmath definition to stop substituting with cm!
I've changed 'tex/context/base/type-syn.tex' and
'tex/context/base/type-enc.tex' to provide boldmath/bfmath definitions
as below. Despite 3 hours of fiddling, I'm getting substitution with
computer modern when I try and the boldmath definition in test.tex
(below).
I hope this isn't a case of me not reading the docs carefully
enough... Any and all help greatly appreciated.
Cheers,
Randall
%%%%% START tex/context/base/type-enc.tex
...
% Fourier (Utopia)
\starttypescript [math] [fourier] [default,ec]
\definefontsynonym [Fourier-Math-Letters] [futr8t]
%\definefontsynonym [Fourier-Math-Letters] [futmi]
\definefontsynonym [Fourier-Math-Letters-Italic] [futmii]
\definefontsynonym [Fourier-Math-Symbols] [futsy]
\definefontsynonym [Fourier-Math-Extension] [fourier-mex]
\stoptypescript
\starttypescript [boldmath,bfmath] [fourier] [default,ec]
\definefontsynonym [Fourier-Math-Letters-Bold] [fourier-mlb]
\definefontsynonym [Fourier-Math-Letters-Italic-Bold] [fourier-mlitb]
\definefontsynonym [Fourier-Math-Symbols] [futsy]
\definefontsynonym [Fourier-Math-Extension] [fourier-mex]
\stoptypescript
% fourier virtual fonts:
% futb8c.vf futbi9d.vf futc9c.vf futr8t.vf futri8t.vf futroorn.vf
futsi9e.vf
% futb8t.vf futbi9e.vf futc9d.vf futr9c.vf futri9c.vf futrorn.vf
futso9c.vf
% futb9c.vf futbo8c.vf futc9e.vf futr9d.vf futri9d.vf futs9c.vf
futso9d.vf
% futb9d.vf futbo8t.vf futcorn.vf futr9e.vf futri9e.vf futs9d.vf
futso9e.vf
% futb9e.vf futbo9c.vf futmi.vf futrc8t.vf futro8c.vf futs9e.vf
futsoorn.vf
% futbc8t.vf futbo9d.vf futmib.vf futrc9d.vf futro8t.vf futsc9d.vf
futsorn.vf
% futbi8c.vf futbo9e.vf futmii.vf futrc9e.vf futro9c.vf futsc9e.vf futsy.vf
% futbi8t.vf futboorn.vf futmiib.vf futrd8t.vf futro9d.vf futsi9c.vf
% futbi9c.vf futborn.vf futr8c.vf futri8c.vf futro9e.vf futsi9d.vf
% map file has:
%fourier-bb Fourier-Math-BlackBoard
Le 8/07/2005 20:16, Randall Skelton a dit :
Hi all,
Does anyone know how to setup fourier to have boldfaced symbols (both greek and roman) using the Fourier font? I've read through the "Mixed Normal and Bold Math" doc, but I cannot seem to get bold to work at all with the Fourier font. Heck, I cannot even get the boldmath definition to stop substituting with cm!
I know fourier very well, but I am *not* a context user... I think you have to modify type-spe.tex \starttypescript [math,boldmath] [fourier] [special] \usemathcollection[fou] \stoptypescript %% Was %% \starttypescript [math] [fourier] [special] %% \usemathcollection[fou] %% \stoptypescript Then just add in type-enc.tex \starttypescript [boldmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript in type-sync.tex \starttypescript [boldmath] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript It seems to work, but it is not strongly tested... -- Michel Bovani
Many thanks for the reply Michel, it seems I was referencing the fonts incorrectly in type-enc ( fourier-mlb instead of futb8t). Alas, I'm still having some trouble as I cannot mix bold and non-bold fonts as per Hans' ThisWay doc. It all looks so simple on paper... I've added some extra 'bfmath' tags to what you sent so I have: in type-enc.tex \starttypescript [boldmath,bfmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript in type-sync.tex \starttypescript [boldmath] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript \starttypescript [bfmath] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript I've included a quick test below. When I run it, I get all the fonts being bold and some Greek symbols are missing after the \bfm command. Any ideas? Cheers, Randall %%%% START: test.tex \definetypeface [mainface] [rm] [serif] [fourier] [default] \definetypeface [mainface] [tt] [mono] [fourier] [default] \definetypeface [mainface] [ss] [sans] [fourier] [default] \definetypeface [mainface] [mm] [math] [fourier] [default] \definetypeface [boldmath] [rm] [serif] [fourier] [default] \definetypeface [boldmath] [tt] [mono] [fourier] [default] \definetypeface [boldmath] [ss] [sans] [fourier] [default] \definetypeface [boldmath] [mm] [boldmath] [fourier] [default] \definetypeface [mainface] [mm] [bfmath] [fourier] [default] \definetypeface [boldmath] [mm] [bfmath] [fourier] [default] \setupformulas [method=bold] \setupbodyfont [mainface] \starttext \formula {1 \beta \Gamma = \bfm 1 \beta \Gamma x z} \formula[mainface]{1 \beta \Gamma = \bfm 1 \beta \Gamma x' z} \formula[boldmath]{1 \beta \Gamma = \bfm 1 \beta \Gamma x' z} \formula[mainface]{1 \beta \Gamma = {\bfm 1 \beta \Gamma x'}z} \formula[boldmath]{1 \beta \Gamma = {\bfm 1 \beta \Gamma x'} z} \stoptext
Randall Skelton said this at Sat, 9 Jul 2005 14:57:29 -0400:
\starttypescript [bfmath] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript
I've included a quick test below. When I run it, I get all the fonts being bold and some Greek symbols are missing after the \bfm command.
Any ideas?
Yes. That last typescript you list should be: \starttypescript [bfmath] [fourier] [name] \definefontsynonym [MathRomanBold] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalicBold] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbolBold] [Fourier-Math-Symbols] \definefontsynonym [MathExtensionBold] [Fourier-Math-Extension] \stoptypescript You were redefining the normal math options to be the bold fonts. The above typescript uses the named MathBlahBold slots, to be called with \bfm. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thank you Adam! My problem of the perpetual bold characters is now solved. My *last* problem is that I get strange characters in place of bold upper-case Greek characters (\Gamma, \Xi, etc)? The lower-case Greeks work fine. This has all the halmarks of an encoding problem but I'm not entirely sure where to look? Do I need to edit math-fou.tex? As long as I don't need to change font-bfm.tex... Many thanks for the helpful replies. Cheers, Randall In type-enc.tex: \starttypescript [math] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec] %\definefontsynonym [Fourier-Math-Letters] [futmi] \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript \starttypescript [boldmath,bfmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript In type-syn.tex: \starttypescript [boldmath] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript \starttypescript [bfmath] [fourier] [name] \definefontsynonym [MathRomanBold] [Fourier-Math-Letters-Bold] \definefontsynonym [MathItalicBold] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbolBold] [Fourier-Math-Symbols] \definefontsynonym [MathExtensionBold] [Fourier-Math-Extension] \stoptypescript In type-exa.tex: \starttypescript [fourier] %[texnansi,ec,8r] \definetypeface [fourier] [rm] [serif] [fourier] [default] %[encoding=\typescripttwo] \definetypeface [fourier] [tt] [mono] [fourier] [default] %[encoding=\typescripttwo] \definetypeface [fourier] [ss] [sans] [fourier] [default] %[encoding=\typescripttwo] \stoptypescript \starttypescript [fourier] %[texnansi,ec,8r] \definetypeface [fourier] [mm] [math] [fourier] [default] %[encoding=\typescripttwo] \stoptypescript \starttypescript [fourierboldmath] %[texnansi,ec,8r] \definetypeface [fourierboldmath] [rm] [serif] [fourier] [default] %[encoding=\typescripttwo] % ? \definetypeface [fourierboldmath] [tt] [mono] [fourier] [default] %[encoding=\typescripttwo] % ? \definetypeface [fourierboldmath] [ss] [sans] [fourier] [default] %[encoding=\typescripttwo] % ? \definetypeface [fourierboldmath] [mm] [boldmath] [fourier] [default] %[encoding=\typescripttwo] \stoptypescript \starttypescript [fourierbfm,fourierboldmath] %[texnansi,ec,8r] \definetypeface [fourier] [mm] [bfmath] [fourier] [default] %[encoding=\typescripttwo] \definetypeface [fourierboldmath] [mm] [bfmath] [fourier] [default] %[encoding=\typescripttwo] \stoptypescript \starttypescript [fourier,fourierabfm,fourierboldmath] %[texnansi,ec,8r] \usemathcollection[fou] \quittypescriptscanning \stoptypescript %%%% START: test.tex \usetypescript[fourier] \usetypescript[fourierbfm] \usetypescript[fourierboldmath] \setupformulas[method=bold] \setupbodyfont[fourier] \starttext More testing... \formula[fourier] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha \beta \Gamma \sigma \Xi 2x} \formula[fourier] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x {\bfm \alpha \beta \Gamma \sigma \Xi} 2x} \formula[fourierboldmath] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \bfm \alpha \beta \Gamma \sigma \Xi 2x} \formula[fourierboldmath] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha {\bfm \beta \Gamma} \sigma \Xi 2x} \stoptext %%%% END: test.tex
Hi all, A pdf of my output can be found at: http://brutus.uwaterloo.ca/~skelton/ConTeX/test.pdf Despite more fiddling, I'm at a loss as to what has happend to the capital greek characters when using bold math? Cheers, Randall NB: I entered: \usetypescript[fourier] \usetypescript[fourierbfm] \usetypescript[fourierboldmath] \setupformulas[method=bold] \setupbodyfont[fourier] \starttext More testing... \formula[fourier] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha \beta \Gamma \sigma \Xi 2x} \formula[fourier] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x {\bfm \alpha \beta \Gamma \sigma \Xi} 2x} \formula[fourierboldmath] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \bfm \alpha \beta \Gamma \sigma \Xi 2x} \formula[fourierboldmath] {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha {\bfm \beta \Gamma} \sigma \Xi 2x} \formula[fourier] {\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi \partial} \formula[fourier] {\bfm \Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi \partial} \formula[fourierboldmath] {\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi \partial} \formula[fourierboldmath] {\bfm \Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi \partial} \stoptext
I think I've found my problem (finally). The problem is in 'type-enc.tex' I referred to the standard text fonts for Fourier-Math-Letters and Fourier-Math-Letters-Bold instead of the true math fonts. I believe this is how ConTeXt is configured in its default... In any case, 'type-enc.tex' should contain: \starttypescript [math] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters] [futmi] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript \starttypescript [boldmath,bfmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futmib] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript The substitution problem can be seen quite clearly from: \starttext \loadmapfile[fourier] % Original definition \definefontsynonym [Fourier-Math-Letters] [futr8t] \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \section{Fourier-Math-Letters} \showfont[Fourier-Math-Letters] \section{Fourier-Math-Letters-Italic} \showfont[Fourier-Math-Letters-Italic] \section{Fourier-Math-Letters-Bold} \showfont[Fourier-Math-Letters-Bold] \section{Fourier-Math-Letters-Italic-Bold} \showfont[Fourier-Math-Letters-Italic-Bold] \section{Fourier-Math-Symbols} \showfont[Fourier-Math-Symbols] \section{Fourier-Math-Extension} \showfont[Fourier-Math-Extension] % What about these fonts? \section{futmi} \showfont[futmi] \section{futmib} \showfont[futmib] \stoptext Many thanks to those who replied, Randall
Le 11/07/2005 17:41, Randall Skelton a dit :
I think I've found my problem (finally). The problem is in 'type-enc.tex' I referred to the standard text fonts for Fourier-Math-Letters and Fourier-Math-Letters-Bold instead of the true math fonts. I believe this is how ConTeXt is configured in its default... In any case, 'type-enc.tex' should contain:
\starttypescript [math] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters] [futmi] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript
\starttypescript [boldmath,bfmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futmib] [encoding=ec] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript
Hmm... As I said, I don't know much about context. But consider that Math-Letters is an "operator" font. If you choose futmi as your opérator font, something like \cos will be italicised ! Now (one of) the difference between fourier and computer modern is that capital greek is in the "italic" font not in the operators font. This is handled in math-fou.tex: \definemathsymbol [Gamma] [alpha] [mi] ["00] .... Note that futmi, and futmii (or futmib futmiib) are two versions of the same font (same encoding): the difference is that in futmmii all is slanted (even greek caps), and in futmii caps are upright (roman and greek) and lowercase are slanted. If you want command definitions in math-fou.tex to be used even in boldmath, you must change type-spe.tex by referencing the fou math collection in boldmath too. -- Michel Bovani
Many thanks for pointing this out Michel. I must admit that this is proving to be much more complicated than I thought... Reading Hans' "ThisWay" document makes it appear that getting usable bold-faced math fonts is only a few lines of definitions... perhaps I should just look at buying the lucida collection. For the moment, I've settled on a compromise of using: \definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec] and \definefontsynonym [Fourier-Math-Letters-Bold] [futmib] [encoding=ec] With this I can get bold greek symbols (both upper and lower case) but as you pointed out, operators will be italicized if one isn't careful. Sigh.
Now (one of) the difference between fourier and computer modern is that capital greek is in the "italic" font not in the operators font.
This is handled in math-fou.tex:
\definemathsymbol [Gamma] [alpha] [mi] ["00] ....
In an earlier reply, you suggest that I define: \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec] but doing so doesn't work as the capital greek symbols... I'm a little confused why the substitutions defined in math-fou.tex are not applied in this case? I need bold \Gamma and \Xi characters in my equations which is why I began looking at all this. I did read through math-fou.tex and mat-lbr.tex but didn't follow some of the definitions. I don't understand why the \definemathsymbol definitions are not applied in this case? I tried to find insight in math-lbr.tex but just got confused.
Note that futmi, and futmii (or futmib futmiib) are two versions of the same font (same encoding): the difference is that in futmmii all is slanted (even greek caps), and in futmii caps are upright (roman and greek) and lowercase are slanted.
I finally realized that when I remembered the existance of \showfont earlier today. This also helped me see where the \definemathsymbol statements in math-fou.tex come from.
If you want command definitions in math-fou.tex to be used even in boldmath, you must change type-spe.tex by referencing the fou math collection in boldmath too.
I'm not sure I follow. My type-spe.tex contains: \starttypescript [math,boldmath] [fourier] [special] \usemathcollection[fou] \stoptypescript Many thanks for your help. Randall
Le 12/07/2005 3:08, Randall Skelton a dit :
Many thanks for pointing this out Michel. I must admit that this is proving to be much more complicated than I thought... Reading Hans' "ThisWay" document makes it appear that getting usable bold-faced math fonts is only a few lines of definitions... perhaps I should just look at buying the lucida collection.
As fourier provides bold fonts, no doubt that a context expert will be able to set it correctly for boldmath... But note that there are no bold version of symbols and extension fonts...
For the moment, I've settled on a compromise of using:
\definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec]
and
\definefontsynonym [Fourier-Math-Letters-Bold] [futmib] [encoding=ec]
With this I can get bold greek symbols (both upper and lower case) but as you pointed out, operators will be italicized if one isn't careful. Sigh.
At my home it works with \definefontsynonym [Fourier-Math-Letters-Bold] [futmb8t] [encoding=ec]
Now (one of) the difference between fourier and computer modern is that capital greek is in the "italic" font not in the operators font.
This is handled in math-fou.tex:
\definemathsymbol [Gamma] [alpha] [mi] ["00] ....
In an earlier reply, you suggest that I define:
\definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec]
but doing so doesn't work as the capital greek symbols... I'm a little confused why the substitutions defined in math-fou.tex are not applied in this case?
They should be (so it is at my home!)
I finally realized that when I remembered the existance of \showfont earlier today. This also helped me see where the \definemathsymbol statements in math-fou.tex come from.
If you want command definitions in math-fou.tex to be used even in boldmath, you must change type-spe.tex by referencing the fou math collection in boldmath too.
I'm not sure I follow. My type-spe.tex contains:
\starttypescript [math,boldmath] [fourier] [special] \usemathcollection[fou] \stoptypescript
? I make private (in the working directory) modified version of type-syn, type-spe, type-enc, and math-fou type-spe : added "boldmath" \starttypescript [math,boldmath] [fourier] [special] \usemathcollection[fou] \stoptypescript type-syn : added \starttypescript [boldmath] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold] \definefontsynonym [MathGamma] [Fourier-Math-Other-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript and just a new line in \starttypescript [math] [fourier] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters] \definefontsynonym [MathGamma] [Fourier-Math-Other-Letters] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension] \stoptypescript type-enc : added \starttypescript [boldmath] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec] \definefontsynonym [Fourier-Math-Other-Letters-Bold] [futmib] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript and a new line in \starttypescript [math] [fourier] [default,ec] \definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec] \definefontsynonym [Fourier-Math-Other-Letters] [futmi] \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Symbols] [futsy] \definefontsynonym [Fourier-Math-Extension] [fourier-mex] \stoptypescript The two new lines allow to have a choice beetween sloped and upright greek in math-fou For instance, if you want upright capital letters, just say [mc] instead of [mi]: \definemathsymbol [Gamma] [alpha] [mc] ["00] \definemathsymbol [Delta] [alpha] [mc] ["01] etc. You can also define \alphaup, \betaup, etc. Test sourcefile \usetypescript [fourier] [\defaultencoding] \setupbodyfont [fourier] \definetypeface [foo] [mm] [boldmath] [fourier] [default] \starttext This is a silly test that is taking way too long! \startformula x = \Gamma + \Delta + \alpha + \delta + \zeta \stopformula \startformula[foo] x = \Gamma + \Delta + \alpha + \delta + \zeta \stopformula \stoptext Could you carefully test it at your home? I attach the pdf. -- Michel Bovani
Hi all, Can someone explain what the difference between 'ord' and 'alpha' are in the following two lines is? \definemathsymbol [Gamma] [ord] [mc] ["00] \definemathsymbol [Gamma] [alpha] [mi] ["00] Note that using the first line, in place of the second in math-fou.tex allows me to get what is shown in the ThisWay document on bold math. That is, all calitalized Greek characters are upright, not slanted and I no longer have missing characters. Cheers, Randall
participants (4)
-
Adam Lindsay
-
Michel Bovani
-
Michel Bovani
-
Randall Skelton