Patrick Gundlach wrote:
Guy Worthington wrote:
[partial code to create an enumeration and a group of siblings of the form:
Example 1.1 Blah ... Example 1.1(continued) Blah Blah ... Example 1.1(continued) Blah Blah Blah]
Most likely there is some clever or elegant way. But probably too clever for me.
It's cleaner than my partial solution (and it works to boot). In my books I'd call that elegant. ----- \defineenumeration [example] [location=serried, text=Example, before=\blank, after=\blank, way=bychapter, style=italic] \defineenumeration [exampleContinued] [location=serried, width=fit, distance=1em, text={Example~\headnumber[chapter].\nummer[example] (continued)}, before=\blank, after=\blank, number=no, 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 -----