From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105351 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Problem with the bottom line of a header Date: Tue, 22 Oct 2019 10:46:58 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7408004794052247693==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="116732"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 22 10:48:42 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMpqM-000UEz-Cn for gctc-ntg-context-518@m.gmane.org; Tue, 22 Oct 2019 10:48:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ADCEF162290; Tue, 22 Oct 2019 10:48:09 +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 5QO28aSvEiro; Tue, 22 Oct 2019 10:48:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C7EEC1622C3; Tue, 22 Oct 2019 10:48:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B0D951622D9 for ; Tue, 22 Oct 2019 10:48:07 +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 imwTUXZnPPlu for ; Tue, 22 Oct 2019 10:48:07 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.50; helo=mail-wr1-f50.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 22DD8162290 for ; Tue, 22 Oct 2019 10:48:07 +0200 (CEST) Original-Received: by mail-wr1-f50.google.com with SMTP id o28so17036906wro.7 for ; Tue, 22 Oct 2019 01:48:07 -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; bh=XZd+tJPzREv31t5jFY3fw2+R/RvY7Vlo/cjqd1CYDLA=; b=dk6fwGWU5CBPu0GnOX0haXzc79lMta2uDUEd/Nzhvxm/bKpuPLzGiST4xl4v/LI3hx ybjK+E+EW/QRKEJonGIxmvjrWZ4NaJ1jVnuWz1PdDRwG15pubc86QbVIfsV6S2rl93Jf 685GDMZZipZLKUaUG/qfm5gqb+hADX05tXZLGPsOR4aBsPPX/6Hu3keMcg9XlCNUDDPP ikeyotCncYXWLx8y4LNI1HVgcwDOfAVfwvuF/haOLBxCNNyyHBjingQJBmuQqwu4AQ0m XvSII2cifX65+ZNclzEvkRgvf/7a5l+SI8b2+GxoSBZ5BdNSPYLMy60pKCKcBnkffMBM /JIQ== 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; bh=XZd+tJPzREv31t5jFY3fw2+R/RvY7Vlo/cjqd1CYDLA=; b=oEu16xYVsC5q5GqZibEPhlndH1kM0/XHo9CP8y5g3JUYFAECweHdhT3q10LZp3c1au jIRshYPwe8r1ew3ovAJW9k1zWCXjiiyfHl0YE3g3SC1tCaldJ1JybxUBtUmXj2nVNuWS jyJ33pRePw4slaKzN17DoFB7M45cJKGfz7t/hRK8PQRzXuUWaxAv0rZ2LRGyOxXUWIBh X+ghLnmphxvfQv5i1nCFVRtrMBKgkiFEKhX/E5A5CwFYljAiqFWXryHXlxgkd2O6BrKU oHw5gkZq5FY2wCBQTjxRB/mFetxxcV7rrBw2MoEpPJwaQgWXwDLcA2RaF+8VJo3SZ9qx IO6w== X-Gm-Message-State: APjAAAVUC9Oqv44cmh4dFfKnyAWJydEPCrilDo2cNBVDNSlj8IESUZQe nrjcd3eTCQnE8NvLPC87K+VDNLSa5gyEgfKsp9c38erPeV8= X-Google-Smtp-Source: APXvYqwqBNkmtybPcZw+wb7BCXlaVe8S0EpPwjYhre9ZBDzvQXcYQqbjxC3WIzCqw4lQiJXg2bIlRihprdOlYLcsZh8= X-Received: by 2002:adf:e302:: with SMTP id b2mr2239267wrj.298.1571734086305; Tue, 22 Oct 2019 01:48:06 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:105351 Archived-At: --===============7408004794052247693== Content-Type: multipart/alternative; boundary="000000000000e54e1705957bdb49" --000000000000e54e1705957bdb49 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I can not adjust the bottom line of my header even after playing with location=3D and boffset.=3D Thank you. Fabrice \definelayout [first] [topspace=3D1cm, backspace=3D3cm, cutspace=3D3cm, leftmargin=3D.75cm, leftmargindistance=3D.5cm, rightmargin=3D1.25cm, rightmargindistance=3D1cm, header=3D1cm, headerdistance=3D1cm, footer=3D1cm, footerdistance=3D1cm, width=3Dmiddle, height=3Dmiddle, location=3Dmiddle] \setuplayout [topspace=3D1cm, backspace=3D3cm, cutspace=3D3cm, leftmargin=3D.75cm, leftmargindistance=3D.5cm, rightmargin=3D1.25cm, rightmargindistance=3D1cm, header=3D\zeropoint, headerdistance=3D1cm, footer=3D1cm, footerdistance=3D1cm, width=3Dmiddle, height=3Dmiddle, location=3Dmiddle] \definelayout [last] [first] \setupbackgrounds [header] [text] [frame=3Doff, topframe=3Doff, bottomframe=3Don, framecolor=3D, rulethickness=3D1pt] \defineframed [headerframed] [frame=3Doff, height=3Dfit, width=3Dfit] \startuseMPgraphic{framewithshadow} path p; p:=3Dorigin--(1.05*OverlayWidth,0)--(1.05*OverlayWidth,1.05*OverlayHeight)-= - (0,1.05*OverlayHeight)--cycle; fill p shifted (3,-3); fill p withcolor 0.8white; draw p; setbounds currentpicture to p; \stopuseMPgraphic \defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed] [foregroundstyle=3Dbold,background=3Dframewithshadow] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number} \stopframed}] \setupheadertexts [{\startframed [headerframed] [align=3Dflushleft,foregroundstyle=3D] Lyc=C3=A9e LA SALLE, Lille\\ \getvariable{headertext}{location} \stopframed}] [{\startframed [headerframed] [align=3Dflushright,foregroundstyle=3D] \date[d=3D\getvariable{headertext}{day},m=3D\getvariable{headertext}{mon= th}, y=3D\getvariable{headertext}{year}] [D,month,{ },year] \stopframed}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title=3D{Corrig=C3=A9 du devoir maison}, number=3D{1}, day=3D{22}, month=3D{10}, year=3D{2019}, location=3D{Secondes GTE-GTF}, time=3D{}] \starttext \input knuth \stoptext --000000000000e54e1705957bdb49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I can not adjust the bottom line of my header even after = playing with location=3D and boffset.=3D
Thank y= ou.
Fabrice

= \definelayout
=C2=A0 =C2=A0 [first]
=C2=A0 =C2=A0 [t= opspace=3D1cm,
=C2=A0 =C2=A0 =C2=A0backspace=3D3cm,
=C2=A0 =C2=A0 =C2= =A0cutspace=3D3cm,
=C2=A0 =C2=A0 =C2=A0leftmargin=3D.75cm,
=C2=A0 =C2= =A0 =C2=A0leftmargindistance=3D.5cm,
=C2=A0 =C2=A0 =C2=A0rightmargin=3D1= .25cm,
=C2=A0 =C2=A0 =C2=A0rightmargindistance=3D1cm,
=C2=A0 =C2=A0 = =C2=A0header=3D1cm,
=C2=A0 =C2=A0 =C2=A0headerdistance=3D1cm,
=C2=A0 = =C2=A0 =C2=A0footer=3D1cm,
=C2=A0 =C2=A0 =C2=A0footerdistance=3D1cm,
= =C2=A0 =C2=A0 =C2=A0width=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0height=3Dmiddle,=
=C2=A0 =C2=A0 =C2=A0location=3Dmiddle]

=C2=A0 \setuplayout
= =C2=A0 =C2=A0 [topspace=3D1cm,
=C2=A0 =C2=A0 =C2=A0backspace=3D3cm,
= =C2=A0 =C2=A0 =C2=A0cutspace=3D3cm,
=C2=A0 =C2=A0 =C2=A0leftmargin=3D.75= cm,
=C2=A0 =C2=A0 =C2=A0leftmargindistance=3D.5cm,
=C2=A0 =C2=A0 =C2= =A0rightmargin=3D1.25cm,
=C2=A0 =C2=A0 =C2=A0rightmargindistance=3D1cm,<= br>=C2=A0 =C2=A0 =C2=A0header=3D\zeropoint,
=C2=A0 =C2=A0 =C2=A0headerdi= stance=3D1cm,
=C2=A0 =C2=A0 =C2=A0footer=3D1cm,
=C2=A0 =C2=A0 =C2=A0f= ooterdistance=3D1cm,
=C2=A0 =C2=A0 =C2=A0width=3Dmiddle,
=C2=A0 =C2= =A0 =C2=A0height=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0location=3Dmiddle]
=C2=A0 \definelayout
=C2=A0 =C2=A0 [last]
=C2=A0 =C2=A0 [first]
<= br>=C2=A0 \setupbackgrounds
=C2=A0 =C2=A0 [header]
=C2=A0 =C2=A0 [tex= t]
=C2=A0 =C2=A0 [frame=3Doff,
=C2=A0 =C2=A0 =C2=A0topframe=3Doff,=C2=A0 =C2=A0 =C2=A0bottomframe=3Don,
=C2=A0 =C2=A0 =C2=A0framecolor=3D= ,
=C2=A0 =C2=A0 =C2=A0rulethickness=3D1pt]

=C2=A0 \defineframed=C2=A0 =C2=A0 [headerframed]
=C2=A0 =C2=A0 [frame=3Doff,
=C2=A0 =C2= =A0 =C2=A0height=3Dfit,
=C2=A0 =C2=A0 =C2=A0width=3Dfit]

=C2=A0 = =C2=A0 \startuseMPgraphic{framewithshadow}
=C2=A0 =C2=A0 =C2=A0 path p;<= br>=C2=A0 =C2=A0 =C2=A0 p:=3Dorigin--(1.05*OverlayWidth,0)--(1.05*OverlayWi= dth,1.05*OverlayHeight)--
=C2=A0 =C2=A0 (0,1.05*OverlayHeight)--cycle;=
=C2=A0 =C2=A0 =C2=A0 fill p shifted (3,-3);
=C2=A0 =C2=A0 =C2=A0 fil= l p withcolor 0.8white;
=C2=A0 =C2=A0 =C2=A0 draw p;
=C2=A0 =C2=A0 = =C2=A0 setbounds currentpicture to p;
=C2=A0 =C2=A0 \stopuseMPgraphic
=C2=A0 =C2=A0 \defineoverlay[framewithshadow][\useMPgraphic{framewiths= hadow}]

=C2=A0 =C2=A0 \definecolor[ColorA][0.8(white)]
=C2=A0 =C2= =A0
=C2=A0 =C2=A0 \startsetups [headertext]

=C2=A0 \setupheaderte= xts
=C2=A0 =C2=A0 =C2=A0[{\startframed [headerframed]
=C2=A0 =C2=A0 = =C2=A0[foregroundstyle=3Dbold,background=3Dframewithshadow]
=C2=A0 =C2= =A0 =C2=A0\getvariable{headertext}{title} n\high{o}\,\getvariable{headertex= t}{number}
=C2=A0 =C2=A0 =C2=A0 =C2=A0\stopframed}]

=C2=A0 \setup= headertexts
=C2=A0 =C2=A0 =C2=A0[{\startframed [headerframed]
=C2=A0 = =C2=A0 =C2=A0[align=3Dflushleft,foregroundstyle=3D]
=C2=A0 =C2=A0 =C2=A0= Lyc=C3=A9e LA SALLE, Lille\\
=C2=A0 =C2=A0 =C2=A0\getvariable{headertext= }{location}
=C2=A0 =C2=A0 =C2=A0 =C2=A0\stopframed}]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{\startframed [headerframed]
=C2=A0 =C2=A0 =C2=A0= =C2=A0[align=3Dflushright,foregroundstyle=3D]
=C2=A0 =C2=A0\date[d=3D= \getvariable{headertext}{day},m=3D\getvariable{headertext}{month}, =C2=A0 = =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 y=3D\getvariable{headert= ext}{year}] [D,month,{ },year]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopframed}]=

=C2=A0 \stopsetups

=C2=A0 \setvariable{headertext}{set}{\dir= ectsetup{headertext}}

=C2=A0 \setvariables
=C2=A0 =C2=A0 [headert= ext]
=C2=A0 =C2=A0 [title=3D{Corrig=C3=A9 du devoir maison},
=C2=A0 = =C2=A0 =C2=A0number=3D{1},
=C2=A0 =C2=A0 =C2=A0day=3D{22},
=C2=A0 =C2= =A0 =C2=A0month=3D{10},
=C2=A0 =C2=A0 =C2=A0year=3D{2019},
=C2=A0 =C2= =A0 =C2=A0location=3D{Secondes GTE-GTF},
=C2=A0 =C2=A0 =C2=A0time=3D{}]<= br>
=C2=A0\starttext

=C2=A0 \input knuth

=C2=A0\stoptext
--000000000000e54e1705957bdb49-- --===============7408004794052247693== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7408004794052247693==--