ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hiding page number in postponed makeup page
@ 2017-09-19 14:46 Henning Hraban Ramm
  2017-09-19 15:15 ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-09-19 14:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,
back from the meeting I’m still working on my full page figure placement.
Most of it works so far, even if it tends to collide with floats, but now I’d like to switch off the page numbers on that pages.

The M(N)WE is simplified in that I use only a text area sized frame instead of a full page image on a layer.
If I could place the image layer on top of the page numbers that also would be a solution.


\setuppapersize[A6]
\setuppagenumbering
  [location=footer,
  alternative=doublesided,
  state=start]

\startsetups paginaoff
  \setuppagenumbering[location=,] % doesn’t work
\stopsetups

\setupmakeup[standard]
  [page=no,
  doublesided=no,
  headerstate=empty,
  footerstate=empty,
  before=\setups{paginaoff}]

\starttext
\input knuth

\startpostponing[+2]
\startstandardmakeup
  \setuppagenumbering[location=,] % doesn’t work
  \framed
    [width=\textwidth,
    height=\textheight,
    background=color,
    backgroundcolor=blue,
    foregroundcolor=white,
    foregroundstyle=bold,
    frame=off,
  ]{This page should show no page number}
\stopstandardmakeup
\stoppostponing

\dorecurse{5}{
  \recurselevel
  \input tufte \par
}

\stoptext



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

* Re: hiding page number in postponed makeup page
  2017-09-19 14:46 hiding page number in postponed makeup page Henning Hraban Ramm
@ 2017-09-19 15:15 ` Pablo Rodriguez
  2017-09-19 21:29   ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-09-19 15:15 UTC (permalink / raw)
  To: ntg-context

On 09/19/2017 04:46 PM, Henning Hraban Ramm wrote:
> Hi all,
> back from the meeting I’m still working on my full page figure placement.
> Most of it works so far, even if it tends to collide with floats, but now I’d like to switch off the page numbers on that pages.

Hi Hraban,

if you plan full-page figure placement, I think this might help:

   \setuplayout[standard][footer=0cm]

Pablo


> The M(N)WE is simplified in that I use only a text area sized frame instead of a full page image on a layer.
> If I could place the image layer on top of the page numbers that also would be a solution.
> 
> 
> \setuppapersize[A6]
> \setuppagenumbering
>   [location=footer,
>   alternative=doublesided,
>   state=start]
> 
> \startsetups paginaoff
>   \setuppagenumbering[location=,] % doesn’t work
> \stopsetups
> 
> \setupmakeup[standard]
>   [page=no,
>   doublesided=no,
>   headerstate=empty,
>   footerstate=empty,
>   before=\setups{paginaoff}]
> 
> \starttext
> \input knuth
> 
> \startpostponing[+2]
> \startstandardmakeup
>   \setuppagenumbering[location=,] % doesn’t work
>   \framed
>     [width=\textwidth,
>     height=\textheight,
>     background=color,
>     backgroundcolor=blue,
>     foregroundcolor=white,
>     foregroundstyle=bold,
>     frame=off,
>   ]{This page should show no page number}
> \stopstandardmakeup
> \stoppostponing
> 
> \dorecurse{5}{
>   \recurselevel
>   \input tufte \par
> }
> 
> \stoptext
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 


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

* Re: hiding page number in postponed makeup page
  2017-09-19 15:15 ` Pablo Rodriguez
@ 2017-09-19 21:29   ` Henning Hraban Ramm
  2017-09-20 18:32     ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-09-19 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2017-09-19 um 17:15 schrieb Pablo Rodriguez <oinos@gmx.es>:

> On 09/19/2017 04:46 PM, Henning Hraban Ramm wrote:
>> Hi all,
>> back from the meeting I’m still working on my full page figure placement.
>> Most of it works so far, even if it tends to collide with floats, but now I’d like to switch off the page numbers on that pages.
> 
> Hi Hraban,
> 
> if you plan full-page figure placement, I think this might help:
> 
>   \setuplayout[standard][footer=0cm]

Thank you for the suggestion, but it doesn’t help, not even in the MWE.
While the footer of the makeup layout goes away, the page number stays. In the example the blue box gets bigger and hides it, but it’s still there - you can see it if you use a transparent color, the same if you place it (or an image) on a layer (as I do in my real project).


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

* Re: hiding page number in postponed makeup page
  2017-09-19 21:29   ` Henning Hraban Ramm
@ 2017-09-20 18:32     ` Pablo Rodriguez
  2017-09-21  7:46       ` Henning Hraban Ramm
  2017-09-21 20:20       ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2017-09-20 18:32 UTC (permalink / raw)
  To: ntg-context

On 09/19/2017 11:29 PM, Henning Hraban Ramm wrote:
> [...]
> Thank you for the suggestion, but it doesn’t help, not even in the MWE.

I don’t know, but the postponed page doesn’t behave as a makeup (at
least, with the page number):

    \setuppapersize[A9]
    \starttext
    \startbuffer[makeup]
    \startmakeup[standard][align=middle]
    123
    \stopmakeup
    \stopbuffer
    \getbuffer[makeup]

    \startpostponing[3]
        \getbuffer[makeup]
    \stoppostponing

    \input knuth

    \getbuffer[makeup]

    \input knuth

    \getbuffer[makeup]
    \stoptext

It is also weird that real page 10 gets a page label. Default pagestate
is stop (behavior is correct only on the first page [makeup on last page
also fails]).

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

* Re: hiding page number in postponed makeup page
  2017-09-20 18:32     ` Pablo Rodriguez
@ 2017-09-21  7:46       ` Henning Hraban Ramm
  2017-09-21 20:20       ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-09-21  7:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2017-09-20 um 20:32 schrieb Pablo Rodriguez <oinos@gmx.es>:

> On 09/19/2017 11:29 PM, Henning Hraban Ramm wrote:
>> [...]
>> Thank you for the suggestion, but it doesn’t help, not even in the MWE.
> 
> I don’t know, but the postponed page doesn’t behave as a makeup (at
> least, with the page number):

That’s why I’m asking.

> It is also weird that real page 10 gets a page label. Default pagestate
> is stop (behavior is correct only on the first page [makeup on last page
> also fails]).

I struggle with page numbers on/off all the time...

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

* Re: hiding page number in postponed makeup page
  2017-09-20 18:32     ` Pablo Rodriguez
  2017-09-21  7:46       ` Henning Hraban Ramm
@ 2017-09-21 20:20       ` Hans Hagen
  2017-09-23 10:45         ` Henning Hraban Ramm
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2017-09-21 20:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 9/20/2017 8:32 PM, Pablo Rodriguez wrote:
> On 09/19/2017 11:29 PM, Henning Hraban Ramm wrote:
>> [...]
>> Thank you for the suggestion, but it doesn’t help, not even in the MWE.
> 
> I don’t know, but the postponed page doesn’t behave as a makeup (at
> least, with the page number):
> 
>      \setuppapersize[A9]
>      \starttext
>      \startbuffer[makeup]
>      \startmakeup[standard][align=middle]
>      123
>      \stopmakeup
>      \stopbuffer
>      \getbuffer[makeup]
> 
>      \startpostponing[3]
>          \getbuffer[makeup]
>      \stoppostponing
> 
>      \input knuth
> 
>      \getbuffer[makeup]
> 
>      \input knuth
> 
>      \getbuffer[makeup]
>      \stoptext
> 
> It is also weird that real page 10 gets a page label. Default pagestate
> is stop (behavior is correct only on the first page [makeup on last page
> also fails]).
postponed flushing happens inside the output routine and therefore has 
some limitations (other solutions would also have such limitations)

anyway, i do some extra checking now .. this was my test

\starttext

\startbuffer[makeup]
\startpagemakeup[pagestate=start,page=no]
     \color[red]{
         \vfill
         \dorecurse{3}{
             \samplefile{klein}
             \vfill
         }
     }
\stoppagemakeup
\stopbuffer

\startcolor[green]
     \dorecurse{10}{
         \dontleavehmode{\bf 1:#1:} \samplefile{sapolsky}\par
     }
\stopcolor

\startpostponing % [+3]
     \getbuffer[makeup]
\stoppostponing

\startcolor[blue]
     \dorecurse{25}{
         \dontleavehmode{\bf 2:#1:} \samplefile{sapolsky}\par
     }
\stopcolor

\stoptext

i'm not sure if this will stay the way it is but it needs testing.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Re: hiding page number in postponed makeup page
  2017-09-21 20:20       ` Hans Hagen
@ 2017-09-23 10:45         ` Henning Hraban Ramm
  0 siblings, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-09-23 10:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2017-09-21 um 22:20 schrieb Hans Hagen <pragma@wxs.nl>:

> postponed flushing happens inside the output routine and therefore has some limitations (other solutions would also have such limitations)
> 
> anyway, i do some extra checking now .. this was my test

> \startpagemakeup[pagestate=start,page=no]
>    \color[red]{
>        \vfill
>        \dorecurse{3}{
>            \samplefile{klein}
>            \vfill
>        }
>    }
> \stoppagemakeup

Thank you very much: pagestate=start does the trick.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

end of thread, other threads:[~2017-09-23 10:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 14:46 hiding page number in postponed makeup page Henning Hraban Ramm
2017-09-19 15:15 ` Pablo Rodriguez
2017-09-19 21:29   ` Henning Hraban Ramm
2017-09-20 18:32     ` Pablo Rodriguez
2017-09-21  7:46       ` Henning Hraban Ramm
2017-09-21 20:20       ` Hans Hagen
2017-09-23 10:45         ` Henning Hraban Ramm

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