OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Help! Tables


Hello,

I'm trying to format my tables (mainly for PDF output appearance, but a general look nonetheless).

Here is what I would like:

______________________
Column1   Column 2_____

           1   Some text here
           2   Some text here
         ...    ...
______________________


The basic idea is that numbers would be right aligned and text would be left. The size of the table is determined by the longest row.

I've tried making the tables with HTML and CALS, but my results are not satisfactory.  With HTML tables I get the size right, but no text alignment.  With CALS tables I can control the border appearance, but not the row separation, and the text does not align correctly.

Here is my code:

WITH CALS
<informaltable rules="rows">
       <tgroup cols='2'>
            <colspec colnum='1' colname='col1' colwidth='1*' align='right'/>
            <colspec colnum='2' colname='col2' colwidth='4*'/>
        <thead rowsep='1'>
          <row>
            <entry align='left'>type</entry>
            <entry>comments</entry>
          </row>
          </thead>
          <tbody>
          <row>
            <entry align='right'>0</entry>
            <entry>small group of binning settings</entry>
          </row>
          <row>
            <entry>1</entry>
            <entry>range of binning settings starting from 1</entry>
          </row>
        </tbody>
        </tgroup>
</informaltable>

WITH HTML
<informaltable>
    <colgroup>
        <col align="right"/>
        <col/>
    </colgroup>
    <thead>
          <tr>
            <th align="left">type</th>
            <th>comments</th>        
          </tr>
     </thead>
      <tbody>
          <tr>
            <td>0</td>
            <td>small group of binning settings</td>         
          </tr>
          <tr>
            <td>1</td>
            <td>range of binning settings starting from 1</td>           
          </tr>
      </tbody>
 </informaltable>

I use docbook-xsl-1.74.0, SAXON, XEP.  I've tried to do some tweeking with customizations, but I can't seem to get anything to work.  Thanks for any help!

Lillian Sullam





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]