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 [

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

    (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

(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

; end of file

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


G. Ken Holman            mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.
Box 266,                             V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0         F: +1(613)489-0995
PGP Privacy:

 DSSSList info and archive:

Current Thread
  • Right-align a table column
    • Wayne Richards - from mail1.ability.netby (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 (8.8.5/8.6.12) with ESMTP id AAA12848Tue, 3 Feb 1998 00:09:36 -0500 (EST) <=