From: Thomas Meyer <thomasgmeyer@t-online.de>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: typearea
Date: Sun, 29 Oct 2023 12:07:09 +0100 [thread overview]
Message-ID: <97e6e5a9-c324-4695-9e4d-e7b47b17c9ea@t-online.de> (raw)
In-Reply-To: <0f95e9b8-b07c-4a3f-b96f-4c216cea52fa@t-online.de>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-10-29 11:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-29 10:37 [NTG-context] typearea Thomas Meyer
2023-10-29 11:07 ` Thomas Meyer [this message]
2023-10-29 11:13 ` [NTG-context] typearea 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=97e6e5a9-c324-4695-9e4d-e7b47b17c9ea@t-online.de \
--to=thomasgmeyer@t-online.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).