From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11940 Path: main.gmane.org!not-for-mail From: Guy Worthington Newsgroups: gmane.comp.tex.context Subject: descriptions and enumerations Date: 15 Apr 2003 19:39:51 +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 1050406508 17178 80.91.224.249 (15 Apr 2003 11:35:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 11:35:08 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Apr 15 13:35:07 2003 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 195OiQ-0004Su-00 for ; Tue, 15 Apr 2003 13:35:06 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0D78B10B59; Tue, 15 Apr 2003 13:35:46 +0200 (MEST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id 8182710B50 for ; Tue, 15 Apr 2003 13:32:40 +0200 (MEST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 195OfN-0004H9-00 for ; Tue, 15 Apr 2003 13:31:57 +0200 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 195OfI-0004GV-00 for ; Tue, 15 Apr 2003 13:31:52 +0200 Original-Lines: 70 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:11940 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11940 I'm having trouble developing a coupling. In the code below, you'll see a skeleton example, after which follows a discussion, and then a bit more code. I'm trying to show a that each code snippet is coupled to the first example by using an \exampleContinued macro. ----- \defineenumeration [example] [location=serried, text=Example, before=\blank, after=\blank, way=bychapter, style=italic] \definedescription [exampleContinued] [location=serried, width=fit, distance=1em, text={Example~\headnumber[chapter].\nummer[example] (continued)}, before=\blank, after=\blank, style=italic] \setupcolors[state=start] \starttext \chapter{Introduction} \input tufte \example[ex:simpleExample] A Simple Example \startJV // A very simple applet import java.applet.Applet; import java.awt.Graphics; /** This applet just says "Hello World"! */ public class HelloWorld extends Applet { ... } \stopJV \input tufte \exampleContinued[ex:simpleExample:1] The paint() method \startJV /** Just says "Hello World * @param g */ public void paint (Graphics g) { g.drawString("Hello World", 25, 10); } \stopJV \stoptext ----- You'll see that the example (continue) line is all garbled, with the first word (in this case "The") set in wrong type and also in the wrong place. I'm hoping someone can unravel the mess.