# [NTG-context] Extra pages

David Arnold dwarnold45 at cox.net
Sun Aug 6 08:22:22 CEST 2006

All,

Can anyone explain why the output of this source has two blank pages
at the end?

\setupwhitespace[medium]
\setupindenting[medium,yes]

\setupcolors[state=start]

\setuppagenumbering
[state=start,
alternative=doublesided,
location=,
way=bytext]

\definetext[chapter][footer][pagenumber]

[chapter]
[alternative=inmargin,
footer=chapter,
page=right]

[section]
[style=\tfc,
page=right,
continue=no,
alternative=inmargin]

[subsection]
[style=\tfb\sl,
number=no]

[section]
[number=no,
incrementnumber=no,
page=no]
[section]
[number=no,
incrementnumber=no,
page=yes]

\def\Tindex#1{\index{#1}#1}

[chapter] \getmarking[chapter][current]}

\setuplist
[section]
[style=bold,
color=red,
alternative=c]
\setuplist
[subsection]
[alternative=b]

\starttext

\startbodymatter

\chapter{A Practice Chapter}

\input knuth

\placecontent

\section{First Section}

Now is the \Tindex{time} for all good men to come to the aid of their
country. Now is the time for all good men to come to the aid of their
country. Now is the time for all good men to come to the aid of their
country. Now is the time for all good men to come to the aid of their
country. Now is the time for all good men to come to the aid of their
country. Now is the time for all good men to come to the aid of their
country. Now is the time for all good men to come to the aid of their
country.

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

\subsection{First Subsection}

\dorecurse{3}{\input knuth \par}

\section{Second Section}

\dorecurse{3}{\input knuth \par}

\subsection{Second Subection}

\dorecurse{3}{\input knuth \par}

\section{Third Section}

\dorecurse{3}{\input knuth \par}

\subsection{Third Subection}

\dorecurse{3}{\input knuth \par}

\stopbodymatter

\startbackmatter

\completeindex

\stopbackmatter

\stoptext