Counted Lists

Subject: Counted Lists
From: Chuck Darney <cdarney@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Jan 1998 14:29:11 -0500
Hi again;
  I'm now trying to produce lists with properly incremented counting
(ie: i., ii., iii.  -  or a., b., c.).  The lists in the Docbook DSL are
very good, but don't do quite what I want.  I've tried modifying the
example to produce the following but Jade gives me an error saying "this
context requires a sosofo".  Does the 'string-append' require something

(element (LIST ITEM P)
   (make line-field
      (case (inherited-attribute-string "type")
	   (format-number (PARNUM) "1") "."))
	  (format-number (PARNUM) "A") "."))
	  (format-number (PARNUM) "a") "."))
	  (format-number (PARNUM) "i") "."))
	  (format-number (PARNUM) "I") "."))
	  (format-number (PARNUM) "A") "."))
	  (format-number (PARNUM) "A") "."))
	  (format-number (PARNUM) "A") "."))
(define (PARNUM)
  (child-number (parent (current-node))))

The last three or so items in the  'case' will be for bullets, etc.

Thanks...Chuck Darney

 DSSSList info and archive:

Current Thread
  • Counted Lists
    • Chuck Darney - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id OAA22644Wed, 28 Jan 1998 14:43:18 -0500 (EST) <=
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id PAA23246Wed, 28 Jan 1998 15:09:29 -0500 (EST)