From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91565 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.comp.tex.context Subject: How to properly `\setuplayout' for several pages and then restore back? Date: Sat, 23 May 2015 20:36:22 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1584511878==" X-Trace: ger.gmane.org 1432406251 13171 80.91.229.3 (23 May 2015 18:37:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 18:37:31 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Sat May 23 20:37:14 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YwEIM-0002du-51 for gctc-ntg-context-518@m.gmane.org; Sat, 23 May 2015 20:37:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 563091021A for ; Sat, 23 May 2015 20:37:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id n1z2q1WXLNki for ; Sat, 23 May 2015 20:37:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CE6481022F for ; Sat, 23 May 2015 20:36:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E5FD101F9 for ; Sat, 23 May 2015 20:36:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nKoLPQw1k8fO for ; Sat, 23 May 2015 20:36:24 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C0CF2101E8 for ; Sat, 23 May 2015 20:36:24 +0200 (CEST) Original-Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4NIaNOH031622 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 23 May 2015 20:36:23 +0200 Original-Received: by lami4 with SMTP id i4so30396672lam.0 for ; Sat, 23 May 2015 11:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=am9YS93x2ziHsNjM8wvTfKz6DUU0/PXR0hzCVAr6Yy8=; b=N6bAtGtcAj2eUUbbhMnuMEOfQPw6/HwaziiiwKN4/BmA2VSkiF3kpSEr7ANrteZ05P TVksnY/NX+ZSQYTMf13R6MwVLOJlHA9WLJLJfwtzeKu/LtgWEf6tlOBt4lyfsy/m0jzN 5qxT5fideyQM8JK5f6tv/Q4UneD5PAkSTZQnlCUH04gD5NZPabuzxi+22fXEwlkm0kgG 44DXLtH7eHFEFObzcvX0sBr9xfQcuLNwQcSAgkrttAWvJ9ipIOjZTY73vCQY+4la4WQa xN1IMPWqz3ylb77KNx1kqPzotow5C+GLfW1bxVQUQkFp6SuRd5vMML1MnQCINtXd4XsM Uw9A== X-Received: by 10.112.142.232 with SMTP id rz8mr10935041lbb.74.1432406182803; Sat, 23 May 2015 11:36:22 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Sat, 23 May 2015 11:36:22 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::22d; country=FI; region=South Karelia; city=Lappeenranta; latitude=61.0667; longitude=28.1833; http://maps.google.com/maps?q=61.0667,28.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0ROvuAnti - 85729ea0f534 - 20150523 (trained as not-spam) Received-SPF: pass (filter1-til.mf.surf.net: domain of haroogan@gmail.com designates 2a00:1450:4010:c03::22d as permitted sender) receiver=filter1-til.mf.surf.net; client-ip=2a00:1450:4010:c03::22d; envelope-from=; helo=mail-la0-x22d.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:91565 Archived-At: --===============1584511878== Content-Type: multipart/alternative; boundary=089e0112cdfeb341ba0516c40d76 --089e0112cdfeb341ba0516c40d76 Content-Type: text/plain; charset=UTF-8 Hello, I have a table of contents that now has grown to span several pages. Before that I used the following setup: \definemakeup [contentspage] \setupmakeup [contentspage][% footerstate={stop}, headerstate={stop}, pagestate={stop}, page={yes}, bottom={\vfill}, top={}, ] \setuplayout [contentspage][% footer={\zeropoint}, header={\zeropoint}, ] \setuplayout [contentspage][% footerdistance={\zeropoint}, headerdistance={\zeropoint}, ] \startcontentspagemakeup \setupwhitespace [line] % ToC \stopcontentspagemakeup and that indeed worked when ToC spanned only one page. Since page breaking does not work inside `makeup', I had ti give it up. Now I try the following: \start \setupheader[state={stop}] \setupfooter[state={stop}] \setuppagenumbering[state={stop}] \setuplayout[% footer={\zeropoint}, header={\zeropoint}, ] \setuplayout[% footerdistance={\zeropoint}, headerdistance={\zeropoint}, ] % ToC \stop Why after `\stop' previous setups for `layout', `header', `footer', and `pagenumbering' do not restore? Is there a way to achieve this or do I have to manually duplicate the setups which were before `\start'? Thank you. Kind regards, Alexander --089e0112cdfeb341ba0516c40d76 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I h= ave a table of contents that now has grown to span several pages.=C2=A0 Bef= ore that I used the following setup:

\definemakeup
[conte= ntspage]

\setupmakeup
[contentspage][%
=C2=A0 footerstate=3D{stop},
=C2=A0 headerstat= e=3D{stop},
=C2=A0 =C2=A0 pagestate=3D{stop},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0p= age=3D{yes},
=C2=A0 =C2=A0 =C2=A0 =C2=A0bottom=3D{\vfill},
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 top=3D{},
]

\setuplayout
[contentspage][%
=C2=A0 footer=3D{\zeropoint},
=C2=A0 header=3D{\zeropoint}= ,
]=
= \setuplayout
[contentspage][%
=
= =C2=A0 footerdistance=3D{\zeropoint},
=C2=A0 headerdistance=3D{\zeropoint},
]

\sta= rtcontentspagemakeup

\setupwhitespace
[line]

% ToC

\= stopcontentspagemakeup

and that indeed worked when ToC spanned only one page.=C2= =A0 Since page breaking does not work inside `makeup', I had ti give it= up.=C2=A0 Now I try the following:

\start

\setupheader[state=3D{stop}]
\setupfooter[state=3D{stop}]

= \setuppagenumbering[state=3D{stop}]

\setuplayout[= %
=C2=A0 footer=3D{\zeropoi= nt},
=C2=A0 header=3D{\zero= point},
]

\setuplayout[%
=C2= =A0 footerdistance=3D{\zeropoint},
=C2=A0 headerdistance=3D{\zeropoint},
]

% ToC
\stop

Why after `\stop' previous setups for `layou= t', `header', `footer', and `pagenumbering' do not restore?= =C2=A0 Is there a way to achieve this or do I have to manually duplicate th= e setups which were before `\start'?=C2=A0 Thank you.

Kind regards,
Alexander

--089e0112cdfeb341ba0516c40d76-- --===============1584511878== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1584511878==--