ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* math and palatino
@ 2009-06-18  3:00 Idris Samawi Hamid ادريس سماوي حامد
  2009-06-18  8:03 ` Aditya Mahajan
  0 siblings, 1 reply; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-06-18  3:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear gang,
[mkiv only]

What is the best available math font for use with Pagella/Palatino? [Hint:  
it's not LM] I had to roll my own typescript so what I need to fill in is  
the commented line below

\definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] %  
[pagella_arabic]
% \definetypeface [pagella_ar] [mm] [math]  [palatino]       [default]

Uncommenting the above gives me an incomplete math font that does not look  
good. Any ideas on getting this right? Is there an otf euler option?

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18  3:00 math and palatino Idris Samawi Hamid ادريس سماوي حامد
@ 2009-06-18  8:03 ` Aditya Mahajan
  2009-06-18  8:22   ` Johan Sandblom
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Aditya Mahajan @ 2009-06-18  8:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1709 bytes --]

On Wed, 17 Jun 2009, Idris Samawi Hamid ادريس سماوي حامد wrote:

> Dear gang,
> [mkiv only]
>
> What is the best available math font for use with Pagella/Palatino?

The math fonts compatible with Palatino are px math and math paza ConTeXt 
only has support for px math.

> [Hint: 
> it's not LM] I had to roll my own typescript so what I need to fill in is the 
> commented line below
>
> \definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] % [pagella_arabic]
> % \definetypeface [pagella_ar] [mm] [math]  [palatino]       [default]
>
> Uncommenting the above gives me an incomplete math font


Currently, no math font in mkiv is "complete". Which specific glyphs are 
missing for you?

The easiest opiton is to use asana math, which is an otf math font based 
on px fonts.

\starttypescript [math] [asana] [name]
     \definefontsynonym [MathRoman] [name:Asana-Math] [features=math\mathsizesuffix]
\stoptypescript

and then

\definetypeface [pagella_ar] [mm] [math]  [asana]       [default]

> that does not look good. Any ideas on getting this right?

I also find px math ugly (although I did use it for my thesis). math pazo 
is not much better, it uses most of the symbols from cm. There is a 
commerical math from micropress that is supposed to be compatible with 
palatino, but I have never used it myself.

> Is there an otf euler option?

No. Also keep in mind that euler is no where close to being a complete 
math font. Mkii used a virtual font that took missing symbols from px 
math and cm.

I have a local half baked support for Euler, which uses missing symbols 
from iwona. I can send the patch if you want to experiment with it.

Aditya

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18  8:03 ` Aditya Mahajan
@ 2009-06-18  8:22   ` Johan Sandblom
  2009-06-18  8:59     ` Aditya Mahajan
  2009-06-18 13:46   ` Idris Samawi Hamid ادريس سماوي حامد
  2009-06-18 14:09   ` Idris Samawi Hamid ادريس سماوي حامد
  2 siblings, 1 reply; 10+ messages in thread
From: Johan Sandblom @ 2009-06-18  8:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> Is there an otf euler option?
>
> No. Also keep in mind that euler is no where close to being a complete math
> font. Mkii used a virtual font that took missing symbols from px math and
> cm.
>
> I have a local half baked support for Euler, which uses missing symbols from
> iwona. I can send the patch if you want to experiment with it.


I would love that as well. Is it on the wiki?

Johan


> Aditya
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
>



-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18  8:22   ` Johan Sandblom
@ 2009-06-18  8:59     ` Aditya Mahajan
  0 siblings, 0 replies; 10+ messages in thread
From: Aditya Mahajan @ 2009-06-18  8:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 18 Jun 2009, Johan Sandblom wrote:

>>> Is there an otf euler option?
>>
>> No. Also keep in mind that euler is no where close to being a complete math
>> font. Mkii used a virtual font that took missing symbols from px math and
>> cm.
>>
>> I have a local half baked support for Euler, which uses missing symbols from
>> iwona. I can send the patch if you want to experiment with it.
>
>
> I would love that as well. Is it on the wiki?

http://github.com/adityam/context-math/commit/ba9c49b5ac7c19900d851c1bcbbde599f672acd4

Keep in mind that this is/was an experiment. I am still trying to 
understand how to create virtual fonts on the fly. In order to use this, 
you need

\starttypescript [math][euler][all]
     \definefontsynonym[MathRoman][euler@euler-math]
     \loadmapfile[original-ams-euler.map]
     \loadmapfile[iwona-ex.map]
     \loadmapfile[iwona-sy.map]
\stoptypescript

then

\definetypescript[whatever][mm][euler][default][text=rm]

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18  8:03 ` Aditya Mahajan
  2009-06-18  8:22   ` Johan Sandblom
@ 2009-06-18 13:46   ` Idris Samawi Hamid ادريس سماوي حامد
  2009-06-18 16:06     ` Aditya Mahajan
  2009-06-18 14:09   ` Idris Samawi Hamid ادريس سماوي حامد
  2 siblings, 1 reply; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-06-18 13:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Aditya,

On Thu, 18 Jun 2009 02:03:44 -0600, Aditya Mahajan <adityam@umich.edu>  
wrote:

> The math fonts compatible with Palatino are px math and math paza ConTeXt
> only has support for px math.

ok, good to know... [I rarely use math these past few years]

>> [Hint:
>> it's not LM] I had to roll my own typescript so what I need to fill in  
>> is the
>> commented line below
>>
>> \definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] %  
>> [pagella_arabic]
>> % \definetypeface [pagella_ar] [mm] [math]  [palatino]       [default]
>>
>> Uncommenting the above gives me an incomplete math font
>
>
> Currently, no math font in mkiv is "complete". Which specific glyphs are
> missing for you?

\alpha

> The easiest opiton is to use asana math, which is an otf math font based
> on px fonts.
>
> \starttypescript [math] [asana] [name]
>      \definefontsynonym [MathRoman] [name:Asana-Math]  
> [features=math\mathsizesuffix]
> \stoptypescript
>
> and then
>
> \definetypeface [pagella_ar] [mm] [math]  [asana]       [default]

LuaTeX warning (file  
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2  
Charstring Parser: Unknown charstring operator: 0x00

!LuaTeX error (file  
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2  
Charstring Parser: Parsing charstring failed: (status=-1, stack=0)
  ==> Fatal error occurred, no output PDF file produced!

Have any of you run into this before?

If this is a showstopper, then a fallback will have to do. Have any of you  
made fallbacks for math fonts? Are there any subtleties compared to  
regular fonts? What is the unicode slot for math \alpha?

>> that does not look good. Any ideas on getting this right?
>
> I also find px math ugly (although I did use it for my thesis). math pazo
> is not much better, it uses most of the symbols from cm. There is a
> commerical math from micropress that is supposed to be compatible with
> palatino, but I have never used it myself.
>
>> Is there an otf euler option?
>
> No. Also keep in mind that euler is no where close to being a complete
> math font. Mkii used a virtual font that took missing symbols from px
> math and cm.
>
> I have a local half baked support for Euler, which uses missing symbols
> from iwona. I can send the patch if you want to experiment with it.

Thanks! time is very short, although I like Euler and think it would work  
for palatino... maybe we need to get the gyre people on it for the  
future:-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18  8:03 ` Aditya Mahajan
  2009-06-18  8:22   ` Johan Sandblom
  2009-06-18 13:46   ` Idris Samawi Hamid ادريس سماوي حامد
@ 2009-06-18 14:09   ` Idris Samawi Hamid ادريس سماوي حامد
  2 siblings, 0 replies; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-06-18 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 18 Jun 2009 02:03:44 -0600, Aditya Mahajan <adityam@umich.edu>  
wrote:

>> What is the best available math font for use with Pagella/Palatino?
>
> The math fonts compatible with Palatino are px math and math paza ConTeXt
> only has support for px math.

Turns out that cambria is preset in mkiv and works, so I'll use that for  
now. I filed a report about the asana error so hopefully that will be  
solved as well.

[I use math so little I had completely forgotten about cambria].

Thanks, Aditya!

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18 13:46   ` Idris Samawi Hamid ادريس سماوي حامد
@ 2009-06-18 16:06     ` Aditya Mahajan
  2009-06-18 22:16       ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 10+ messages in thread
From: Aditya Mahajan @ 2009-06-18 16:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1476 bytes --]

On Thu, 18 Jun 2009, Idris Samawi Hamid ادريس سماوي حامد wrote:

>> The easiest opiton is to use asana math, which is an otf math font based
>> on px fonts.
>> 
>> \starttypescript [math] [asana] [name]
>>     \definefontsynonym [MathRoman] [name:Asana-Math] 
>> [features=math\mathsizesuffix]
>> \stoptypescript
>> 
>> and then
>> 
>> \definetypeface [pagella_ar] [mm] [math]  [asana]       [default]
>
> LuaTeX warning (file 
> C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2 
> Charstring Parser: Unknown charstring operator: 0x00
>
> !LuaTeX error (file 
> C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2 
> Charstring Parser: Parsing charstring failed: (status=-1, stack=0)
> ==> Fatal error occurred, no output PDF file produced!
>
> Have any of you run into this before?

No. I am using the minimals from 2009.05.26, and asana math works fine. 
Are you using the latest version of the font from 
http://openfontlibrary.org/media/files/asyropoulos/219

> If this is a showstopper, then a fallback will have to do. Have any of you 
> made fallbacks for math fonts? Are there any subtleties compared to regular 
> fonts? What is the unicode slot for math \alpha?

Basic greek should work in math. I cannot get the latest minimals right 
now (slow internet connection), but px math and lm math use the same code 
to generate virtual fonts, so px math should work in the latest minimals.

Aditya

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18 16:06     ` Aditya Mahajan
@ 2009-06-18 22:16       ` Idris Samawi Hamid ادريس سماوي حامد
  2009-06-19  4:40         ` Aditya Mahajan
  2009-06-19  8:05         ` Taco Hoekwater
  0 siblings, 2 replies; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-06-18 22:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 18 Jun 2009 10:06:07 -0600, Aditya Mahajan <adityam@umich.edu>  
wrote:

>> LuaTeX warning (file
>> C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2
>> Charstring Parser: Unknown charstring operator: 0x00
>>
>> !LuaTeX error (file
>> C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2
>> Charstring Parser: Parsing charstring failed: (status=-1, stack=0)
>> ==> Fatal error occurred, no output PDF file produced!
>>
>> Have any of you run into this before?
>
> No. I am using the minimals from 2009.05.26, and asana math works fine.
> Are you using the latest version of the font from
> http://openfontlibrary.org/media/files/asyropoulos/219

seems the same date as

http://www.ctan.org/get/fonts/Asana-Math/Asana-Math.otf

+

This is LuaTeX, Version beta-0.41.0-2009061016

I reported this to Taco so we'll see what he says...

>> If this is a showstopper, then a fallback will have to do. Have any of  
>> you
>> made fallbacks for math fonts? Are there any subtleties compared to  
>> regular
>> fonts? What is the unicode slot for math \alpha?
>
> Basic greek should work in math. I cannot get the latest minimals right
> now (slow internet connection), but px math and lm math use the same code
> to generate virtual fonts, so px math should work in the latest minimals.

Using the predefined

[mm] [math] [palatino]

You can test these formulas in px-math:

\starttext
\startformula
Y=AK^{\alpha{}}L^{1-\alpha{}} \eqno(1)
\stopformula

\startformula
y-l=a+\alpha(k-l) \eqno(2)
\stopformula

\startformula
a = (y-l) - \alpha{} (k-l) \eqno(3)
\stopformula

\startformula
A = (3-7)-(0.3) (5-3) = 3.4
\stopformula

\alpha{}
\stoptext

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18 22:16       ` Idris Samawi Hamid ادريس سماوي حامد
@ 2009-06-19  4:40         ` Aditya Mahajan
  2009-06-19  8:05         ` Taco Hoekwater
  1 sibling, 0 replies; 10+ messages in thread
From: Aditya Mahajan @ 2009-06-19  4:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1270 bytes --]

On Thu, 18 Jun 2009, Idris Samawi Hamid ادريس سماوي حامد wrote:

>> Basic greek should work in math. I cannot get the latest minimals right
>> now (slow internet connection), but px math and lm math use the same code
>> to generate virtual fonts, so px math should work in the latest minimals.
>
> Using the predefined
>
> [mm] [math] [palatino]
>
> You can test these formulas in px-math:
>
> \starttext
> \startformula
> Y=AK^{\alpha{}}L^{1-\alpha{}} \eqno(1)
> \stopformula
>
> \startformula
> y-l=a+\alpha(k-l) \eqno(2)
> \stopformula
>
> \startformula
> a = (y-l) - \alpha{} (k-l) \eqno(3)
> \stopformula
>
> \startformula
> A = (3-7)-(0.3) (5-3) = 3.4
> \stopformula
>
> \alpha{}
> \stoptext

I see. There is indeed something wrong with both px-math and tx-math, but 
I cannot see why it is behaving differently. In math-vfu.lua, if you 
replace pxmi.tfm with lmmi10.tfm and regenerate formats, greek in math 
works, so it is something specific with the font.

Hans, Taco: Any idea what is happening here? Minimal test file

\usetypescript[palatino] \setupbodyfont[palatino]
\starttext $\alpha \beta$ \stoptext

Idris: For greek outside the math mode, you should use \greekalpha etc, 
which works with palatino.

Aditya

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: math and palatino
  2009-06-18 22:16       ` Idris Samawi Hamid ادريس سماوي حامد
  2009-06-19  4:40         ` Aditya Mahajan
@ 2009-06-19  8:05         ` Taco Hoekwater
  1 sibling, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2009-06-19  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Idris Samawi Hamid ????? ????? ???? wrote:
> 
> http://www.ctan.org/get/fonts/Asana-Math/Asana-Math.otf
> 
> +
> 
> This is LuaTeX, Version beta-0.41.0-2009061016
> 
> I reported this to Taco so we'll see what he says...

That version of Asana works for me with a small test file, using

  This is LuaTeX, Version beta-0.41.0-2009061815 (Web2C 2009)

but it could be a problem with a specific glyph, so can you send a
minimal test file?

Best wishes,
Taco

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-06-19  8:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-18  3:00 math and palatino Idris Samawi Hamid ادريس سماوي حامد
2009-06-18  8:03 ` Aditya Mahajan
2009-06-18  8:22   ` Johan Sandblom
2009-06-18  8:59     ` Aditya Mahajan
2009-06-18 13:46   ` Idris Samawi Hamid ادريس سماوي حامد
2009-06-18 16:06     ` Aditya Mahajan
2009-06-18 22:16       ` Idris Samawi Hamid ادريس سماوي حامد
2009-06-19  4:40         ` Aditya Mahajan
2009-06-19  8:05         ` Taco Hoekwater
2009-06-18 14:09   ` Idris Samawi Hamid ادريس سماوي حامد

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