From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 900512225F for ; Tue, 19 Mar 2024 23:48:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9737348351D for ; Tue, 19 Mar 2024 23:47:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uxFMRbYItdXQ for ; Tue, 19 Mar 2024 23:47:39 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 56B1E481034 for ; Tue, 19 Mar 2024 23:47:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CB284480D86 for ; Tue, 19 Mar 2024 23:46:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xi7hbolg_-p7 for ; Tue, 19 Mar 2024 23:46:37 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.24; helo=dane.soverin.net; envelope-from=w.egger@boede.nl; receiver= Received: from dane.soverin.net (dane.soverin.net [185.233.34.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 80CF6480D39 for ; Tue, 19 Mar 2024 23:46:37 +0100 (CET) Received: from smtp.soverin.net (unknown [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4Tzmzx32Wrz10Bw for ; Tue, 19 Mar 2024 22:46:37 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4Tzmzw6WK5zPr for ; Tue, 19 Mar 2024 22:46:36 +0000 (UTC) From: Willi Egger Content-Type: multipart/mixed; boundary="Apple-Mail=_24183C70-C139-4838-8C8A-5E761E7E98AD" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Tue, 19 Mar 2024 23:46:35 +0100 References: <746e4120-6ee7-49df-a587-3cbafb4dec91@fiee.net> To: mailing list for ConTeXt users In-Reply-To: <746e4120-6ee7-49df-a587-3cbafb4dec91@fiee.net> X-Soverin-Authenticated: true Message-Id: <01CED7C4-5A48-4A43-8CB9-938AE630C865@boede.nl> Message-ID-Hash: NPW6E7UNLN4LKT23GE7XIVAU5MR77DA5 X-Message-ID-Hash: NPW6E7UNLN4LKT23GE7XIVAU5MR77DA5 X-MailFrom: w.egger@boede.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: command line arguments List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --Apple-Mail=_24183C70-C139-4838-8C8A-5E761E7E98AD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello Hraban, I puzzled a while. To me the =E2=80=94arguments=3D option does not work. = I saw then on the Wiki, that one can also add documentarguments as = =E2=80=94schema=3D2UP =E2=80=94numberofpages=3D16. I further changed to \startdocument =E2=80=A6 \stopdocument. Please look at the attached file Willi= --Apple-Mail=_24183C70-C139-4838-8C8A-5E761E7E98AD Content-Disposition: attachment; filename=impositiontest-2.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="impositiontest-2.tex" Content-Transfer-Encoding: 7bit % context --autopdf=auto --schema=2\*4\*2 --numberofpages=16 %\def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}}{1*8}} %\def\Pages{\doifelsedocumentargument{numberofpages}{\getdocumentargument{numberofpages}}{16}} \setuppapersize[A9,landscape][A7,landscape] \setupbodyfont[ss,10pt] \setuplayout[margin=0pt, width=fit, header=2.8ex, footer=2.8ex] \setupalign[middle,hilo] \setuppagenumbering [alternative=doublesided,location=footer] \setupheadertexts[\CONTEXT\ imposition test] \showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] % Where the block of pages is placed on the sheet % (relevant if there is space left over.) \setuplayout [location=middle,marking=on] \startbuffer[Fakepage] \strut \blank \bold{[\documentvariable{Schema}]} \vfill This is page \recurselevel \vfill \stopbuffer \startdocument [Schema={\getdocumentargument{schema}}, %{1*8}, Nofpages=\doifelsedocumentargument% {numberofpages}{\getdocumentargument{numberofpages}}{1}] \setuparranging[\documentvariable{Schema}] % Contents of Documentvariable "Schema" = \documentvariable{Schema} \dorecurse{\documentvariable{Nofpages}}{\getbuffer[Fakepage]\page} \stopdocument --Apple-Mail=_24183C70-C139-4838-8C8A-5E761E7E98AD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 19 Mar 2024, at 21:41, Hraban Ramm wrote: >=20 > Following up on the other imposition question, I'm trying to make an = example file that shows an imposition schema according to command line = arguments. >=20 > This way it works for the number of pages, as used in = \dorecurse{\Pages}{=E2=80=A6}, but not for the imposition schema. = Typesetting \Schema looks right, but \setuparranging doesn=E2=80=99t = work. Where's my error? >=20 > = \def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}= }{1*8}} > = \def\Pages{\doifelsedocumentargument{numberofpages}{\getdocumentargument{n= umberofpages}}{16}} >=20 > \setuparranging[\Schema] >=20 >=20 > Find the full example attached, I call it like >=20 > context --autopdf=3Dauto --arrange impositiontest.tex = --schema=3DTRYPTICHON --numberofpages=3D32 >=20 > Hraban >=20 > = ______________________________________________________= _____________________________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_24183C70-C139-4838-8C8A-5E761E7E98AD Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Apple-Mail=_24183C70-C139-4838-8C8A-5E761E7E98AD--