From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98754 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: About \setupbackgrounds (again) Date: Wed, 9 Aug 2017 16:48:00 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8094111699387528350==" X-Trace: blaine.gmane.org 1502290183 29624 195.159.176.226 (9 Aug 2017 14:49:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Aug 2017 14:49:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 09 16:49:37 2017 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 1dfSIj-0007Nk-6D for gctc-ntg-context-518@m.gmane.org; Wed, 09 Aug 2017 16:49:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5EA701052B1; Wed, 9 Aug 2017 16:48:18 +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 7LDwlAIefACd; Wed, 9 Aug 2017 16:48:13 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0E7DB104F23; Wed, 9 Aug 2017 16:48:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 24F901052AF for ; Wed, 9 Aug 2017 16:48:12 +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 pQyS4Wgv90I3 for ; Wed, 9 Aug 2017 16:48:11 +0200 (CEST) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (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 219831052A0 for ; Wed, 9 Aug 2017 16:48:01 +0200 (CEST) Original-Received: by mail-wm0-f49.google.com with SMTP id t201so33988647wmt.1 for ; Wed, 09 Aug 2017 07:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nzOB87mzu4URT0IWZlx8KBeaMlF/K32N1TGyCY0+2f8=; b=bZXpTUnLgfuQ9MuHLidaScquqhkSZxA27DTLncMi0uqb8Kze7Vq4dF2tcjv5euoNqb Wa3G0svMmdUIHWp85Hh6JUf1Ya7/NsbmF67xcEqnexi+JqFBT3Fo3kCAIV5Lk7qOEm1Z /qpTbVAMWEnviXbiz/jg/s68Syo+oG6eyAlUkhUN1ywDB0XR0YwVygI4E8BgVP8mED1R DmIJd6V3dzNHM0LHmgBOlJGeo2RG7mHPagPBhhyQRKxUdu6s0f7j/Wd5SzFTpux21J6Q klEzInyiDdQpBbvpa50UoaTCrc7WFgMnt3JDQYdsNW7G5zEH0C8SopUljP9UgPRW89Ta IDqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nzOB87mzu4URT0IWZlx8KBeaMlF/K32N1TGyCY0+2f8=; b=pLrKU4k8KX+HgUHUZbJiMf3FjL+wVFsZHbWdlLe0wf+ABr4aMfPLwNRe3fQiPHUA1T FSbz2r/4AOX3eM7PED/9a38w8UfiL1QkgkH6Wzk2sfXiyEAztfLEiAoicTXzS9WIbC2I WNCqSnKKf6KTZ3LR8VnatlZGHoTgXs7WNJxV46EKRuZ26P/A29WijnTQwZTVBhch7DiZ XSVHfVGWCVvAtjLUbvy0L58E4ATC8K4Ju+90Ro97wkAeQ3RGo9Q7PVqX0GENLQt/xMZH wqRLw9V2locHMxkPMhqLMt4WH0xjAAoepZnpuNb9vpbV81ixwWaPFipQJDaWAK5fcBmO jEpw== X-Gm-Message-State: AHYfb5hWlWB8W6EvWaICEVPDLzEYByRVeNCzP9V4grTw0q2rA8MSWM9R Ny6BNKkx9JbPqjG0MLFOdSYTXSl38kYc X-Received: by 10.80.154.195 with SMTP id p61mr8393058edb.129.1502290080621; Wed, 09 Aug 2017 07:48:00 -0700 (PDT) Original-Received: by 10.80.205.92 with HTTP; Wed, 9 Aug 2017 07:48:00 -0700 (PDT) In-Reply-To: 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:98754 Archived-At: --===============8094111699387528350== Content-Type: multipart/alternative; boundary="f403045c27609aeb8a0556532af1" --f403045c27609aeb8a0556532af1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable HI Pablo, This works perfectly Thank you Fabrice 2017-08-09 16:23 GMT+02:00 Pablo Rodriguez : > On 08/09/2017 02:59 PM, Fabrice Couvreur wrote: > > Hello, > > How do I make the header appear on the first page only ? > > Thank you > > Fabrice > > Hello Fabrice, > > a workaround would be to suppress header dimension for all pages other > than the first one. > > \definelayout > [noheader] > [header=3D2\lineheight, > headerdistance=3D\lineheight, > backspace=3D2cm, > width=3Dmiddle, > topspace=3D\lineheight] > > \setuplayout > [header=3D\zeropoint, > headerdistance=3D3\lineheight, > backspace=3D2cm, > width=3Dmiddle, > topspace=3D2cm] > > \definelayout[1][noheader] > > \setupbackgrounds[header,state=3Dstart][text][frame=3Doff, > bottomframe=3Don,framecolor=3Dgray,rulethickness=3D2pt] > > \setupheader[style=3Dbold] > > \setuppagenumbering > [alternative=3D, > location=3Dfooter] > > \defineframed[headerframed] > [frame=3Doff, > location=3Ddepth, > bottomoffset=3D\lineheight, > align=3Dmiddle, > width=3Dfit] > > \setupheadertexts[\headerframed{\ss \sc \bf > \red Contr=C3=B4le n\high{o}\,1 \\ }] > \setupheadertexts[\headerframed{\tfx \ss Lyc=C3=A9e JANSON DE SAILLY\= \ > 31 juillet 2017}] > [\headerframed{\tfx \ss T\high{le} ES 2 \\ Dur=C3=A9e 1 heure 30}= ] > > \starttext > \dorecurse{6}{\input knuth} > \stoptext > > Just in case it helps, > > Pablo > -- > http://www.ousia.tk > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --f403045c27609aeb8a0556532af1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI Pablo,
This works perfectly
Thank you
Fabrice

2017-08-09 16:23 GMT+02:00 Pablo Rodriguez <= ;oinos@gmx.es>:
On 08/09/2017 02:59= PM, Fabrice Couvreur wrote:
> Hello,
> How do I make the header appear on the first page only ?
> Thank you
> Fabrice

Hello Fabrice,

a workaround would be to suppress header dimension for all pages other
than the first one.

=C2=A0 =C2=A0 \definelayout
=C2=A0 =C2=A0 =C2=A0 [noheader]
=C2=A0 =C2=A0 =C2=A0 [header=3D2\lineheight,
=C2=A0 =C2=A0 =C2=A0 =C2=A0headerdistance=3D\lineheight,
=C2=A0 =C2=A0 =C2=A0 =C2=A0backspace=3D2cm,
=C2=A0 =C2=A0 =C2=A0 =C2=A0width=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0 =C2=A0topspace=3D\lineheight]

=C2=A0 =C2=A0 \setuplayout
=C2=A0 =C2=A0 =C2=A0 [header=3D\zeropoint,
=C2=A0 =C2=A0 =C2=A0 =C2=A0headerdistance=3D3\lineheight,
=C2=A0 =C2=A0 =C2=A0 =C2=A0backspace=3D2cm,
=C2=A0 =C2=A0 =C2=A0 =C2=A0width=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0 =C2=A0topspace=3D2cm]

=C2=A0 =C2=A0 \definelayout[1][noheader]

=C2=A0 =C2=A0 \setupbackgrounds[header,state=3Dstart][text][frame=3Dof= f,
bottomframe=3Don,framecolor=3Dgray,rulethickness=3D2pt]

=C2=A0 =C2=A0 \setupheader[style=3Dbold]

=C2=A0 =C2=A0 \setuppagenumbering
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [alternative=3D,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 location=3Dfooter]

=C2=A0 =C2=A0 \defineframed[headerframed]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[frame=3Doff,=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 location=3Dd= epth,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 bottomoffset= =3D\lineheight,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 align=3Dmidd= le,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 width=3Dfit]=

=C2=A0 =C2=A0 \setupheadertexts[\headerframed{\ss \sc \bf
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \red Contr=C3=B4le n\high{o}\,1 \\ }]
=C2=A0 =C2=A0 \setupheadertexts[\headerframed{\tfx \ss Lyc=C3=A9e JANS= ON DE SAILLY\\
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 31 juillet 2017}]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [\headerframed{\tfx \ss T\high{le} ES 2 \\ Dur= =C3=A9e 1 heure 30}]

=C2=A0 =C2=A0 \starttext
=C2=A0 =C2=A0 \dorecurse{6}{\input knuth}
=C2=A0 =C2=A0 \stoptext

Just in case it helps,

Pablo
--
http:/= /www.ousia.tk
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--f403045c27609aeb8a0556532af1-- --===============8094111699387528350== 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 --===============8094111699387528350==--