2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> On 7/2/07, Peter I. Hansen <[EMAIL PROTECTED]> wrote:
> > On 7/2/07, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
> > > 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED] >:
> > > > On 7/2/07, Wolfgang Schuster
> > > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > 2007/7/2, Peter I. Hansen < [EMAIL PROTECTED]>:
> > > > > > Thanks, this works for me. One thing though, I would like to turn
> the
> > > > > > framing off on pages where a chapter begins. I tried
> > > > > > \setuphead[chapter][header=empty], but this just
> gives
> > > > me
> > > > > > an empty frame.
> > > > > > Is there a way to selectively turn of backgounds on for example
> chapter
> > > > > > pages?
> > > > >
> > > > > \setuphead
> > > > > [chapter]
> > > > >
> > > >
> [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
> > > > > header=high]
> > > > >
> > > > > \setupbackgrounds[header][text][frame=on]
> > > > >
> > > > > \starttext
> > > > >
> > > > > \dorecurse{4}
> > > > > {\chapter{Knuth}
> > > > > \dorecurse{12}
> > > > > {\input knuth\par}}
> > > > >
> > > > > \stoptext
> > > >
> > > > Beautifull. One problem arise, if you put a \placecontent after
> \starttext
> > > > the first chapter will stil have the frame on.
> > >
> > > do you mean
> > >
> > > \starttext
> > > \placecontent
> > > \chapter{Knuth}
> > > \stoptext
> > >
> > > I see only a frame on the first page with the table of contents and
> > > this normal because there is no chapter on this page.
> > >
> > > use \completecontent and not \placecontent
> > >
> > > if this is not what you mean send a example
> >
> > \completecontent seems to solve my problem so far... To see what my
> > problem was try out the following example:
> >
> > \setuplayout [location=middle,
> > header=\lineheight,
> >
> headerdistance=\lineheight]
> >
> > \setuppagenumbering [alternative=doublesided,location=]
> >
> > \setupheadertexts [section][pagenumber]
> > [pagenumber][chapter]
> >
> > \setuphead
> > [chapter]
> >
> [%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]},
> > header=high]
> >
> > \setupbackgrounds
> [header][text][frame=off,bottomframe=on]
> >
> > \starttext
> >
> > \placecontent
> > %\completecontent
> >
> > \dorecurse{3}
> > {\chapter{Test}
> > \dorecurse{250}{talking talking talking }
> > }
> >
> > \stoptext
> >
>
> Actually, if I add something before the content, eg.
> \subject{Preface}\page[yes] then things go bad again... There is something
> about this I can't grasp.
Can you send the pdf file and explain what is wrong in the output
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________