Re: [NTG-context] Using Euler with simplefonts

2015-01-05 Thread Kumar Appaiah
On Thu, Jan 01, 2015 at 03:52:53PM +0100, Wolfgang Schuster wrote:
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
[1] [2]https://github.com/khaledhosny/euler-otf

Indeed, getting the OTF fixed all the issues. Thanks Wolfgang and John!

Kumar
-- 
Kumar Appaiah
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Using Euler with simplefonts

2015-01-01 Thread Kumar Appaiah
Hi.

I am trying to use the simplefonts approach to get Euler for math,
along with TeX Gyre fonts for text. I've looked at some of the past
list archives and I haven't yet been able to figure this out.

I use TeXLive, and my context is 2014.05.21.20140528-1 (Debian
version). Here is the font blurb:

\definefontfamily [myfamily] [serif] [Linux Libertine O]
\definefontfamily [myfamily] [math] [Tex Gyre Schola Math]

Now, I have tried changing the TeX Gyre Schola Math to Neo Euler,
Euler and some other variants, but it doesn't work.

I do have the Euler VM fonts installed on my system. I have also tried
the example program given in http://www.ntg.nl/maps/32/06.pdf

\definetypeface[eulermath][mm][math][euler][euler][rscale=1]
\setupbodyfont [eulermath]
\starttext
\showmathcharacters
\stoptext

This works with texexec, but with context, it chokes.

Could you please provide me some pointers?

Thanks.

Kumar
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Using Euler with simplefonts

2015-01-01 Thread John Kitzmiller
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.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Using Euler with simplefonts

2015-01-01 Thread Kumar Appaiah
On Thu, Jan 01, 2015 at 03:52:53PM +0100, Wolfgang Schuster wrote:
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
[1] [2]https://github.com/khaledhosny/euler-otf

Indeed, getting the OTF fixed all the issues. Thanks Wolfgang and John!

Kumar
-- 
Kumar Appaiah
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Using Euler with simplefonts

2015-01-01 Thread Kumar Appaiah
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
\startformula
x = y + z
\stopformula
\stoptext

ERROR OUTPUT

tex errorerror on line 18 in file /tmp/test.tex: ! Math
error: 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 \stopformula


 8
 9 \usetypescript[myfamily]
10 \setupbodyfont[myfamily]
11 \appendtoks \rm \to \everymathematics
12 \setupmathematics
13  [lcgreek=normal, ucgreek=normal]
14
15 \starttext
16 \startformula
17 x = y + z
18   \stopformula
19 \stoptext
20

What am I missing here?

Thanks.

Kumar
-- 
Kumar Appaiah
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Using Euler with simplefonts

2015-01-01 Thread Wolfgang Schuster

 Am 01.01.2015 um 15:42 schrieb Kumar Appaiah a.ku...@alumni.iitm.ac.in:
 
 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
 \startformula
 x = y + z
 \stopformula
 \stoptext
 
 ERROR OUTPUT
 
 tex errorerror on line 18 in file /tmp/test.tex: ! Math
 error: 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 \stopformula
 
 
 8
 9 \usetypescript[myfamily]
 10 \setupbodyfont[myfamily]
 11 \appendtoks \rm \to \everymathematics
 12 \setupmathematics
 13  [lcgreek=normal, ucgreek=normal]
 14
 15 \starttext
 16 \startformula
 17 x = y + z
 18   \stopformula
 19 \stoptext
 20
 
 What 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

[1] https://github.com/khaledhosny/euler-otf 
https://github.com/khaledhosny/euler-otf

Wolfgang___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___