From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10946 Path: main.gmane.org!not-for-mail From: Guy Worthington Newsgroups: gmane.comp.tex.context Subject: Inserting a mini toc into the chapter heading Date: 11 Feb 2003 15:55:21 +0800 Sender: ntg-context-admin@ntg.nl Message-ID: 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 1044949678 10378 80.91.224.249 (11 Feb 2003 07:47:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2003 07:47:58 +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 18iV93-0002hG-00 for ; Tue, 11 Feb 2003 08:47:57 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3D5C610AE8; Tue, 11 Feb 2003 08:50:07 +0100 (MET) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id 11ED710ABB for ; Tue, 11 Feb 2003 08:48:45 +0100 (MET) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18iV7g-0002ee-00 for ; Tue, 11 Feb 2003 08:46:32 +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 18iV7e-0002eV-00 for ; Tue, 11 Feb 2003 08:46:30 +0100 Original-Lines: 55 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:10946 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10946 I'm stymied! I've looked at Hans' code for inserting a local toc into a chapter heading: http://ml-archives.mini.pw.edu.pl/ntg-context/msg04713.html I just can't get it to generate a local toc. Could someone please run the example. % output=pdftex \setuplist [section] [style=boldslanted, align=left, interaction=all, symbol=1, width=1em, 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] \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] {In this chapter: \blank \placelist[section][criterium=chapter]}}} {\framed [width=.4\hsize,offset=1em,strut=no,align=left] {#1\par#2}}}} \starttext \title {Berend} \chapter {Berend} \section {Botje} \section {Botje} \section {Botje} \stoptext I've also a related question: Berend mentions a visual debugger, I want one! (by the way what is a visual debugger).