[NTG-context] \frac error

thierry horsin horsin at free.fr
Mon Apr 19 11:34:16 CEST 2021


Hi Hans,

and thanks

I tried your suggestion (I guess you mean cont-new.mkxl instead of 
cont-new.mlxl)

It is still giving some errors. Besides, there is also now an error with 
xfrac (which was ok without modifying cont-new.mkxl)

Thierry

On 19/04/2021 10:36, Hans Hagen wrote:
> On 4/19/2021 9:39 AM, thierry horsin wrote:
>> For instance:
>>
>> \switchtobodyfont[21pt]
>>
>> \startformula
>> \frac{MTC}{MTE}
>> \stopformula
>>
>> is OK.
>>
>> While
>>
>> \switchtobodyfont[22pt]
>>
>> \startformula
>> \frac{MTC}{MTE}
>> \stopformula
>>
>> gives an error
>>
>> but
>>
>> \switchtobodyfont[22pt]
>>
>> $\frac{MTC}{MTE}$ works fine.
>>
>> Thanks
>>
>> Below: part of the error message
>>
>> tex error       > tex error on line 75 in file chapter8.tex: 
>> Dimension too large
> can you test with this in cont-new.mlxl:
>
> \unprotect
>
> \protected\def\math_strut_htdp#1% nasty!
>
> {\s!height\dimexpr(\fontcharht#1\c_math_strut/\glyphscale)*\mathscale#1\relax 
>
>    \s!depth 
> \dimexpr(\fontchardp#1\c_math_strut/\glyphscale)*\mathscale#1\relax}
>
> \protect
>
> this sort of excessive scaling has to do with the new (more efficient) 
> low level scaling model that we're going to switch to later this year, 
> you can test that by putting this at the top of the file (document 
> wide setting) which for math is kind of complex because of the 
> additional sizes (so we operate on several axis)
>
> \enableexperiments[fonts.compact]
>
> Hans
>
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


More information about the ntg-context mailing list