|
Subject: Last child-number? function - is there one? From: "Pawson, David" <DPawson@xxxxxxxxxxx> Date: Mon, 7 Sep 1998 14:54:22 +0100 |
I want to put a bigger space after a series of
list items, hence need to know if this node is the
last in its siblings.
I have used something like
break-before: (if (= 1 (child-number (current-node)))
'page
#f)
when wanting to know if this is the first child,
Is there a similar (last-child .... function
to determine if this is the last child of the immediate parent?
Could I use
space-after: (if (equal? (next-matching-node ) (empty-node-list))
0pt
%bf-size%
since (next-matching-node )
Returns either the following sibling with the same GI as osnl (or of the
current node if osnl is not supplied) or an empty
node-list if there is no following matching sibling.
Has anyone else needed this one before?
TIA, DaveP
timeo gaecos dona ferentes
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Change bars in RTF, Ralph Ferris | Thread | Re: Last child-number? function - , Toby Speight |
| Change bars in RTF, Karen Lease | Date | Re: Last child-number? function - , Toby Speight |
| Month |