![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
Hello Pablo,
thanks for the answer - yes, it works - for the situation header underline has been defined via \blackrule and not background.
I found a proposal for this situation spoken here before:
- to provide [noheaderandfooterbackground] (or similar) option for \page which would temporarily switch header and footer background off;
would \page[noheaderandfooterbackground] be implemented (kindly asking Hans...)?
Best regards,
Lukas
On Wed, 30 Aug 2017 19:43:57 +0200, Pablo Rodriguez
On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote:
[...] How to:
- define header to be framed normally and - to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called?
Hi Lukáš,
from your sample, I wonder whether you need a complete frame or only a rule in the header.
If you only need a rule, this is the way to go:
\setuplayout[header=5mm,headerdistance=5mm,] %~ \setupheader[text][after=\vskip 4pt\hrule] \setupheader[text][after={\blackrule[ width=\textwidth, height=1em]}] \setupheadertexts[left][right]
\starttext Page 1 \page[empty,blank] Page 2 \stoptext
I hope it helps,
Pablo
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396