ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Greek letters in math with XeTeX
@ 2008-09-07 20:04 Flavien Lambert
  2008-09-08  1:37 ` Mojca Miklavec
  0 siblings, 1 reply; 7+ messages in thread
From: Flavien Lambert @ 2008-09-07 20:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 886 bytes --]

(Sorry for the preceding message, I forgot the [NTG-context] for filters...)

Dear all, I try to use Open Type fonts with ConTeXt and XeTeX (I recently
did the same with LaTeX using fontspec and mathspec packages). From the web
site, I managed to use them for standard text as well as roman alphabet in
math. Unfortunately, greek letters stay printed with the Latin Modern font.
>From examples of the web site, I tried the following lines but without
success. In a preceding post, there was a similar question but with the
luatex engine.
Thanks for your help !

\definetypeface[myface][rm][Xserif][GFS Didot]
\definetypeface[myface][mm][math][GFS Didot]

\starttext

Normal text.

\startformula
\alpha + \beta = 10
\stopformula

\stoptext

-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 1000 bytes --]

[-- 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] 7+ messages in thread

* Re: Greek letters in math with XeTeX
  2008-09-07 20:04 Greek letters in math with XeTeX Flavien Lambert
@ 2008-09-08  1:37 ` Mojca Miklavec
  2008-09-08  1:45   ` Aditya Mahajan
  2008-09-08 11:24   ` Flavien Lambert
  0 siblings, 2 replies; 7+ messages in thread
From: Mojca Miklavec @ 2008-09-08  1:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Sep 7, 2008 at 10:04 PM, Flavien Lambert <petit.lepton@gmail.com> wrote:
> (Sorry for the preceding message, I forgot the [NTG-context] for filters...)
>
> Dear all, I try to use Open Type fonts with ConTeXt and XeTeX (I recently
> did the same with LaTeX using fontspec and mathspec packages). >From the web
> site, I managed to use them for standard text as well as roman alphabet in
> math. Unfortunately, greek letters stay printed with the Latin Modern font.
> From examples of the web site, I tried the following lines but without
> success. In a preceding post, there was a similar question but with the
> luatex engine.
> Thanks for your help !
>
> \definetypeface[myface][rm][Xserif][GFS Didot]
> \definetypeface[myface][mm][math][GFS Didot]

No time for complete answer, but you need to define the whole
[math][GFS Didot] repertoaire first. This has no effect until you
define one.

Someone needs to write "Unicode math support" for mkii, or you need to
make your own virtual font.

See this file for example:
    http://source.contextgarden.net/math-lbr.tex
in a similar way that would need to be done for general typefaces without math.

You might then be able to say something like
    \definetypeface[myface][mm][Xmath][GFS Didot], though I'm 100%
sure that people would then start complaining very soon that they
either:
- want other math characters in their favorite font as well (like
plus, minus, brackets, ...), not only Greek letters
- complain that they don't get any symbol (no font has them all)

Mojca
___________________________________________________________________________________
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] 7+ messages in thread

* Re: Greek letters in math with XeTeX
  2008-09-08  1:37 ` Mojca Miklavec
@ 2008-09-08  1:45   ` Aditya Mahajan
  2008-09-08  8:10     ` Hans Hagen
  2008-09-08 11:24   ` Flavien Lambert
  1 sibling, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2008-09-08  1:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 8 Sep 2008, Mojca Miklavec wrote:

> Someone needs to write "Unicode math support" for mkii, or you need to
> make your own virtual font.

Well...someone also needs to write "Unicode math support" for mkiv and I 
would work on that in the hope that there is some chance that I may 
actually understand how mkiv (will) handle math fonts. With MKII, math 
fonts is black magic for me.

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] 7+ messages in thread

* Re: Greek letters in math with XeTeX
  2008-09-08  1:45   ` Aditya Mahajan
@ 2008-09-08  8:10     ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2008-09-08  8:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aditya Mahajan wrote:
> On Mon, 8 Sep 2008, Mojca Miklavec wrote:
> 
>> Someone needs to write "Unicode math support" for mkii, or you need to
>> make your own virtual font.
> 
> Well...someone also needs to write "Unicode math support" for mkiv and I 
> would work on that in the hope that there is some chance that I may 
> actually understand how mkiv (will) handle math fonts. With MKII, math 
> fonts is black magic for me.

in mkii math characters (symbols) are taken from many fonts (and we can 
even have several combinations of math fonts active at the same time)

in mkiv we will use unicode exclusively (as soon as the math subproject 
of luatex is finished)

i don't think that mkii will have unicode math support

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Re: Greek letters in math with XeTeX
  2008-09-08  1:37 ` Mojca Miklavec
  2008-09-08  1:45   ` Aditya Mahajan
@ 2008-09-08 11:24   ` Flavien Lambert
  2008-09-08 12:31     ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Flavien Lambert @ 2008-09-08 11:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1863 bytes --]

Just to understand a bit more : signs like equal are printed inside math
environment with GFS Didot thanks to \definetypeface[myface][rm][Xserif][GFS
Didot]. Since GFS Didot ,as a greek font has greek letters, why are these
glyphs not used ? I suppose that when greek people are using directly alpha
as a letter (not \alpha), it should take into account the GFS Didot font,
shouldn' it ?


>
> No time for complete answer, but you need to define the whole
> [math][GFS Didot] repertoaire first. This has no effect until you
> define one.
>
> Someone needs to write "Unicode math support" for mkii, or you need to
> make your own virtual font.
>
> See this file for example:
>    http://source.contextgarden.net/math-lbr.tex
> in a similar way that would need to be done for general typefaces without
> math.
>
> You might then be able to say something like
>    \definetypeface[myface][mm][Xmath][GFS Didot], though I'm 100%
> sure that people would then start complaining very soon that they
> either:
> - want other math characters in their favorite font as well (like
> plus, minus, brackets, ...), not only Greek letters
> - complain that they don't get any symbol (no font has them all)
>
> Mojca
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>



-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 2698 bytes --]

[-- 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] 7+ messages in thread

* Re: Greek letters in math with XeTeX
  2008-09-08 11:24   ` Flavien Lambert
@ 2008-09-08 12:31     ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2008-09-08 12:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Flavien Lambert wrote:
> Just to understand a bit more : signs like equal are printed inside math
> environment with GFS Didot thanks to \definetypeface[myface][rm][Xserif][GFS
> Didot]. Since GFS Didot ,as a greek font has greek letters, why are these
> glyphs not used ? I suppose that when greek people are using directly alpha
> as a letter (not \alpha), it should take into account the GFS Didot font,
> shouldn' it ?

it's more complex than that ... tex organizes math characters in 
families and = and alpha are in different slots there

greek alpha letter is (in mkiv) directly accessing the right glyph in 
the font; in mkiv mode it cna be either direct access, or fallback on 
math or ...

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Greek letters in math with XeTeX
@ 2008-09-07 19:15 Flavien Lambert
  0 siblings, 0 replies; 7+ messages in thread
From: Flavien Lambert @ 2008-09-07 19:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]

Dear all, I try to use Open Type fonts with ConTeXt and XeTeX (I recently
did the same with LaTeX using fontspec and mathspec packages). From the web
site, I managed to use them for standard text as well as roman alphabet in
math. Unfortunately, greek letters stay printed with the Latin Modern font.
>From examples of the web site, I tried the following lines but without
success. In a preceding post, there was a similar question but with the
luatex engine.
Thanks for your help !

\definetypeface[myface][rm][Xserif][GFS Didot]
\definetypeface[myface][mm][math][GFS Didot]

\starttext

Normal text.

\startformula
\alpha + \beta = 10
\stopformula

\stoptext

-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 914 bytes --]

[-- 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] 7+ messages in thread

end of thread, other threads:[~2008-09-08 12:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-07 20:04 Greek letters in math with XeTeX Flavien Lambert
2008-09-08  1:37 ` Mojca Miklavec
2008-09-08  1:45   ` Aditya Mahajan
2008-09-08  8:10     ` Hans Hagen
2008-09-08 11:24   ` Flavien Lambert
2008-09-08 12:31     ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2008-09-07 19:15 Flavien Lambert

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