Simplefonts, latest beta and binoms
Hi list, I have some troubles with the simplefonts module. The following worked fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but doesn't anymore (2011.05.18 22:26). Minimal example reproduced here. Whatever font I try, the output of the parentheses is the same. Setting the math font doesn't help either. \usemodule[simplefonts] \setmainfont[Calluna]% could be Latin Modern Roman %\setmathfont[Latin Modern Math]% as in t-simplefonts.tex \starttext \startformula \binom{1}{2} \stopformula \stoptext Regards. -- Cédric
Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:
Hi list,
I have some troubles with the simplefonts module. The following worked fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but doesn't anymore (2011.05.18 22:26).
It’s the fault of the OpenType version of the LM Math fonts which are used when you use the simplefonts module: \definetypeface[mainface][rm][serif][modern] \definetypeface[mainface][mm][math] [modern] \setupbodyfont[mainface] \starttext \startformula \binom{1}{2} \stopformula \stoptext Wolfgang
Thanks, but I am afraid I get the same result with your example.
-- Cédric
On Mon, May 23, 2011 at 12:31, Wolfgang Schuster
Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:
Hi list,
I have some troubles with the simplefonts module. The following worked fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but doesn't anymore (2011.05.18 22:26).
It’s the fault of the OpenType version of the LM Math fonts which are used when you use the simplefonts module:
\definetypeface[mainface][rm][serif][modern] \definetypeface[mainface][mm][math] [modern]
\setupbodyfont[mainface]
\starttext \startformula \binom{1}{2} \stopformula \stoptext
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 ___________________________________________________________________________________
On Mon, 23 May 2011, Wolfgang Schuster wrote:
Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:
Hi list,
I have some troubles with the simplefonts module. The following worked fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but doesn't anymore (2011.05.18 22:26).
It’s the fault of the OpenType version of the LM Math fonts which are used when you use the simplefonts module:
\definetypeface[mainface][rm][serif][modern] \definetypeface[mainface][mm][math] [modern]
\setupbodyfont[mainface]
\starttext \startformula \binom{1}{2} \stopformula \stoptext
If I don't use any font setup, then the result is correct. Isn't opentype math setup used in both cases? Aditya
Am 23.05.2011 um 15:20 schrieb Aditya Mahajan:
If I don't use any font setup, then the result is correct. Isn't opentype math setup used in both cases?
Different fonts are used. By default context use the Type1 version of the Latin Modern fonts while my example force ConTeXt to use the OpenType version of the fonts where the braces are wrong. Wolfgang
I did the following (just in case):
export DOFONTDIR=
mtxrun --script font --reload
context simplefonts-error.tex
The file simplefonts-error.tex is just what Wolfgang suggested:
\definetypeface[mainface][rm][serif][modern]
\definetypeface[mainface][mm][math] [modern]
\setupbodyfont[mainface]
\starttext
\startformula
\binom{1}{2}
\stopformula
\stoptext
After perusing the log file, here are the font files that are loaded:
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmmath.otf
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf.
I really wish to use Calluna with Latin/Computer Modern math because I
find palatino too narrow.
PS: if I should send files in private mails only, just tell me.
-- Cédric
On Mon, May 23, 2011 at 15:20, Aditya Mahajan
On Mon, 23 May 2011, Wolfgang Schuster wrote:
Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:
Hi list,
I have some troubles with the simplefonts module. The following worked fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but doesn't anymore (2011.05.18 22:26).
It’s the fault of the OpenType version of the LM Math fonts which are used when you use the simplefonts module:
\definetypeface[mainface][rm][serif][modern] \definetypeface[mainface][mm][math] [modern]
\setupbodyfont[mainface]
\starttext \startformula \binom{1}{2} \stopformula \stoptext
If I don't use any font setup, then the result is correct. Isn't opentype math setup used in both cases?
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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:
I really wish to use Calluna with Latin/Computer Modern math because I find palatino too narrow.
It is too narrow compared with Calluna but it is at least a better match than Latin Modern but it’s possible the small braces are a bug in ConTeXt or LuaTeX because it does only appear with OpenType math fonts: Input: \usemodule[simplefonts] \setmainfont[Calluna] \startbuffer[example] \input ward\par \startformula c^2=a^2+b^2 \quad \binom{1}{2} \stopformula \stopbuffer \starttext \getbuffer[example] \setmathfont[palatino]\getbuffer[example] \setmathfont[euler]\getbuffer[example] \setmathfont[times]\getbuffer[example] \setmathfont[cambria]\getbuffer[example] \stoptext Output: http://d.pr/hKl1 Wolfgang
Thanks for your help. I'll go with palatino for now.
-- Cédric
On Mon, May 23, 2011 at 15:52, Wolfgang Schuster
Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:
I really wish to use Calluna with Latin/Computer Modern math because I find palatino too narrow.
It is too narrow compared with Calluna but it is at least a better match than Latin Modern but it’s possible the small braces are a bug in ConTeXt or LuaTeX because it does only appear with OpenType math fonts:
Input:
\usemodule[simplefonts]
\setmainfont[Calluna]
\startbuffer[example] \input ward\par \startformula c^2=a^2+b^2 \quad \binom{1}{2} \stopformula \stopbuffer
\starttext
\getbuffer[example]
\setmathfont[palatino]\getbuffer[example]
\setmathfont[euler]\getbuffer[example]
\setmathfont[times]\getbuffer[example]
\setmathfont[cambria]\getbuffer[example]
\stoptext
Output: http://d.pr/hKl1
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 ___________________________________________________________________________________
On Mon, 23 May 2011, Wolfgang Schuster wrote:
Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:
I really wish to use Calluna with Latin/Computer Modern math because I find palatino too narrow.
It is too narrow compared with Calluna but it is at least a better match than Latin Modern but it’s possible the small braces are a bug in ConTeXt or LuaTeX because it does only appear with OpenType math fonts:
The bug is with luatex: http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118 Aditya
Am 24.05.2011 um 16:47 schrieb Guanhao Yin:
On Mon, May 23, 2011 at 12:31:35PM +0200, Wolfgang Schuster wrote:
It’s the fault of the OpenType version of the LM Math fonts which are used when you use the simplefonts module
So, is it possible to use the simplefonts module with Type1 LM Math?
No but you can use my calluna typescripts: \usetypescriptfile[type-calluna] \definetypeface[mainface][rm][serif][calluna][default] \definetypeface[mainface][mm][math] [modern] [computer-modern] \setupbodyfont[mainface] \starttext Calluna and Latin Modern Math \startformula \binom{1}{2} \stopformula \stoptext Wolfgang
participants (4)
-
Aditya Mahajan
-
Cedric Mauclair
-
Guanhao Yin
-
Wolfgang Schuster