From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101626 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: The dimensions of the first page are not taken into account Hello, I want to create a template with a header on the first page for student testing. If the document contains text that is on more than one page, it works perfectly. On the other hand, if the document has text on one page, it does not work. Date: Thu, 16 Aug 2018 11:59:09 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6193842098548935106==" X-Trace: blaine.gmane.org 1534413463 5196 195.159.176.226 (16 Aug 2018 09:57:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2018 09:57:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 16 11:57:39 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fqF2B-0001GT-BQ for gctc-ntg-context-518@m.gmane.org; Thu, 16 Aug 2018 11:57:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4234450FDF; Thu, 16 Aug 2018 11:59:34 +0200 (CEST) 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 gYFkJyzZ_WZO; Thu, 16 Aug 2018 11:59:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8CDF550FE0; Thu, 16 Aug 2018 11:59:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A0A7450FE0 for ; Thu, 16 Aug 2018 11:59:31 +0200 (CEST) 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 IUgSyuq1vIw7 for ; Thu, 16 Aug 2018 11:59:31 +0200 (CEST) Original-Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1E5AD50FDF for ; Thu, 16 Aug 2018 11:59:21 +0200 (CEST) Original-Received: by mail-wr1-f45.google.com with SMTP id v90-v6so435685wrc.0 for ; Thu, 16 Aug 2018 02:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=buMh/g6FA043LPk5iTRsHZJwSzTsrrumC1EiLNmln1A=; b=DM1INvQ2dw+EIfrTKmz/J8ukjCFOv9AKOV7PF28leGiTP2H92lc4gEx14fPKXoE2kP ij5xtadWmBV2VThTu/vkLgCj66968vWL9jrTIxoU0AS+XlAsjnOrzHJaSKV6YVXCz4V3 xgnkqqiyX+M0fZl8cjDhj3tP8WPYKiJ5FuHb2ATFvuHF/nBbd8kkyIHi+fR3uCLrFFEl v2Cfw8UjF/77Af57qM3g/Or+T38oNf5BlDRakFNPcC+4J6YgmA3qAJDauFnF/8BnnIUN ow8Mk25QtXSITzzF28jIfilnRU8uUgUrPplwBLFOOpZoFTju+6wEtRX/n2Mu4AqbhwHo q/vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=buMh/g6FA043LPk5iTRsHZJwSzTsrrumC1EiLNmln1A=; b=dDuL7R8C1FcZsXoKQ5LawImFwyVw0pI6orbZY5olIYA5M+FAftCg3rdZb0s0cMWIwi 9wznzvcuGj7nr0Bk0AcFiLjERO95tku6czsX46J7Ir4XDzbevd78N0gam9BV4O/SZf1F ZInGH2WeSwfS4R9YT88w12Asb+jX1aCmrimaDHhKsu/V9f89t0f9+BqP37eYcv4MLwQ/ Slgy53SW8p0qjfGaOYfB5peig35ovQARGSP7e4/5rIDBYt3JJqWK1ZE4GFJrxqj1MYCP ufIvDUjyJpj1ITXFnRtR40+kTFBNZpTInka+jO6LR5y4sE6FgU6F3BhQRUw31T+FyM/A r4Eg== X-Gm-Message-State: AOUpUlEIMNpPxEP4oCERuRoxITig7xkGQjKTHo60aMWvEDoj1U+woNIz 8mFt4oPbjeRPF0LRsvnqaGbDNKUVCVNhwvn80DsjcLfi X-Google-Smtp-Source: AA+uWPwIFCNxGBOngZ2n3GoAeg0ZZba5Wjl3Gxyf+4T+/3BWYwPGQkyByankk8kffvKoWmYGiU1HYCqgNL3c7jeTP7g= X-Received: by 2002:a5d:4452:: with SMTP id x18-v6mr20011617wrr.227.1534413560650; Thu, 16 Aug 2018 02:59:20 -0700 (PDT) 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:101626 Archived-At: --===============6193842098548935106== Content-Type: multipart/alternative; boundary="000000000000389f3005738a7f75" --000000000000389f3005738a7f75 Content-Type: text/plain; charset="UTF-8" Hello, I want to create a template with a header on the first page for student testing. If the document contains text that is on more than one page, it works perfectly. On the other hand, if the document has text on one page, it does not work. Thanks. Fabrice \setuppagenumbering[alternative=,location=] \showframe \definelayout [firstpage] [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \definelayout [first] [firstpage] \setuplayout [topspace=10mm, header=\zeropoint, footer=10mm, height=middle, backspace=20mm, width=middle] \setupbackgrounds [header] [text] [frame=off, topframe=on, bottomframe=on, framecolor=red, rulethickness=1pt] \setupheadertexts [First page] \starttext \dorecurse{8}{\input knuth} % ok % \dorecurse{8}{\input knuth} no ok \stoptext --000000000000389f3005738a7f75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I want to create a template with = a header on the first page for student testing. If the documen= t contains text that is on more than one page, it works perfectly. <= span>On the other hand, if the document has text on one page, it does not w= ork.
Thanks.
Fabrice

\setuppagenumbering[alternative= =3D,location=3D]
=C2=A0
=C2=A0 \showframe
=C2=A0
=C2=A0 \defin= elayout
=C2=A0=C2=A0=C2=A0 [firstpage]
=C2=A0=C2=A0=C2=A0 [topspace= =3D10mm,
=C2=A0=C2=A0=C2=A0=C2=A0 header=3D10mm,
=C2=A0=C2=A0=C2=A0= =C2=A0 footer=3D10mm,
=C2=A0=C2=A0=C2=A0=C2=A0 height=3Dmiddle,
=C2= =A0=C2=A0=C2=A0=C2=A0 backspace=3D20mm,
=C2=A0=C2=A0=C2=A0=C2=A0 width= =3Dmiddle]

=C2=A0 \definelayout
=C2=A0=C2=A0=C2=A0 [first]
=C2= =A0=C2=A0=C2=A0 [firstpage]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0 \s= etuplayout
=C2=A0=C2=A0 [topspace=3D10mm,
=C2=A0=C2=A0=C2=A0 header= =3D\zeropoint,
=C2=A0=C2=A0=C2=A0 footer=3D10mm,
=C2=A0=C2=A0=C2=A0 h= eight=3Dmiddle,
=C2=A0=C2=A0=C2=A0 backspace=3D20mm,
=C2=A0=C2=A0=C2= =A0 width=3Dmiddle]

=C2=A0 \setupbackgrounds
=C2=A0=C2=A0 [header= ]
=C2=A0=C2=A0 [text]
=C2=A0=C2=A0 [frame=3Doff,
=C2=A0=C2=A0=C2= =A0 topframe=3Don,
=C2=A0=C2=A0=C2=A0 bottomframe=3Don,
=C2=A0=C2=A0= =C2=A0 framecolor=3Dred,
=C2=A0=C2=A0=C2=A0 rulethickness=3D1pt]

= =C2=A0 \setupheadertexts
=C2=A0=C2=A0=C2=A0 [First page]

=C2=A0 \= starttext
=C2=A0 \dorecurse{8}{\input knuth}=C2=A0 % ok

%=C2=A0 \= dorecurse{8}{\input knuth}=C2=A0 no ok
=C2=A0 \stoptext
--000000000000389f3005738a7f75-- --===============6193842098548935106== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6193842098548935106==--