<div dir="ltr"><div class="gmail_default" style="font-family:monospace"><span style="font-family:arial,sans-serif">On Sun, May 24, 2015 at 11:20 AM, Hans Hagen </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>></span><span style="font-family:arial,sans-serif"> wrote:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 5/23/2015 8:36 PM, Alexander Shukaev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have a table of contents that now has grown to span several pages.<br>
Before that I used the following setup:<br>
<br>
\definemakeup<br>
[contentspage]<br>
<br>
\setupmakeup<br>
[contentspage][%<br>
   footerstate={stop},<br>
   headerstate={stop},<br>
     pagestate={stop},<br>
          page={yes},<br>
        bottom={\vfill},<br>
           top={},<br>
]<br>
<br>
\setuplayout<br>
[contentspage][%<br>
   footer={\zeropoint},<br>
   header={\zeropoint},<br>
]<br>
<br>
\setuplayout<br>
[contentspage][%<br>
   footerdistance={\zeropoint},<br>
   headerdistance={\zeropoint},<br>
]<br>
<br>
\startcontentspagemakeup<br>
<br>
\setupwhitespace<br>
[line]<br>
<br>
% ToC<br>
<br>
\stopcontentspagemakeup<br>
<br>
and that indeed worked when ToC spanned only one page.  Since page<br>
breaking does not work inside `makeup', I had ti give it up.  Now I try<br>
the following:<br>
<br>
\start<br>
<br>
\setupheader[state={stop}]<br>
\setupfooter[state={stop}]<br>
<br>
\setuppagenumbering[state={stop}]<br>
<br>
\setuplayout[%<br>
   footer={\zeropoint},<br>
   header={\zeropoint},<br>
]<br>
<br>
\setuplayout[%<br>
   footerdistance={\zeropoint},<br>
   headerdistance={\zeropoint},<br>
]<br>
<br>
% ToC<br>
<br>
\stop<br>
<br>
Why after `\stop' previous setups for `layout', `header', `footer', and<br>
`pagenumbering' do not restore?  Is there a way to achieve this or do I<br>
have to manually duplicate the setups which were before `\start'?  Thank<br>
you.<br>
</blockquote>
<br></div></div>
switching layouts is tricky as there is a mix between local and global settings and actions around the page crossing<br>
<br>
\startlayout[name]<br>
<br>
\stoplayout<br>
<br>
also, when there is a layout defined with the same name as a makeup, then the makeup will take that layout<br>
<br>
-----------------------------------------------------------------<br>
                                          Hans Hagen | PRAGMA ADE<br>
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
    tel: <a href="tel:038%20477%2053%2069" value="+49384775369" target="_blank">038 477 53 69</a> | voip: <a href="tel:087%20875%2068%2074" value="+49878756874" target="_blank">087 875 68 74</a> | <a href="http://www.pragma-ade.com" target="_blank">www.pragma-ade.com</a><br>
                                             | <a href="http://www.pragma-pod.nl" target="_blank">www.pragma-pod.nl</a><br>
-----------------------------------------------------------------<br>
___________________________________________________________________________________<br>
If your question is of interest to others as well, please add an entry to the Wiki!<br>
<br>
maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
webpage  : <a href="http://www.pragma-ade.nl" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" target="_blank">http://tex.aanhet.net</a><br>
archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
wiki     : <a href="http://contextgarden.net" target="_blank">http://contextgarden.net</a><br>
___________________________________________________________________________________</blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:monospace">​Works as intended, thanks!​</div><br></div></div>