* [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
* [NTG-context] Re: typearea
2023-10-29 10:37 [NTG-context] typearea Thomas Meyer
@ 2023-10-29 11:07 ` Thomas Meyer
2023-10-29 11:13 ` Henning Hraban Ramm
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Meyer @ 2023-10-29 11:07 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2927 bytes --]
Oh, I found something about in the archive!
Am 29.10.23 um 11:37 schrieb Thomas Meyer:
> 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
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4894 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
* [NTG-context] Re: typearea
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
` (2 more replies)
1 sibling, 3 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2023-10-29 11:13 UTC (permalink / raw)
To: ntg-context
Am 29.10.23 um 11:37 schrieb Thomas Meyer:
> 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:
The module is from 2008, i.e. MkII. You can’t expect it to work with
MkIV/LMTX.
Just define your layout yourself.
Hraban
___________________________________________________________________________________
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
* [NTG-context] Re: typearea
2023-10-29 11:13 ` Henning Hraban Ramm
@ 2023-10-29 11:33 ` Wolfgang Schuster
2023-11-01 21:47 ` Aditya Mahajan
2023-11-06 13:22 ` Thomas Meyer
2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2023-10-29 11:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Henning Hraban Ramm schrieb am 29.10.2023 um 12:13:
> Am 29.10.23 um 11:37 schrieb Thomas Meyer:
>> 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:
>
> The module is from 2008, i.e. MkII. You can’t expect it to work with
> MkIV/LMTX.
> Just define your layout yourself.
You can use the \averagecharwidth length to set the text width to a certain
number of characters per line but for now only only a few languages
are supported.
\mainlanguage[en]
\setuplayout
[width=60\averagecharwidth]
\starttext
\samplefile{lorem}
\stoptext
Wolfgang
___________________________________________________________________________________
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
* [NTG-context] Re: typearea
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
2 siblings, 2 replies; 8+ messages in thread
From: Aditya Mahajan @ 2023-11-01 21:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
On Sun, 29 Oct 2023, Henning Hraban Ramm wrote:
> Am 29.10.23 um 11:37 schrieb Thomas Meyer:
> > 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:
>
> The module is from 2008, i.e. MkII. You can’t expect it to work with
> MkIV/LMTX.
Perhaps one option can be to ask module authors to rename mkii only modules to t-*.mkii, so that they are not loaded in mkiv/lmtx.
Aditya
[-- 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
* [NTG-context] Re: typearea
2023-11-01 21:47 ` Aditya Mahajan
@ 2023-11-02 8:00 ` Henning Hraban Ramm
2023-11-02 8:11 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2023-11-02 8:00 UTC (permalink / raw)
To: ntg-context
Am 01.11.23 um 22:47 schrieb Aditya Mahajan:
> On Sun, 29 Oct 2023, Henning Hraban Ramm wrote:
>
>> Am 29.10.23 um 11:37 schrieb Thomas Meyer:
>>> 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:
>>
>> The module is from 2008, i.e. MkII. You can’t expect it to work with
>> MkIV/LMTX.
>
> Perhaps one option can be to ask module authors to rename mkii only modules to t-*.mkii, so that they are not loaded in mkiv/lmtx.
As a module admin I could and would do that for this old stuff, there
are more fixes that I’d like to apply, but we’re still waiting for a
replacement for the Lioness server, if I’m not wrong.
Hraban
___________________________________________________________________________________
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
* [NTG-context] Re: typearea
2023-11-01 21:47 ` Aditya Mahajan
2023-11-02 8:00 ` Henning Hraban Ramm
@ 2023-11-02 8:11 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2023-11-02 8:11 UTC (permalink / raw)
To: ntg-context
On 11/1/2023 10:47 PM, Aditya Mahajan wrote:
> On Sun, 29 Oct 2023, Henning Hraban Ramm wrote:
>
>> Am 29.10.23 um 11:37 schrieb Thomas Meyer:
>>> 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:
>>
>> The module is from 2008, i.e. MkII. You can’t expect it to work with
>> MkIV/LMTX.
>
> Perhaps one option can be to ask module authors to rename mkii only modules to t-*.mkii, so that they are not loaded in mkiv/lmtx.
a good idea
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 / 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
* [NTG-context] Re: typearea
2023-10-29 11:13 ` Henning Hraban Ramm
2023-10-29 11:33 ` Wolfgang Schuster
2023-11-01 21:47 ` Aditya Mahajan
@ 2023-11-06 13:22 ` Thomas Meyer
2 siblings, 0 replies; 8+ messages in thread
From: Thomas Meyer @ 2023-11-06 13:22 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1304 bytes --]
Hi,
first of all, sorry for my late response.
Many thanks to everyone who commented on my problem.
With the change from the archive the module runs, also under LMTX.
But: what does alphabets=3.1 or alphabets=2.6 mean? I see what is
happening, but where can I get explanations about this and other terms?
Thanks in advance!
Regards
Thomas
Am 29.10.23 um 12:13 schrieb Henning Hraban Ramm:
> Am 29.10.23 um 11:37 schrieb Thomas Meyer:
>> 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:
>
> The module is from 2008, i.e. MkII. You can’t expect it to work with
> MkIV/LMTX.
> Just define your layout yourself.
>
> Hraban
>
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2643 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).