ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \frac error
       [not found] <mailman.1.1618653601.10897.ntg-context@ntg.nl>
@ 2021-04-19  3:17 ` thierry horsin
  2021-04-19  7:21   ` thierry horsin
  0 siblings, 1 reply; 6+ messages in thread
From: thierry horsin @ 2021-04-19  3:17 UTC (permalink / raw)
  To: ntg-context

Hi everybody

Since I updated to the last version of context , I cannot use \frac 
anymore in \startformula.

I get the following message "I can't work with sizes bigger than about 
19 feet. Continue and I'll use the
largest value I can."

Yet, between $ $ it is fine.



Any ideas ?

Many thanks.


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \frac error
  2021-04-19  3:17 ` \frac error thierry horsin
@ 2021-04-19  7:21   ` thierry horsin
  2021-04-19  7:35     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: thierry horsin @ 2021-04-19  7:21 UTC (permalink / raw)
  To: ntg-context

Hi again everybody

I have tested some more examples. This error occurs when I fix the 
current font size to 22 pt (for some slide purposes). For sizes lower 
than 22pt, I have no error messages.

Best

Thierry


On 19/04/2021 05:17, thierry horsin wrote:
> Hi everybody
>
> Since I updated to the last version of context , I cannot use \frac 
> anymore in \startformula.
>
> I get the following message "I can't work with sizes bigger than about 
> 19 feet. Continue and I'll use the
> largest value I can."
>
> Yet, between $ $ it is fine.
>
>
>
> Any ideas ?
>
> Many thanks.
>
>
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \frac error
  2021-04-19  7:21   ` thierry horsin
@ 2021-04-19  7:35     ` Hans Hagen
  2021-04-19  7:39       ` thierry horsin
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-04-19  7:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users, thierry horsin

On 4/19/2021 9:21 AM, thierry horsin wrote:
> Hi again everybody
> 
> I have tested some more examples. This error occurs when I fix the 
> current font size to 22 pt (for some slide purposes). For sizes lower 
> than 22pt, I have no error messages.
can you make a MWE

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \frac error
  2021-04-19  7:35     ` Hans Hagen
@ 2021-04-19  7:39       ` thierry horsin
  2021-04-19  8:36         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: thierry horsin @ 2021-04-19  7:39 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

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


<macro> \math_strut_htdp #1->\s!height \dimexpr \mathscale #1\fontcharht 
#1\c_math_strut
     /\glyphscale \relax \s!depth \dimexpr \mathscale #1\fontchardp 
#1\c_math_strut /\glyphscale \relax
<macro> \commalistcommand \vrule \s!width \zeropoint \normalexpanded 
{\math_strut_htdp {\mathstylefont \normalmathstyle }}
     \relax
<macro> \math_fraction_inner_normal #1#2->\Ustack {\math_frac_command_u 
{\usemathstyleparameter \mathfractionparameter {\m_fractions_strut_top
     #1}}{\usemathstyleparameter \mathfractionparameter 
{\m_fractions_strut_bot #2}}}\math_frac_wrapup

<line 4.75> \frac{MTC}{MTE}

On 19/04/2021 09:35, Hans Hagen wrote:
> On 4/19/2021 9:21 AM, thierry horsin wrote:
>> Hi again everybody
>>
>> I have tested some more examples. This error occurs when I fix the 
>> current font size to 22 pt (for some slide purposes). For sizes lower 
>> than 22pt, I have no error messages.
> can you make a MWE
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \frac error
  2021-04-19  7:39       ` thierry horsin
@ 2021-04-19  8:36         ` Hans Hagen
  2021-04-19  9:34           ` thierry horsin
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-04-19  8:36 UTC (permalink / raw)
  To: thierry horsin, mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \frac error
  2021-04-19  8:36         ` Hans Hagen
@ 2021-04-19  9:34           ` thierry horsin
  0 siblings, 0 replies; 6+ messages in thread
From: thierry horsin @ 2021-04-19  9:34 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

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
> -----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-04-19  9:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1618653601.10897.ntg-context@ntg.nl>
2021-04-19  3:17 ` \frac error thierry horsin
2021-04-19  7:21   ` thierry horsin
2021-04-19  7:35     ` Hans Hagen
2021-04-19  7:39       ` thierry horsin
2021-04-19  8:36         ` Hans Hagen
2021-04-19  9:34           ` thierry horsin

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