On Thu, Jan 01, 2015 at 08:58:11AM -0500, John Kitzmiller wrote:On Jan 1, 2015, at 6:00 AM, Kumar Appaiah wrote:
I am trying to use the simplefonts approach to get Euler for math,
along with TeX Gyre fonts for text.
Here is setup magic from Hans and Aditya from August 2013:
\usetypescriptfile[euler]
\starttypescript[myfamily]
\definetypeface[myfamily][rm][serif][pagella][default]
\definetypeface[myfamily][ss][sans] [dejavu][default]
\definetypeface[myfamily][tt][mono] [inconsolata][default]
\definetypeface[myfamily][mm][math] [pagellaovereuler][default]
\stoptypescript
\usetypescript[myfamily]
\setupbodyfont[myfamily]
\appendtoks \rm \to \everymathematics
\setupmathematics
[lcgreek=normal, ucgreek=normal]
One can change the families, e.g. schola for pagella, etc., but I think the last [pagellaovereuler] and the rest has to stay.
Sadly, I get this:INPUT FILE==========\starttypescript[myfamily]\definetypeface[myfamily][rm][serif][pagella][default]\definetypeface[myfamily][ss][sans] [dejavu][default]\definetypeface[myfamily][tt][mono] [inconsolata][default]\definetypeface[myfamily][mm][math] [pagellaovereuler][default]\stoptypescript\usetypescript[myfamily]\setupbodyfont[myfamily]\appendtoks \rm \to \everymathematics\setupmathematics[lcgreek=normal, ucgreek=normal]\starttext\startformulax = y + z\stopformula\stoptextERROR OUTPUT============tex error > error on line 18 in file /tmp/test.tex: ! Matherror: parameter \Umathquad\displaystyle is not set\stopdisplaymath ...math \Ucheckedstopdisplaymath \par \ifvmode \ifcase \c_s...\strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge...l.18 \stopformula89 \usetypescript[myfamily]10 \setupbodyfont[myfamily]11 \appendtoks \rm \to \everymathematics12 \setupmathematics13 [lcgreek=normal, ucgreek=normal]1415 \starttext16 \startformula17 x = y + z18 >> \stopformula19 \stoptext20What am I missing here?
You don’t have the opentype version [1] of the euler math font on your
system which is needed when you either the \definefontfamily command
or the pagellaovereuler typescript.
When you install the font on your system you can use it as shown
in the following example.
\definefontfamily [myfamily] [serif] [Linux Libertine O]
\definefontfamily [myfamily] [math] [Neo Euler]
\setupbodyfont [myfamily]
\starttext
\m{c^2 = a^2 + b^2}
\stoptext
Wolfgang