Re: JadeTeX and keep-with-next?

Subject: Re: JadeTeX and keep-with-next?
From: apharris@xxxxxxxxxxxxxxxxxxx (Adam P. Harris)
Date: 30 Sep 1998 02:45:08 -0400
Thomas Corte <thomas@xxxxxxxxxxxxxxxxxx> writes:
> it seems that many members of this list use JadeTeX on a regular
> basis. I wonder if somebody has found a solution or workaround
> for the essentially non-functional support of the keep-with-next?
> characteristic (the penalties present in jadetex.dtx don't seem to have
> the desired effect). It really drives me nuts seeing a heading
> as the last thing on the bottom of a page :)

Funny, I was just about to report this as a bug.  I've noticed it too.  

For instance, as a slight modification to Docbook-stylesheets (and the
DTD), we've defined a special "Requirement" environment, which is just
a specially numbered, titled area of text.  DSSSL snippet below.

What doesn't seem to work for us is the

	keep-with-next?: #t

I was not sure that I was properly undstanding the semantics of that
parameter.

I'd be curious if it was a known bug.  I suspect, if so, it wouldn't be too hard to fix?

.....A. P. Harris...apharris@xxxxxxxxxxxxxx<URL:http://www.onShore.com/>

(define ($requirement$)
  (let* ((p-label (literal (element-label (parent (current-node)) #t)))
	 (c-label (literal 
		   (format-number (child-number (current-node)) "1")))
	 (title (select-elements (children (current-node)) "TITLE"))
	 (has-title (not (node-list-empty? title)))
	 (r-title (if has-title 
		      (make sequence
			(with-mode xref-title-mode
			  (process-node-list (node-list-first title))))
		      (literal ""))))
    
    (make display-group
      space-before: %block-sep%
      space-after: %block-sep%
      (make paragraph
	font-family-name: %title-font-family%
	font-weight: 'bold
	space-before: %para-sep%
	space-after: %para-sep%
	keep-with-next?: #t
	(literal "Requirement: ")
	p-label
	(literal ".")
	c-label
	(literal " ")
	r-title)
      (process-children))))


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Re: Last child-number? function - is there one?, (continued)
    • Toby Speight - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA24327Mon, 7 Sep 1998 11:24:38 -0400 (EDT)
    • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA28397Mon, 7 Sep 1998 14:11:09 -0400 (EDT)
      • Louis-Dominique Dubeau - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA05383Tue, 8 Sep 1998 11:27:14 -0400 (EDT)
      • Thomas Corte - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id QAA22285Tue, 29 Sep 1998 16:29:01 -0400 (EDT)
        • Adam P. Harris - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id CAA20801Wed, 30 Sep 1998 02:59:54 -0400 (EDT) <=
        • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id GAA28436Wed, 30 Sep 1998 06:08:42 -0400 (EDT)
        • Thomas Corte - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id IAA00243Wed, 30 Sep 1998 08:02:27 -0400 (EDT)
        • Adam P. Harris - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA07368Wed, 30 Sep 1998 11:32:45 -0400 (EDT)
        • David Carlisle - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA08047Wed, 30 Sep 1998 11:54:34 -0400 (EDT)