Re: Right-align a table column

Subject: Re: Right-align a table column
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Mon, 02 Feb 1998 20:59:30 -0800
At 17:44 98/02/02 -0500, Wayne Richards wrote:
>I'm attempting to right-align a column in my table using 
>display-alignment: 'end, but the rtf is still left-aligned when I 
>open it with Word.  Am I doing this right?

The paragraph flow object area is the width of the cell, and due to your
characteristic the area itself is right aligned, but the text inside the
paragraph flow object is still the default: "start".  The quadding
characteristic is still needed to change the text inside the flow object.

The RTF produced from the following example will show you how only the text
of the last column is aligned as you wish.

I hope this helps.

......... Ken

F:\FTEMP>type test.sgm
<!DOCTYPE doc [
<!ELEMENT doc - O EMPTY>
]><doc>

F:\FTEMP>type test.dsl
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(root
    (make simple-page-sequence
        page-width:     8.5in
        page-height:    11in
        left-margin:    .5in
        right-margin:   .5in
        header-margin:  .5in
        footer-margin:  .5in
        top-margin:     1in
        bottom-margin:  1in
        (process-children)))

(element doc
    (make table
        table-border: #t
        cell-after-column-border: #t
        (make table-column width: 1.5in)
        (make table-column width: 1.5in display-alignment: 'end)
        (make table-column width: 1.5in)
        (make table-cell        ;nothing
            (literal "A"))
        (make table-cell        ;table column alignment
            (literal "B"))
        (make table-cell        ;paragraph alignment
            (make paragraph
                quadding: 'end
                (literal "C")))))

(default                       ;handle all elements not explicitly handled
    (process-children))

; end of file

F:\FTEMP>jade -t rtf -c l:\jade\jadecurr\catalog test.sgm

F:\FTEMP>



--
G. Ken Holman            mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com
Box 266,                             V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0         F: +1(613)489-0995
PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp
Training:  http://www.CraneSoftwrights.com/schedule.htm


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


Current Thread
  • Right-align a table column
    • Wayne Richards - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id RAA09233Mon, 2 Feb 1998 17:45:42 -0500 (EST)
      • G. Ken Holman - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id AAA12848Tue, 3 Feb 1998 00:09:36 -0500 (EST) <=