ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* No page break
@ 2006-07-31  7:38 David Arnold
  2006-07-31  9:10 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 2006-07-31  7:38 UTC (permalink / raw)
  Cc: Jacob Prystowsky, Bruce Wagner

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: No page break
  2006-07-31  7:38 No page break David Arnold
@ 2006-07-31  9:10 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-07-31  9:10 UTC (permalink / raw)
  Cc: Jacob Prystowsky, Bruce Wagner



David Arnold wrote:
> All,
> 
> Anyone know why my Answers and Exercises don't break to a new page?

I don't know what is wrong, but this works:

\setuphead
   [exercises]
   [before={\page[right]}]

Cheers, taco

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-31  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-31  7:38 No page break David Arnold
2006-07-31  9:10 ` Taco Hoekwater

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).