Hi,

Try using \testpage[3]. The 3 will have to vary depending on the
number of lines that the section titles can possibly take up. For
example, if the section title takes up 4 lines, then you might want to
use \testpage[5].

\usemodule[visual] % fakewords

\definepapersize[a6][width=105mm,height=148mm] % ConTeXt seems to have
forgotten about a5 and a6??
\setuppapersize[a6][a6] % small paper to get more breaks

\setupbodyfont[rm,9pt]
\setupinterlinespace[12pt]

\setupindenting[yes, medium, next]
\setupblank[big]
\setupcolor[state=start]

\setuplayout[grid=yes]

\setupheads[
  align={right,nothyphenated},
  tolerance=verytolerant,
  grid=line
]
\definefont[SectionFont][Sans at 11pt] % fits within grid
\setuphead[section][
  page=no, style={\SectionFont},
  before={\blank\testpage[3]}, after={},
  interlinespace=12pt
]

% dummy section with long, red title
\def\Section{
\startsection[title={\definecolor[fakerulecolor][red]Section
Title\fakewords{2}{15}\definecolor[fakerulecolor][black]}]
\fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par
\stopsection
}

\starttext

\startchapter[title={See, ye mighty, and despair!}]

\fakewords{10}{30}

\dorecurse{20}{\Section}

\stopchapter

\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to