From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10977 Path: main.gmane.org!not-for-mail From: Guy Worthington Newsgroups: gmane.comp.tex.context Subject: Re: Inserting a mini toc into the chapter heading Date: 12 Feb 2003 16:39:56 +0800 Sender: ntg-context-admin@ntg.nl Message-ID: References: <5.1.0.14.1.20030211130603.03527c58@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045038785 17993 80.91.224.249 (12 Feb 2003 08:33:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 08:33:05 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18isKC-0004fN-00 for ; Wed, 12 Feb 2003 09:33:00 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0F8D710AEF; Wed, 12 Feb 2003 09:35:12 +0100 (MET) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id A804210AE8 for ; Wed, 12 Feb 2003 09:33:16 +0100 (MET) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18isII-0004YI-00 for ; Wed, 12 Feb 2003 09:31:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18isIG-0004Xo-00 for ; Wed, 12 Feb 2003 09:31:00 +0100 Original-Lines: 67 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10977 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10977 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