ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Empty page to suppress header (background) frame
@ 2017-08-30 15:19 Procházka Lukáš Ing.
  2017-08-30 17:43 ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-08-30 15:19 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

Hello,

suppose the following code:

----
\setuplayout[header=5mm,headerdistance=5mm,]
\setupbackgrounds[header][text][bottomframe=on]
\setupheadertexts[left][right]

\starttext
   Page 1
   \page[empty,blank]
   Page 2
\stoptext
----

Page 2 in this sample is empty - no text and no header/footer - but it KEEPS FRAME around HEADER.

How to:

- define header to be framed normally and
- to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called?

Best regards,

Lukas


-- 
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

[-- Attachment #2: NoHdrUln~.mkiv --]
[-- Type: application/octet-stream, Size: 194 bytes --]

\setuplayout[header=5mm,headerdistance=5mm,]
\setupbackgrounds[header][text][bottomframe=on]
\setupheadertexts[left][right]

\starttext
  Page 1
  \page[empty,blank]
  Page 2
\stoptext

[-- Attachment #3: NoHdrUln~.pdf --]
[-- Type: application/pdf, Size: 6466 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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] 6+ messages in thread

* Re: Empty page to suppress header (background) frame
  2017-08-30 15:19 Empty page to suppress header (background) frame Procházka Lukáš Ing.
@ 2017-08-30 17:43 ` Pablo Rodriguez
  2017-08-31  8:37   ` Procházka Lukáš Ing.
  2017-09-01  7:31   ` Procházka Lukáš Ing.
  0 siblings, 2 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2017-08-30 17:43 UTC (permalink / raw)
  To: ntg-context

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
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Empty page to suppress header (background) frame
  2017-08-30 17:43 ` Pablo Rodriguez
@ 2017-08-31  8:37   ` Procházka Lukáš Ing.
  2017-09-01  7:31   ` Procházka Lukáš Ing.
  1 sibling, 0 replies; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-08-31  8:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <oinos@gmx.es> wrote:

> 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

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Empty page to suppress header (background) frame
  2017-08-30 17:43 ` Pablo Rodriguez
  2017-08-31  8:37   ` Procházka Lukáš Ing.
@ 2017-09-01  7:31   ` Procházka Lukáš Ing.
  2017-09-01 20:34     ` Pablo Rodriguez
  1 sibling, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-09-01  7:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Pablo,

you inspired me:

----
\setuplayout[header=5mm,headerdistance=5mm,]
\setupheader
   [text]
   [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
    after={\stopframed},
   ]
\setupheadertexts[left][right]

\starttext
   Page 1
   \page[empty,blank]
   Page 2
\stoptext
----

Best regards,

Lukas


On Wed, 30 Aug 2017 19:43:57 +0200, Pablo Rodriguez <oinos@gmx.es> wrote:

> 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

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Empty page to suppress header (background) frame
  2017-09-01  7:31   ` Procházka Lukáš Ing.
@ 2017-09-01 20:34     ` Pablo Rodriguez
  2017-09-04 15:24       ` Procházka Lukáš Ing.
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2017-09-01 20:34 UTC (permalink / raw)
  To: ntg-context

On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote:
> Hello Pablo,
> 
> you inspired me:
> 
> ----
> \setuplayout[header=5mm,headerdistance=5mm,]
> \setupheader
>    [text]
>    [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
>     after={\stopframed},
>    ]
> \setupheadertexts[left][right]
> 
> \starttext
>    Page 1
>    \page[empty,blank]
>    Page 2
> \stoptext
> ----

Hi Lukáš,

could you add this info to the wiki?

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Empty page to suppress header (background) frame
  2017-09-01 20:34     ` Pablo Rodriguez
@ 2017-09-04 15:24       ` Procházka Lukáš Ing.
  0 siblings, 0 replies; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-09-04 15:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

done here (on the bottom of the page):

	http://wiki.contextgarden.net/Command/setupheader

But the result doesn't show the goal of the example:

- header is not shown at all, including its blue "underline",
- user cannot check the emptiness of the second page.

Maybe a switch to <context ??=??> which would suppress result/page trimming would be nice here...

Best regards,

Lukas


On Fri, 01 Sep 2017 22:34:53 +0200, Pablo Rodriguez <oinos@gmx.es> wrote:

> On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote:
>> Hello Pablo,
>>
>> you inspired me:
>>
>> ----
>> \setuplayout[header=5mm,headerdistance=5mm,]
>> \setupheader
>>    [text]
>>    [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
>>     after={\stopframed},
>>    ]
>> \setupheadertexts[left][right]
>>
>> \starttext
>>    Page 1
>>    \page[empty,blank]
>>    Page 2
>> \stoptext
>> ----
>
> Hi Lukáš,
>
> could you add this info to the wiki?
>
> 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

___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2017-09-04 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 15:19 Empty page to suppress header (background) frame Procházka Lukáš Ing.
2017-08-30 17:43 ` Pablo Rodriguez
2017-08-31  8:37   ` Procházka Lukáš Ing.
2017-09-01  7:31   ` Procházka Lukáš Ing.
2017-09-01 20:34     ` Pablo Rodriguez
2017-09-04 15:24       ` Procházka Lukáš Ing.

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).