hiding page number in postponed makeup page
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
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 ___________________________________________________________________________________
Am 2017-09-19 um 17:15 schrieb Pablo Rodriguez
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
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
Am 2017-09-20 um 20:32 schrieb Pablo Rodriguez
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
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]).
On 9/20/2017 8:32 PM, Pablo Rodriguez wrote: 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 -----------------------------------------------------------------
Am 2017-09-21 um 22:20 schrieb Hans Hagen
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
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
Pablo Rodriguez