On 17 Jun 2017, at 07:36, Pablo Rodriguez
wrote: On 06/16/2017 10:07 PM, Hans Γ berg wrote:
On 16 Jun 2017, at 21:46, Pablo Rodriguez
wrote: [...] I donβt do math (at all, not only with ConTeXt), but the following command seems to work: \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
Great! That seems to work in \tt, but for some reason not with \starttyping. Probably one should set the font, But I can't find info about it.
This is my sample:
\definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes]
\definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
\setupbodyfont[mainface]
\setupmathematics[lcgreek=normal, default=normal]
\starttext \startformula π¨ β (π© β π¨) \stopformula
\starttyping axiom B1. π¨ β (π© β π¨). \stoptyping
{\tt axiom A1. π¨ β (π© β π¨).}
With latest beta (from 2017.06.15 22:10) and LuaTeX-1.05.0, I get three formulas typeset with Pagella Math. (Output attached.)
If this doesnβt work with TeX Live 2017, you might try the latest beta from the ConTeXt Suite.
Yes, that is the problem. It works fine with latest beta. I found a strange bug with the \tt command: when copying from the PDF, the spaces disappear. With your header above, I get (the comments is the text copy from the PDF): {\tt axiom A1. π¨ β π©.} %axiom A1. π¨ β π©. {\tt axiom A1. π¨ β π© Ξ±.} %axiomA1. π¨βπ©Ξ±. That is, when adding a single symbol, above "Ξ±", but it does not seem to matter which, the spaces disappear. It does not happen with \starttext, though.