ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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