[NTG-context] No page break

David Arnold dwarnold45 at cox.net
Mon Jul 31 09:38:53 CEST 2006


All,

Anyone know why my Answers and Exercises don't break to a new page?

\setupwhitespace[medium]

\setupindenting[medium,yes]

\usemodule[colors]
\setupcolors[state=start]

\definecolor[gridlines][s=0.7]

\definecolor[exercolor][r=0.0,g=0.3,b=0.7]

\definecolor[oceanfoam][b=1,g=0.75,t=0.12,a=1]
\definecolor[tingedblue][g=0.25,b=0.9,t=0.125,a=1]
\definecolor[icicle][c=0.4,y=0.1,t=0.125,a=1]
\definecolor[middlegreen][c=0.5,y=0.5,t=0.5,a=1]
\definecolor[heavygreen][g=0.35,b=0.15]
\definecolor[heavyblue][g=0.15,b=0.35]
\definecolor[lightred][r=0.7,t=0.15,a=1]
\definecolor[lavender][r=0.25,b=0.75,t=0.095,a=1]
\definecolor[darklavender][r=0.25,b=0.75]
\definecolor[lightgreen][r=0.86,g=0.99,b=0.77,t=0.75,a=1]

\definehead
	[exercises,answers]
	[subsection]

\setupheads
	[alternative=inmargin,
	prefix=+]

\setuphead
	[chapter,section]
	[style=bold,
	color=heavygreen,
	before=\blank,
	after=\blank]

\setuphead
	[chapter]
	[align={right,nothyphenated,broad},
	style=\tfd]

\setuphead
	[section]
	[prefix=+,
	style=\tfc]

\setuphead
	[subsection]
	[style={\tfb\sl},
	before=\blank,
	after=\blank,
	color=heavyblue,
	number=no,
	incrementnumber=yes]

\def\ExerciseHead{\headnumber[section]}

\setuphead
	[exercises]
	[incrementnumber=no,
	page=right,
	command=\ExerciseHead,
	after=\hairline\blank]

\def\AnswerHead{\headnumber[section]}

\setuphead
	[answers]
	[incrementnumber=no,
	page=right,
	command=\AnswerHead,
	after=\hairline\blank]

\starttext

\chapter{Hello}

\dorecurse{5}{\input tufte\par}

\section{One}

\dorecurse{5}{\input tufte\par}

\section{two}

\dorecurse{5}{\input tufte\par}

\exercises{Exercises}

\dorecurse{5}{\input tufte\par}

\exercises{Asnwers}

\dorecurse{5}{\input tufte\par}

\stoptext


More information about the ntg-context mailing list