With \noheaderandfooterlines one can suppress the header and footer lines on the current page. When using \setuplayout[location=doublesided] a blank page is generated if necessary. However this generated page does contain header/footer, notwhithstanding the use of \noheaderandfooterlines. Is it possible to avoid this? Hans van der Meer
On 09/14/2015 11:01 AM, Meer, Hans van der wrote:
With \noheaderandfooterlines one can suppress the header and footer lines on the current page.
When using \setuplayout[location=doublesided] a blank page is generated if necessary. However this generated page does contain header/footer, notwhithstanding the use of \noheaderandfooterlines. Is it possible to avoid this?
Hi Hans, \setuppagenumbering[alternative=doublesided] is the command I know to work. You can add either blank or header and footer to page break option, such as in: \setuppagenumbering[alternative=doublesided] \setuphead[chapter][page={yes, header, footer, right}] \setupheadertexts[Header] \setupfootertexts[Footer] \starttext \dorecurse{3}{\chapter{Chapter}\noheaderandfooterlines} \stoptext For some strange reason (at least, unknown to me), header and footer must be placed before right (if specified at all). Although blank may be placed before or after right. I hope it helps, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 14. September 2015 19:13
Hi Hans,
\setuppagenumbering[alternative=doublesided] is the command I know to work.
You can add either blank or header and footer to page break option, such as in:
\setuppagenumbering[alternative=doublesided] \setuphead[chapter][page={yes, header, footer, right}] \setupheadertexts[Header] \setupfootertexts[Footer] \starttext \dorecurse{3}{\chapter{Chapter}\noheaderandfooterlines} \stoptext
For some strange reason (at least, unknown to me), header and footer must be placed before right (if specified at all). I will explain it for you.
When your text from the previous chapter ends on a right page the "yes" ends the page end we move to the next left page. With the "header" and "footer" keywords we disable the header and footer lines on this page. The last keyword "right" moves us from the now empty left page to the following right page. Wolfgang
On 09/14/2015 08:33 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 14. September 2015 19:13 [...] For some strange reason (at least, unknown to me), header and footer must be placed before right (if specified at all).
I will explain it for you.
When your text from the previous chapter ends on a right page the "yes" ends the page end we move to the next left page. With the "header" and "footer" keywords we disable the header and footer lines on this page. The last keyword "right" moves us from the now empty left page to the following right page.
Many thanks for the explanation, Wolfgang. I have only a question: why doesn’t blank behave the same way? Is blank a switch? Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 14. September 2015 21:28
Many thanks for the explanation, Wolfgang.
I have only a question: why doesn’t blank behave the same way? Is blank a switch? What do you expect from blank?
\setupbackgrounds[page][background=color,backgroundcolor=yellow] \setuppagenumbering [alternative=doublesided, % page={yes,blank,right}, ] \starttext \dorecurse{3}{\input knuth\par} \page[yes,blank,right] \dorecurse{6}{\input knuth\par} \page[yes,blank,right] \dorecurse{3}{\input knuth\par} \stoptext Wolfgang
On 09/14/2015 09:45 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 14. September 2015 21:28 [...] I have only a question: why doesn’t blank behave the same way? Is blank a switch?
What do you expect from blank?
Well, the question isn’t my expectation about blank, but about right. Header and footer are applied to the right page only if set before right. But blank may be written before or after right. I must be missing something, because I think that the behavior of blank in both cases might be inconsistent. Many thanks for your help, Pablo
\setupbackgrounds[page][background=color,backgroundcolor=yellow]
\setuppagenumbering [alternative=doublesided, % page={yes,blank,right}, ]
\starttext
\dorecurse{3}{\input knuth\par} \page[yes,blank,right] \dorecurse{6}{\input knuth\par} \page[yes,blank,right] \dorecurse{3}{\input knuth\par}
\stoptext
Wolfgang
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Pablo Rodriguez mailto:oinos@gmx.es 17. September 2015 07:24 On 09/14/2015 09:45 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 14. September 2015 21:28 [...] I have only a question: why doesn’t blank behave the same way? Is blank a switch? What do you expect from blank?
Well, the question isn’t my expectation about blank, but about right.
Header and footer are applied to the right page only if set before right. But blank may be written before or after right.
I must be missing something, because I think that the behavior of blank in both cases might be inconsistent.
Let me repeat my question, what do expect from the blank keyword? The only description I found is “insert a completely blank page” from cont-enp.pdf. Wolfgang
On 09/17/2015 12:36 PM, Wolfgang Schuster wrote:
[...] Let me repeat my question, what do expect from the blank keyword?
The only description I found is “insert a completely blank page” from cont-enp.pdf.
Many thanks for your reply, Wolfgang. I thought that blank implied the how the next page would look like, but not the insertion of a new page. Everything is clear to me now. Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 17. September 2015 17:55
Many thanks for your reply, Wolfgang.
I thought that blank implied the how the next page would look like, but not the insertion of a new page. The blank keyword doesn’t insert a new page, it sets only a flag which hides all page backgrounds (colors, overlays or headers) on the given page but the flag lasts only for a single page.
Wolfgang
participants (3)
-
Meer, Hans van der
-
Pablo Rodriguez
-
Wolfgang Schuster