<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">Hello,</span><br><span>I want to create a template with a header on the first page for student testing.</span> <span>If the document contains text that is on more than one page, it works perfectly.</span> <span>On the other hand, if the document has text on one page, it does not work.</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span>Thanks.</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span>Fabrice</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span><br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span>\setuppagenumbering[alternative=,location=]<br> <br>  \showframe<br>  <br>  \definelayout<br>    [firstpage]<br>    [topspace=10mm,<br>     header=10mm,<br>     footer=10mm,<br>     height=middle,<br>     backspace=20mm,<br>     width=middle]<br><br>  \definelayout<br>    [first]<br>    [firstpage]<br>      <br>  \setuplayout<br>   [topspace=10mm,<br>    header=\zeropoint,<br>    footer=10mm,<br>    height=middle,<br>    backspace=20mm,<br>    width=middle]<br><br>  \setupbackgrounds<br>   [header]<br>   [text]<br>   [frame=off,<br>    topframe=on,<br>    bottomframe=on,<br>    framecolor=red,<br>    rulethickness=1pt]<br><br>  \setupheadertexts<br>    [First page]<br><br>  \starttext<br>  \dorecurse{8}{\input knuth}  % ok</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span></span></span><span id="gmail-result_box" class="gmail-" lang="en"><span><br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span>%  <span id="gmail-result_box" class="gmail-" lang="en"><span>\dorecurse{8}{\input knuth}  no ok</span></span><br>  \stoptext<br></span></span></div></div>