Fabrice Couvreur via ntg-context schrieb am 22.08.2021 um 13:13:
Hi,
In the file below (not minimal, sorry!) I am using commands from
Wolfgang in different threads. We can see that the top frame overflows
into the text: how to correct this ?
I would also like the top and bottom stroke to be adjusted to the
width of the paper.
Thanks
Fabrice
[...]
\setupheadertexts
[{
\startframed [headerframed]
[align=flushleft,foregroundstyle=\ssx]
Lycée LA SALLE\\
Durée : \getvariable{headertext}{time}\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]
[{
\startframed [headerframed] [align=flushright,foregroundstyle=\ssx]
Add "offset=overlay" to the frame for the image, the graphic has already
the same height of the header and you're adding additional offset from
the frame which pushes the complete header block down.
\externalfigure[dum] [factor=max]
\stopframed
}]
[...]
When you have a similar problem in the future I suggest to enable the
frame for the header line with \showframe and in addition enable the
frame for your \framed blocks.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________