### Re: [NTG-context] Cambria: integral sign has wrong size

On 06/30/2011 10:46 AM, Julian Becker wrote: Hello everybody! I tried doing some math typesetting with Cambria, but somehow the integral sign comes out somewhat smaller than it should be. Running the following in the latest beta produces the attached pdf. Does anybody have an idea about what's going wrong here, or how to fix it? It is a regression (it was ok with older context versions) but I am not sure what is causing it. The most likely cause is that the metrics patch to CambriaMath is no longer applied, but I do not quite remember how to check that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___

### Re: [NTG-context] Cambria: integral sign has wrong size

Am 20:59, schrieb Julian Becker: Hello everybody! I tried doing some math typesetting with Cambria, but somehow the integral sign comes out somewhat smaller than it should be. Running the following in the latest beta produces the attached pdf. Does anybody have an idea about what's going wrong here, or how to fix it? Julian \usetypescript[cambria] \setupbodyfont[cambria,10pt] \startTEXpage \startformula \prod_a^b \sum_{n=0}^\infty \int_0^\infty e^{-{\bi\beta}^2}\, {\rm d}^3{\bi \beta} \stopformula \stopTEXpage This is a known bug in the Cambria font, the size of the big operators is not set correctly, but AFAIK ConTeXt already accounts for this by applying a custom font patch. ___ 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] Cambria: integral sign has wrong size

In this case, is there a quick workaround? I tried something like redefining \int using \def\int{\getglyph{CambriaMath}{\charF05C2}\intlimits} This gives the desired result in displaystyle, but is incompatible with scriptstyle math. Is there a way to adapt this workaround to account for this in some way? Best regards, Julian 2011/7/1 Taco Hoekwater t...@elvenkind.com On 06/30/2011 10:46 AM, Julian Becker wrote: Hello everybody! I tried doing some math typesetting with Cambria, but somehow the integral sign comes out somewhat smaller than it should be. Running the following in the latest beta produces the attached pdf. Does anybody have an idea about what's going wrong here, or how to fix it? It is a regression (it was ok with older context versions) but I am not sure what is causing it. The most likely cause is that the metrics patch to CambriaMath is no longer applied, but I do not quite remember how to check that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Cambria: integral sign has wrong size

Try setting \Umathoperatorsize\displaystyle=2em or so until you find a suitable value. On Fri, Jul 01, 2011 at 09:25:27AM +0200, Julian Becker wrote: In this case, is there a quick workaround? I tried something like redefining \ int using \def\int{\getglyph{CambriaMath}{\charF05C2}\intlimits} This gives the desired result in displaystyle, but is incompatible with scriptstyle math. Is there a way to adapt this workaround to account for this in some way? Best regards, Julian 2011/7/1 Taco Hoekwater t...@elvenkind.com On 06/30/2011 10:46 AM, Julian Becker wrote: Hello everybody! I tried doing some math typesetting with Cambria, but somehow the integral sign comes out somewhat smaller than it should be. Running the following in the latest beta produces the attached pdf. Does anybody have an idea about what's going wrong here, or how to fix it? It is a regression (it was ok with older context versions) but I am not sure what is causing it. The most likely cause is that the metrics patch to CambriaMath is no longer applied, but I do not quite remember how to check that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 ___ -- Khaled Hosny Egyptian Arab ___ 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] Cambria: integral sign has wrong size

Thanks Khaled, this works like a charm! Best wishes, Julian 2011/7/1 Khaled Hosny khaledho...@eglug.org Try setting \Umathoperatorsize\displaystyle=2em or so until you find a suitable value. On Fri, Jul 01, 2011 at 09:25:27AM +0200, Julian Becker wrote: In this case, is there a quick workaround? I tried something like redefining \ int using \def\int{\getglyph{CambriaMath}{\charF05C2}\intlimits} This gives the desired result in displaystyle, but is incompatible with scriptstyle math. Is there a way to adapt this workaround to account for this in some way? Best regards, Julian 2011/7/1 Taco Hoekwater t...@elvenkind.com On 06/30/2011 10:46 AM, Julian Becker wrote: Hello everybody! I tried doing some math typesetting with Cambria, but somehow the integral sign comes out somewhat smaller than it should be. Running the following in the latest beta produces the attached pdf. Does anybody have an idea about what's going wrong here, or how to fix it? It is a regression (it was ok with older context versions) but I am not sure what is causing it. The most likely cause is that the metrics patch to CambriaMath is no longer applied, but I do not quite remember how to check that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 ___ -- Khaled Hosny Egyptian Arab ___ 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 ___ ___ 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] Cambria: integral sign has wrong size

On 30-6-2011 10:46, Julian Becker wrote: Hello everybody! I tried doing some math typesetting with Cambria, but somehow the integral sign comes out somewhat smaller than it should be. Running the following in the latest beta produces the attached pdf. Does anybody have an idea about what's going wrong here, or how to fix it? It will be fixed in the next beta, in the meantime you can replace cambria-math.lfg by this: local function FixDisplayOperatorMinHeight(value,target,original) local o = original.mathparameters.DisplayOperatorMinHeight if o 2800 then return 2800 * target.parameters.factor else return value -- already scaled end end return { name = cambria-math, version = 1.00, comment = Goodies that complement cambria., author = Hans Hagen, copyright = ConTeXt development team, mathematics = { parameters = { DisplayOperatorMinHeight = FixDisplayOperatorMinHeight, } } } - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___