[NTG-context] Re: typearea
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 ___ ___ 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 ___
[NTG-context] Re: typearea
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 ___
[NTG-context] Re: typearea
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 ___
[NTG-context] Re: typearea
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___ 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 ___
[NTG-context] Re: typearea
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 ___
[NTG-context] Re: typearea
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 ___
[NTG-context] Re: typearea
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 { \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 \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 ___ ___ 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 ___