Gerben Wierda schrieb:
I would like to have a right-aligned quote before the chapter header. I use the following snippet in my environment file:
================================== \newcommand{\chquote}[1]{\startalignment% \startnarrower[4*left] {#1} \stopnarrower\stopalignment} ==================================
But if I use that *before* the \chapter command it is *followed* and not *preceded* by a page break.
So my question is: how do I program this in ConTeXt?
Not a ConTeXt expert myself I can only give a hint how I would try it. You can define your own chapter, in the definition there are parameters for before and after. Perhaps it is possible to give the chapter an additional argument. Or you can define, that chapters do not do a pagebreak and handle the pagebreak in your function. HTH, __Janko