ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Typearea module fails with “Missing number”
@ 2022-08-29  7:30 Marco Patzer via ntg-context
  2022-08-29  7:49 ` Marco Patzer via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Patzer via ntg-context @ 2022-08-29  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Marco Patzer

Hi!

The typearea module fails on LMTX (runs ok with MkIV):

  tex error       > tex error on line 89 in file /usr/local/share/context-lmtx/tex/texmf-modules/tex/context/third/typearea/t-typearea.tex: Missing number, treated as zero

LMTX 2022.08.25 19:21

Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re:  Typearea module fails with “Missing number”
  2022-08-29  7:30 Typearea module fails with “Missing number” Marco Patzer via ntg-context
@ 2022-08-29  7:49 ` Marco Patzer via ntg-context
  2022-08-29 21:30   ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Patzer via ntg-context @ 2022-08-29  7:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Marco Patzer

On Mon, 29 Aug 2022 09:30:34 +0200
Marco Patzer via ntg-context <ntg-context@ntg.nl> wrote:

> The typearea module fails on LMTX (runs ok with MkIV):
> 
>   tex error       > tex error on line 89 in file
> /usr/local/share/context-lmtx/tex/texmf-modules/tex/context/third/typearea/t-typearea.tex:
> Missing number, treated as zero

Sorry, forgot the MWE:

  \usemodule[typearea]
  \starttext\null\stoptext

Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re:  Typearea module fails with “Missing number”
  2022-08-29  7:49 ` Marco Patzer via ntg-context
@ 2022-08-29 21:30   ` Wolfgang Schuster via ntg-context
  2022-08-31 21:16     ` Peter Münster via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-08-29 21:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

Marco Patzer via ntg-context schrieb am 29.08.2022 um 09:49:
> On Mon, 29 Aug 2022 09:30:34 +0200
> Marco Patzer via ntg-context <ntg-context@ntg.nl> wrote:
>
>> The typearea module fails on LMTX (runs ok with MkIV):
>>
>>    tex error       > tex error on line 89 in file
>> /usr/local/share/context-lmtx/tex/texmf-modules/tex/context/third/typearea/t-typearea.tex:
>> Missing number, treated as zero
> Sorry, forgot the MWE:
>
>    \usemodule[typearea]
>    \starttext\null\stoptext

To fix the module you have to change the line

\edef\Ratio{\withoutpt{\the\dimexpr2\paperheight/(\PageWidth/32768)\relax}}

with (remove one pair of curly braces)

\edef\Ratio{\withoutpt\the\dimexpr2\paperheight/(\PageWidth/32768)\relax}


Similar problems can happens with other modules because many of them are 
outdated
and they should be either updated or removed (the files can still be 
archived).

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re:  Typearea module fails with “Missing number”
  2022-08-29 21:30   ` Wolfgang Schuster via ntg-context
@ 2022-08-31 21:16     ` Peter Münster via ntg-context
  2022-09-16 11:08       ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Münster via ntg-context @ 2022-08-31 21:16 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Peter Münster

On Mon, Aug 29 2022, Wolfgang Schuster via ntg-context wrote:

> remove one pair of curly braces

Hi Wolfgang,

Thanks. Here a new version: http://pmrb.free.fr/tmp/t-typearea.zip

Unfortunately, I can not upload it to modules.contextgarden.net:
"Unknown user or bad password!"

Taco, what should I do please?

TIA,
-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re:  Typearea module fails with “Missing number”
  2022-08-31 21:16     ` Peter Münster via ntg-context
@ 2022-09-16 11:08       ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-09-16 11:08 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Wolfgang Schuster

Peter Münster via ntg-context schrieb am 31.08.2022 um 23:16:
> On Mon, Aug 29 2022, Wolfgang Schuster via ntg-context wrote:
>
>> remove one pair of curly braces
> Hi Wolfgang,
>
> Thanks. Here a new version: http://pmrb.free.fr/tmp/t-typearea.zip

Even though the module works now with LMTX it needs a proper update to 
ensure
it can be used in future documents.

Another suggestion from myself is to use the \averagecharwidth length 
for the calculation
of the text width because it takes the document language into account.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-09-16 11:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29  7:30 Typearea module fails with “Missing number” Marco Patzer via ntg-context
2022-08-29  7:49 ` Marco Patzer via ntg-context
2022-08-29 21:30   ` Wolfgang Schuster via ntg-context
2022-08-31 21:16     ` Peter Münster via ntg-context
2022-09-16 11:08       ` Wolfgang Schuster via ntg-context

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