ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] typearea
@ 2023-10-29 10:37 Thomas Meyer
  2023-10-29 11:07 ` [NTG-context] typearea Thomas Meyer
  2023-10-29 11:13 ` Henning Hraban Ramm
  0 siblings, 2 replies; 8+ messages in thread
From: Thomas Meyer @ 2023-10-29 10:37 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2188 bytes --]

Hi,
I'm new to ConTeXt and try to use the module typearea 
(https://modules.contextgarden.net/cgi-bin/module.cgi/action=find/name=typearea).
But the example doesn't work:

\usemodule[typearea]
\setupTypeArea[bcor=0mm,alphabets=3.1]
\setuppagenumbering[alternative=doublesided]
\starttext
\dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page}
\stoptext

I got:

texmf-dist/tex/context/third/typearea/t-typearea.tex'
loading         > Something like KOMA-TypeArea
tex error       > tex error on line 89 in file 
/usr/local/texlive/2023/texmf-dist/tex/context/third/typearea/t-typearea.tex: 
Missing number, treated as zero



<to be read again>

     {
<macro> \TA@alphabets
      \par \PageWidth =\dimexpr \paperwidth -\TA@bcor \relax \par \edef 
\Ratio {\withoutpt {
     \the \dimexpr 2\paperheight /(\PageWidth /32768)\relax }} \par 
\setbox \scratchbox \hbox {\dorecurse {26}{\character \recurselevel }} 
\Width =\dimexpr \TA@alphabet
<line 5.89>
     \setupTypeArea[bcor=0pt,oneside=no,alphabets=2.6]

79          height=\the\Height,
80          width=\the\Width,
81          header=2\lineheight,
82          headerdistance=\lineheight,
83          footer=2\lineheight,
84          footerdistance=3\lineheight,
85          topspace=\Top]
86     }
87     \protect
88
89 >>  \setupTypeArea[bcor=0pt,oneside=no,alphabets=2.6]
90
91     \doifnotmode{demo}{\endinput}
92
93     %D Usage example:
94     \usemodule[typearea]
95     \setupTypeArea[bcor=0mm,alphabets=3.1]
96     \setuppagenumbering[alternative=doublesided]
97     \starttext
98 \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page}
99     \stoptext
A number should have been here; I inserted '0'. (If you can't figure out 
why I
needed to see a number, look up 'weird error' in the index to The TeXbook.)
mtx-context     | fatal error: return code: 1


Line 89 in the module should be the problem. But how can I solve it? I 
think some lines in the module should be commented out. (An example 
directly in the module?)

I thank you for any hint.

Greetings
Thomas

[-- Attachment #1.2: Type: text/html, Size: 3211 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-11-06 13:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-29 10:37 [NTG-context] typearea Thomas Meyer
2023-10-29 11:07 ` [NTG-context] typearea Thomas Meyer
2023-10-29 11:13 ` Henning Hraban Ramm
2023-10-29 11:33   ` Wolfgang Schuster
2023-11-01 21:47   ` Aditya Mahajan
2023-11-02  8:00     ` Henning Hraban Ramm
2023-11-02  8:11     ` Hans Hagen
2023-11-06 13:22   ` Thomas Meyer

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