From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117130 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith McKay via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \setuplayout parameters being ignored Date: Sun, 5 Mar 2023 17:41:41 +0000 Message-ID: References: <69ec19e6-25ea-7008-f77a-e8934492baf9@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9096133876760833946==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25216"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Keith McKay , mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 05 18:42:21 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pYsNJ-0006Ll-NV for gctc-ntg-context-518@m.gmane-mx.org; Sun, 05 Mar 2023 18:42:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 75FD2380A1C; Sun, 5 Mar 2023 18:42:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e6GX9F-9b2yk; Sun, 5 Mar 2023 18:41:59 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BF7733809F3; Sun, 5 Mar 2023 18:41:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8A2A73809F3 for ; Sun, 5 Mar 2023 18:41:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CiOAfzKOCcSx for ; Sun, 5 Mar 2023 18:41:57 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.42; helo=mail-lf1-f42.google.com; envelope-from=mckaymeister@gmail.com; receiver= Original-Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A1FCE3809D6 for ; Sun, 5 Mar 2023 18:41:57 +0100 (CET) Original-Received: by mail-lf1-f42.google.com with SMTP id s20so9801367lfb.11 for ; Sun, 05 Mar 2023 09:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tEB8KREW2bFQqFzzUqgTyTVpHAXY6MDrM/RjdtU5HIU=; b=K1IPEus2F58YS6SVjrls8oASwtUOkE0wGxB0P7w11Qqa7kS0XegsaoEOJ22Ohe2UL4 O/m0V7Y9Zz8o0pAXZ+EBhK+o/H+k2sQs8EhCF6wMokTGcO5G11uLtydsGBg5YL3RsN+u fIJk1KPrluSummCGG3nWq77Hkv+zAibT6CNbZbKTu5GgwjahMsEaZJSyCzqXqmnVyMLY 7RDEROr+2GoSZScp48E2Z2j/SgecV9yjStHpjvTMpB9pP4xyQj/Yx9Rf2/z8++kHRcrO GGDD3Q2n07cjh2fOch/pZPfccJMZHtG2rH256KTX7jv+PNh9fU0ZFlBVVGxcVXmXIpJg kPkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tEB8KREW2bFQqFzzUqgTyTVpHAXY6MDrM/RjdtU5HIU=; b=OoJnYsXe9MjpL7zX7qcOvffVwuQBPlCevNnFTvhroKZtKNougLX1dgpz982mhE8RY9 ZREJYnKRem71FR6RDDwrRMMsmiHfWt3bVRCo/DIVf2E8aW5FN0/F/T6ZhhY5IgUjxYN6 VX1MbgTITbWtORmQaMbNQwGpKvoKY9CisVZ/z0fsAZyaSKzXB4ekOod2N+2+ZvulT1ak qfHUsE0Z01KIJC5DKVcnIxxE/7/fE5XWU0UQVbO2ubePMxTK8zzKsaHyG1v3twvVaTYp 8Cemg9qX06TQDormfYh9ec+iQ56qoogLDNQNkoEOaRiqcO04ddb1VBhRahGlYTUboTnm mfWA== X-Gm-Message-State: AO0yUKWj1f6e99Ikc4jVG2af1wxjq0ZR49Z+NltjrjQLwnk6Tq04R4NN r9M3RongSEpll1MteVBNAzvZEfo+iZgfzDU4omI= X-Google-Smtp-Source: AK7set9dssjBLhWhno87t3Mm0DD3YWwy20ZpxL3Cm7b4RV9kNs6F2Hc5ShpK5nh/b5Qs777sMJ6o+Irpkc9j6/qP9Tk= X-Received: by 2002:ac2:5444:0:b0:4e1:f70a:3b11 with SMTP id d4-20020ac25444000000b004e1f70a3b11mr2462544lfn.2.1678038116814; Sun, 05 Mar 2023 09:41:56 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:117130 Archived-At: --===============9096133876760833946== Content-Type: multipart/alternative; boundary="000000000000df530205f62ab157" --000000000000df530205f62ab157 Content-Type: text/plain; charset="UTF-8" Many thanks Wolfgang. Useful tips indeed. Best Wishes Keith McKay On Sun, 5 Mar 2023, 17:24 Wolfgang Schuster, < wolfgang.schuster.lists@gmail.com> wrote: > Keith McKay schrieb am 05.03.2023 um 18:10: > > > > Thank you so much Wolfgang! I should have realised that. It's what I > > get for trying to write readable code. > > > You can use the = to align keys and values, e.g. > > \setuplayout > [backspace=2.5cm, > margin=0.5cm, > width=16cm, > header=1cm, > footer=1cm] > > Another useful method is to put large settings into a setups-blocks and > pass the block to a setup-command. > > \startsetups [apage] > \startMPcode > StartPage; > ... > StopPage; > \stopMPcode > \stopsetups > > \defineoverlay[apage][\directsetup{apage}] > > Wolfgang > > --000000000000df530205f62ab157 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks Wolfgang. Useful tips indeed.
Best Wishes
Keith McKay

On Sun, 5 Mar 2023, = 17:24 Wolfgang Schuster, <wolfgang.schuster.lists@gmail.com> wrote:
Keith McKay schrieb am 05.03.2023 um 18:10:
>
> Thank you so much Wolfgang! I should have realised that. It's what= I
> get for trying to write readable code.
>
You can use the =3D to align keys and values, e.g.

\setuplayout
=C2=A0=C2=A0 [backspace=3D2.5cm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 margin=3D0.5cm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 width=3D16cm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 header=3D1cm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 footer=3D1cm]

Another useful method is to put large settings into a setups-blocks and pass the block to a setup-command.

\startsetups [apage]
\startMPcode
StartPage;
...
StopPage;
\stopMPcode
\stopsetups

\defineoverlay[apage][\directsetup{apage}]

Wolfgang

--000000000000df530205f62ab157-- --===============9096133876760833946== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============9096133876760833946==--