* math font problem
@ 2017-08-09 22:16 Alan Bowen
2017-08-10 8:03 ` Hans Hagen
2017-08-10 8:08 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Alan Bowen @ 2017-08-09 22:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1738 bytes --]
The aim is to get as much math using the Brill font as I can.
I currently have:
\definefontfamily[mainface][serif][Brill] %[TeX Gyre Termes]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
]
\definefallbackfamily[mainface][mm][TeX Gyre Pagella]
[preset=math:digitsnormal,features=f:oldstyle,scale=0.94]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:uppercasegreekitalic]
\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]
\setupmathematics[ucgreek=normal,lcgreek=italic]
\setupbodyfont[mainface,10pt]
\starttext
0123456789
math: \m{0123456789}
δ\quad\emph{δ}
math: \m{\delta} \m{δ}\quad should be slanted
π\quad\emph{π}
math: \m{\pi} \m{π}\quad should be upright but slanted will do
Π\quad\emph{ Π}
math: \m{\Pi} \m{ Π}\quad should be upright
\m{2+2=4}
\startformula
\sin{α}={{ΑΒ}\over{AC}}=\sin{\alpha}
\stopformula
\stoptext
Two problems:
1. I am not getting slanted lowercase Greek in mathmode.
2. I should like to have all the math lettering in the Brill font. But
simply setting the Brill font as my math mainface runs into more problems—I
still do not get lowercase Greek and it not only messes up 2+2 =4 , it also
reports the error—Math error: parameter \Umathquad\displaystyle is not
set—when it comes to the display math.
My efforts to figure this out have not been successful thus far, so any
suggestions will be most welcome.
Alan
[-- Attachment #1.2: Type: text/html, Size: 4485 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: math font problem
2017-08-09 22:16 math font problem Alan Bowen
@ 2017-08-10 8:03 ` Hans Hagen
2017-08-10 8:08 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2017-08-10 8:03 UTC (permalink / raw)
To: ntg-context
On 8/10/2017 12:16 AM, Alan Bowen wrote:
> 2. I should like to have all the math lettering in the Brill font. But
> simply setting the Brill font as my math mainface runs into more
> problems—I still do not get lowercase Greek and it not only messes up
> 2+2 =4 , it also reports the error—Math error: parameter
> \Umathquad\displaystyle is not set—when it comes to the display math.
> My efforts to figure this out have not been successful thus far, so any
> suggestions will be most welcome.
you really have to start with a math font because such a font has more
properties than just a few alphabetic characters
then you can overload characters but you need to use the proper code
points for them (unicode ranges with sometimes holes)
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: math font problem
2017-08-09 22:16 math font problem Alan Bowen
2017-08-10 8:03 ` Hans Hagen
@ 2017-08-10 8:08 ` Hans Hagen
2017-08-10 13:38 ` Alan Bowen
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2017-08-10 8:08 UTC (permalink / raw)
To: ntg-context
On 8/10/2017 12:16 AM, Alan Bowen wrote:
> 1. I am not getting slanted lowercase Greek in mathmode.
because the regular brill is not italic, so ...
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:uppercasegreekitalic]
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: math font problem
2017-08-10 8:08 ` Hans Hagen
@ 2017-08-10 13:38 ` Alan Bowen
0 siblings, 0 replies; 4+ messages in thread
From: Alan Bowen @ 2017-08-10 13:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1630 bytes --]
Many thanks, Hans, for both tips. I have made the Brill font my math
fallback for the letters and numerals, and fixed the name of the Brill
italic. And it looks good!
Alan
On Thu, Aug 10, 2017 at 4:08 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 8/10/2017 12:16 AM, Alan Bowen wrote:
>
> 1. I am not getting slanted lowercase Greek in mathmode.
>>
>
> because the regular brill is not italic, so ...
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:lowercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:lowercasegreekitalic]
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:uppercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:uppercasegreekitalic]
>
>
> 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/list
> info/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ____________________________________________________________
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 3174 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-10 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-09 22:16 math font problem Alan Bowen
2017-08-10 8:03 ` Hans Hagen
2017-08-10 8:08 ` Hans Hagen
2017-08-10 13:38 ` Alan Bowen
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).