Thanks Hans,

Your macros at:

   http://ml-archives.mini.pw.edu.pl/ntg-context/msg04713.html

were indeed generating a local toc, and as you guessed I hadn't
enabled colors.

I've modified your definition slightly, but in doing so I had to
resort to plain TeX.  The definition now places the Chapter title
underneath the table of contexts.  This is to cater for longer Chapter
titles.  My modification, using \llap, is very fragile, in that I've
had to hardwire in dimensions.  One day soon I'll think in multiple
levels of indirection like you do.

Again, however I'm stalled.  My modification has had the side-effect
that the chapter number which is the most important navigation aid,
now commands little respect.  I'd like to elevate its status, by
pushing it up into the top-right corner (even perhaps slightly out
into the margin) and increasing its weight to extra bold.

I tried to increase the weight by using cmssbx10, but had no luck.

Here's my attempt:

% output=pdftex
%% chapter head layout
\setupcolors[state=start]
\setuplist[section]
          [style=boldslanted,
           align=right,
           interaction=all,
           symbol=1, 
           width=0.5em,
           pagenumber=no,
           before=,
           after=]                 
\setuphead[chapter]
          [header=empty,
           style=BigHeadFont,
           alternative=command,
           command=\ContentsHead, 
           page=right,
           after={\blank[2*big]}]
\definefont[BigHeadFont][Serif at 36pt]
\font\BigHeadNumberFont=cmssbx10 at 36pt
\def\ContentsHead#1#2%
  {\setupframed[frame=off]
   \framed[width=\hsize,offset=overlay]
     {\placesidebyside
        {\doifelsenothing{#1}
           {\framed[width=.6\hsize]{}} % dummy               
           {\framed
[width=.6\hsize,offset=1em,strut=no,align=right,background=screen] 
              {{\tfa In this chapter:} \blank
               \placelist[section][criterium=chapter]}}}
        {\framed
            [width=.4\hsize,offset=1em,strut=no,align=left]
          {{\BigHeadNumberFont #1}}}}
     \llap{\lower43.2pt\hbox{#2\hskip1em}}} % 36pt x 1.2
\starttext 
\chapter {Berend} 
\section {Botje} 
\section {Botje} 
\section {Botje} 
\stoptext 

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to