* Changes \setuphead
@ 2019-01-21 10:26 Ursula Hermann
2019-01-21 11:08 ` Otared Kavian
2019-01-21 19:21 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Ursula Hermann @ 2019-01-21 10:26 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1283 bytes --]
Hello List!
It is a long time ago, that I have written the last mail to you.
Thank you Taco so much, because for the new example of the Recent changes from 17.January 2019. Because: Modyfying the page before a chapter is something, that i can need. I mean this one:
% next five lines just to show the effect on this wiki
\setuppapersize[A8][A5,landscape]
\setuppaper[nx=4, ny=2]
\setuplayout[page][location=middle, marking=on]
\setuparranging [XY]
\setupbodyfont[6pt]
% actual example starts here
\setuppagenumbering
[alternative=doublesided]
\startsetups [chapter:before]
\doifoddpageelse
{}
{\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=gray]
\page[right]
\popbackground}
\stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before}]
\starttext
\startchapter[title={Knuth}]
\dorecurse{2}{\samplefile{knuth}}
\stopchapter
\startchapter[title={Ward}]
\dorecurse{1}{\samplefile{ward}}
\stopchapter
\startchapter[title={Zapf}]
\dorecurse{2}{\samplefile{zapf}}
\stopchapter
\stoptext
I have a question: how can I have a empty page before the next chapter without a page number? Do I have to write: \page =empty. ?
Ursula Hermann
[-- Attachment #1.2: Type: text/html, Size: 25531 bytes --]
[-- Attachment #2: 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: Changes \setuphead
2019-01-21 10:26 Changes \setuphead Ursula Hermann
@ 2019-01-21 11:08 ` Otared Kavian
2019-01-21 12:25 ` Ursula Hermann
2019-01-21 21:06 ` Wolfgang Schuster
2019-01-21 19:21 ` Wolfgang Schuster
1 sibling, 2 replies; 6+ messages in thread
From: Otared Kavian @ 2019-01-21 11:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Ursula,
If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number:
\startsetups [chapter:before]
\doifoddpageelse
{}
{\pushbackground[page]
\setuppagenumbering[state=stop]
\setupbackgrounds[page][background=color,backgroundcolor=gray]
\page[right]
\setuppagenumbering[state=start]
\popbackground}
\stopsetups
However probably there is a better way to achieve what you want…
Best regards: OK
> On 21 Jan 2019, at 11:26, Ursula Hermann <ursula.hermann@univie.ac.at> wrote:
>
> Hello List!
>
> It is a long time ago, that I have written the last mail to you.
> Thank you Taco so much, because for the new example of the Recent changes from 17.January 2019. Because: Modyfying the page before a chapter is something, that i can need. I mean this one:
>
> % next five lines just to show the effect on this wiki
> \setuppapersize[A8][A5,landscape]
> \setuppaper[nx=4, ny=2]
> \setuplayout[page][location=middle, marking=on]
> \setuparranging [XY]
> \setupbodyfont[6pt]
>
> % actual example starts here
> \setuppagenumbering
> [alternative=doublesided]
>
> \startsetups [chapter:before]
> \doifoddpageelse
> {}
> {\pushbackground[page]
> \setupbackgrounds[page][background=color,backgroundcolor=gray]
> \page[right]
> \popbackground}
> \stopsetups
>
> \setuphead
> [chapter]
> [page=yes,
> before=\directsetup{chapter:before}]
>
> \starttext
>
> \startchapter[title={Knuth}]
> \dorecurse{2}{\samplefile{knuth}}
> \stopchapter
>
> \startchapter[title={Ward}]
> \dorecurse{1}{\samplefile{ward}}
> \stopchapter
>
> \startchapter[title={Zapf}]
> \dorecurse{2}{\samplefile{zapf}}
> \stopchapter
>
>
> \stoptext
>
> I have a question: how can I have a empty page before the next chapter without a page number? Do I have to write: \page =empty. ?
>
> Ursula Hermann
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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: Changes \setuphead
2019-01-21 11:08 ` Otared Kavian
@ 2019-01-21 12:25 ` Ursula Hermann
2019-01-21 21:06 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Ursula Hermann @ 2019-01-21 12:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Otared
Thank you, that helped. I have tried the example, as written.
Ursula Hermann
-----Ursprüngliche Nachricht-----
Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Otared Kavian
Gesendet: Montag, 21. Jänner 2019 12:08
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Betreff: Re: [NTG-context] Changes \setuphead
Hi Ursula,
If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number:
\startsetups [chapter:before]
\doifoddpageelse
{}
{\pushbackground[page]
\setuppagenumbering[state=stop]
\setupbackgrounds[page][background=color,backgroundcolor=gray]
\page[right]
\setuppagenumbering[state=start]
\popbackground}
\stopsetups
However probably there is a better way to achieve what you want…
Best regards: OK
> On 21 Jan 2019, at 11:26, Ursula Hermann <ursula.hermann@univie.ac.at> wrote:
>
> Hello List!
>
> It is a long time ago, that I have written the last mail to you.
> Thank you Taco so much, because for the new example of the Recent changes from 17.January 2019. Because: Modyfying the page before a chapter is something, that i can need. I mean this one:
>
> % next five lines just to show the effect on this wiki
> \setuppapersize[A8][A5,landscape] \setuppaper[nx=4, ny=2]
> \setuplayout[page][location=middle, marking=on] \setuparranging [XY]
> \setupbodyfont[6pt]
>
> % actual example starts here
> \setuppagenumbering
> [alternative=doublesided]
>
> \startsetups [chapter:before]
> \doifoddpageelse
> {}
> {\pushbackground[page]
> \setupbackgrounds[page][background=color,backgroundcolor=gray]
> \page[right]
> \popbackground}
> \stopsetups
>
> \setuphead
> [chapter]
> [page=yes,
> before=\directsetup{chapter:before}]
>
> \starttext
>
> \startchapter[title={Knuth}]
> \dorecurse{2}{\samplefile{knuth}}
> \stopchapter
>
> \startchapter[title={Ward}]
> \dorecurse{1}{\samplefile{ward}}
> \stopchapter
>
> \startchapter[title={Zapf}]
> \dorecurse{2}{\samplefile{zapf}}
> \stopchapter
>
>
> \stoptext
>
> I have a question: how can I have a empty page before the next chapter without a page number? Do I have to write: \page =empty. ?
>
> Ursula Hermann
>
>
> ______________________________________________________________________
> _____________ 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
> ______________________________________________________________________
> _____________
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________
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: Changes \setuphead
2019-01-21 11:08 ` Otared Kavian
2019-01-21 12:25 ` Ursula Hermann
@ 2019-01-21 21:06 ` Wolfgang Schuster
2019-01-22 8:16 ` Ursula Hermann
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2019-01-21 21:06 UTC (permalink / raw)
To: mailing list for ConTeXt users, Otared Kavian
Otared Kavian schrieb am 21.01.19 um 12:08:
> Hi Ursula,
>
> If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number:
>
> \startsetups [chapter:before]
> \doifoddpageelse
> {}
> {\pushbackground[page]
> \setuppagenumbering[state=stop]
\page[empty] or \page[header,footer,right]
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://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: Changes \setuphead
2019-01-21 10:26 Changes \setuphead Ursula Hermann
2019-01-21 11:08 ` Otared Kavian
@ 2019-01-21 19:21 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2019-01-21 19:21 UTC (permalink / raw)
To: mailing list for ConTeXt users, Ursula Hermann
Ursula Hermann schrieb am 21.01.19 um 11:26:
> I have a question: how can I have a empty page before the next chapter
> without a page number? Do I have to write: \page =empty. ?
When your goal is to remove header and footer lines from the empty
page before the start of the chapter without a fancy left page you
can use
\setuphead
[chapter]
[page={yes,header,footer,right}]
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://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:[~2019-01-22 8:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21 10:26 Changes \setuphead Ursula Hermann
2019-01-21 11:08 ` Otared Kavian
2019-01-21 12:25 ` Ursula Hermann
2019-01-21 21:06 ` Wolfgang Schuster
2019-01-22 8:16 ` Ursula Hermann
2019-01-21 19:21 ` Wolfgang Schuster
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).