* Problem with the bottom line of a header
@ 2019-10-22 8:46 Fabrice Couvreur
2019-10-22 17:55 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Couvreur @ 2019-10-22 8:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2560 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3776 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-22 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 8:46 Problem with the bottom line of a header Fabrice Couvreur
2019-10-22 17:55 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).