At 2017-10-17T12:34:06+02:00, Tomas Hala wrote:
I did two changes in your code:
1. Disabling of header=empty. 2. Adding of \page[empty].
Probably, there is better and system solution, but this might help you, I guess.
Dear Tomas,
Thank you for your kind help.
The change you made works when the ToC ends on an odd page, as in this
case when it ends on page 1. However, if the ToC ends on an even page,
say on page 2, the modification you have suggested produces an empty
page with no headers on page 3, and then an empty page with
headers "4 ... Chapter." on page 4; the first chapter starts on page 5.
Enclosed below is an example of such a file.
I don't want the empty pages 3 (without headers) and 4 (with headers),
and I want the first chapter to start on page 3, which is the first
right hand, i.e., odd numbered, page after the end of the ToC.
I think what is required is a command \foo which implements the
following pseudocode:
if the current page is even numbered ; then
\page [empty]
else
do nothing
endif
Then, I can use
\startfrontmatter
\completecontent
\foo
\stopfrontmatter
Regards,
Raghu.
----------------------------------------------------------------------
\starttext
\setuppagenumbering
[alternative=doublesided]
\setupheadertexts
[]
\setupfootertexts
[]
\setupheadertexts
[{\getmarking[section]}]
[\pagenumber]
[\pagenumber]
[{Chapter \getmarking[chapternumber].\ \getmarking[chapter]}]
\setuphead
[chapter]
[page={yes,header,footer,right}]
\startfrontmatter
\completecontent
\page [empty]
\stopfrontmatter
\startbodymatter
\dorecurse
{20}
{
\startchapter
[title=A chapter]
\startsection
[title=A section]
Some text
\stopsection
\page
\startsection
[title=Another section]
Some text
\stopsection
\stopchapter
}
\stopbodymatter
\stoptext
----------------------------------------------------------------------
--
N. Raghavendra