Problem with the bottom line of a header
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
Hello, I can not adjust the bottom line of my header even after playing with location= and boffset.= Thank you. Fabrice \definelayout [first] [topspace=1cm, backspace=3cm, cutspace=3cm, leftmargin=.75cm, leftmargindistance=.5cm, rightmargin=1.25cm, rightmargindistance=1cm, header=1cm, headerdistance=1cm, footer=1cm, footerdistance=1cm, width=middle, height=middle, location=middle] \setuplayout [topspace=1cm, backspace=3cm, cutspace=3cm, leftmargin=.75cm, leftmargindistance=.5cm, rightmargin=1.25cm, rightmargindistance=1cm, header=\zeropoint, headerdistance=1cm, footer=1cm, footerdistance=1cm, width=middle, height=middle, location=middle] \definelayout [last] [first] \setupbackgrounds [header] [text] [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startuseMPgraphic{framewithshadow} path p; p:=origin--(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=bold,background=framewithshadow] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number} \stopframed}] \setupheadertexts [{\startframed [headerframed] [align=flushleft,foregroundstyle=] Lycée LA SALLE, Lille\\ \getvariable{headertext}{location} \stopframed}] [{\startframed [headerframed] [align=flushright,foregroundstyle=] \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month}, y=\getvariable{headertext}{year}] [D,month,{ },year] \stopframed}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Corrigé du devoir maison}, number={1}, day={22}, month={10}, year={2019}, location={Secondes GTE-GTF}, time={}] \starttext \input knuth \stoptext
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Fabrice Couvreur schrieb am 22.10.2019 um 10:46:
Hello, I can not adjust the bottom line of my header even after playing with location= and boffset.=
1. Try to create shorter examples, e.g. \setuplayout can be reduced to the header setting. 2. You header is not large enough for two lines of text. 3. Use \offset to change the vertical position of the frame in the middle. \setuplayout [header=1cm, headerdistance=1cm] \setupbackgrounds [header] [text] [frame=on] \defineframed [headerframed] [align=normal] \setupheadertexts [{\offset[y=-\strutdp]{\headerframed{Middle}}}] \setupheadertexts [\headerframed {Left\\Left}] [\headerframed {Right}] \starttext \samplefile{dawkins} \stoptext Wolfgang
participants (2)
-
Fabrice Couvreur
-
Wolfgang Schuster