| 1 | <refentry id="colspec.element"> |
| 2 | <?dbhtml filename="colspec.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>colspec</secondary></indexterm> |
| 11 | <refentrytitle>colspec</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>colspec</refname> |
| 16 | <refpurpose>&colspec.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &colspec.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | The attributes of this empty element specify the presentation characteristics |
| 24 | of entries in a column of a table. |
| 25 | </para> |
| 26 | |
| 27 | <para> |
| 28 | Each <sgmltag>ColSpec</sgmltag> refers to a single column. Columns are numbered |
| 29 | sequentially from left to right in the table. If the |
| 30 | <sgmltag class='attribute'>ColNum</sgmltag> attribute is not specified, the |
| 31 | <sgmltag>ColSpec</sgmltag> is for the next column after the preceeding |
| 32 | <sgmltag>ColSpec</sgmltag> or column 1 if it is the first <sgmltag>ColSpec</sgmltag>. |
| 33 | </para> |
| 34 | |
| 35 | <refsect2><title>Processing expectations</title> |
| 36 | <para> |
| 37 | &format.suppress; &calssemantics; |
| 38 | </para> |
| 39 | </refsect2> |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | &colspec.parents.gen; |
| 45 | </refsect1> |
| 46 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 47 | <variablelist> |
| 48 | <varlistentry><term>align</term> |
| 49 | <listitem> |
| 50 | <para> |
| 51 | <sgmltag class="attribute">Align</sgmltag> specifies the horizontal alignment |
| 52 | of <sgmltag>Entry</sgmltag>s (or <sgmltag>EntryTbl</sgmltag>s) in the column. The |
| 53 | default alignment is inherited from the enclosing <sgmltag>TGroup</sgmltag>. |
| 54 | If <literal>Char</literal> is specified, see also |
| 55 | <sgmltag class="attribute">Char</sgmltag> and |
| 56 | <sgmltag class="attribute">CharOff</sgmltag>. |
| 57 | Individual <sgmltag>Entry</sgmltag>s and |
| 58 | <sgmltag>EntryTbl</sgmltag>s can specify an alternate alignment. |
| 59 | </para> |
| 60 | </listitem> |
| 61 | </varlistentry> |
| 62 | <varlistentry><term>char</term> |
| 63 | <listitem> |
| 64 | <para> |
| 65 | <sgmltag class="attribute">Char</sgmltag> specifies the alignment character when |
| 66 | the <sgmltag class="attribute">Align</sgmltag> attribute is set to <literal>Char</literal>. |
| 67 | </para> |
| 68 | </listitem> |
| 69 | </varlistentry> |
| 70 | <varlistentry><term>charoff</term> |
| 71 | <listitem> |
| 72 | <para> |
| 73 | <sgmltag class='attribute'>CharOff</sgmltag> specifies the percentage of the |
| 74 | column's total width that should appear to the left of the first |
| 75 | occurance of the character identified in <sgmltag |
| 76 | class='attribute'>Char</sgmltag> when the <sgmltag class='attribute'>Align</sgmltag> |
| 77 | attribute is set to <literal>Char</literal>. This attribute is inherited from |
| 78 | the enclosing <sgmltag>TGroup</sgmltag>. |
| 79 | </para> |
| 80 | </listitem> |
| 81 | </varlistentry> |
| 82 | <varlistentry><term>colname</term> |
| 83 | <listitem> |
| 84 | <para> |
| 85 | <sgmltag class="attribute">ColName</sgmltag> gives a symbolic name to a column. |
| 86 | The symbolic name can then be used in subsequent <sgmltag>Entry</sgmltag>s and |
| 87 | <sgmltag>SpanSpec</sgmltag>s to identify the column. |
| 88 | </para> |
| 89 | </listitem> |
| 90 | </varlistentry> |
| 91 | <varlistentry><term>colnum</term> |
| 92 | <listitem> |
| 93 | <para> |
| 94 | <sgmltag class="attribute">ColNum</sgmltag> gives the number of the column defined |
| 95 | by this <sgmltag>ColSpec</sgmltag>. If not specified, this <sgmltag>ColSpec</sgmltag> |
| 96 | describes the next column to the right of the column defined by the previous |
| 97 | <sgmltag>ColSpec</sgmltag> or the first column (column 1) if this is the first |
| 98 | <sgmltag>ColSpec</sgmltag>. |
| 99 | </para> |
| 100 | </listitem> |
| 101 | </varlistentry> |
| 102 | <varlistentry><term>colsep</term> |
| 103 | <listitem> |
| 104 | <para> |
| 105 | If <sgmltag class="attribute">ColSep</sgmltag> has the value 1 (true), then |
| 106 | a rule will be drawn to the right of the column described by this |
| 107 | <sgmltag>ColSpec</sgmltag>. A value of 0 (false) suppresses the rule. |
| 108 | The rule to the right of the last column in the table is controlled by the |
| 109 | <sgmltag class="attribute">Frame</sgmltag> attribute of the enclosing |
| 110 | <sgmltag>Table</sgmltag> or <sgmltag>InformalTable</sgmltag> and the |
| 111 | <sgmltag class="attribute">ColSep</sgmltag> of the last column in the table |
| 112 | is ignored. If unspecified, this attribute is inherited from |
| 113 | enclosing elements. Individual <sgmltag>Entry</sgmltag>s or <sgmltag>EntryTbl</sgmltag>s |
| 114 | can override the <sgmltag>ColSpec</sgmltag> setting of this attribute. |
| 115 | </para> |
| 116 | </listitem> |
| 117 | </varlistentry> |
| 118 | <varlistentry><term>colwidth</term> |
| 119 | <listitem> |
| 120 | <para> |
| 121 | <sgmltag class='attribute'>ColWidth</sgmltag> specifies the desired width of the |
| 122 | relevant column. It can be either a fixed measure using one of the |
| 123 | &CALS; units (36pt, 10pc, etc.) or a proportional measure. Proportional |
| 124 | measures have the form <quote><emphasis>number</emphasis><literal>*</literal></quote>, meaning |
| 125 | this column should be <emphasis>number</emphasis> times wider than a column with |
| 126 | the measure <quote><literal>1*</literal></quote> (or just <quote><literal>*</literal></quote>). These two |
| 127 | forms can be mixed, as in <quote><literal>3*+1pc</literal></quote>. |
| 128 | </para> |
| 129 | </listitem> |
| 130 | </varlistentry> |
| 131 | <varlistentry><term>rowsep</term> |
| 132 | <listitem> |
| 133 | <para> |
| 134 | If <sgmltag class="attribute">RowSep</sgmltag> has the value 1 (true), then a |
| 135 | rule will be drawn below the cells in the specified column. A value |
| 136 | of 0 (false) suppresses the rule. The rule below the last row in the |
| 137 | table is controlled by the <sgmltag class="attribute">Frame</sgmltag> attribute |
| 138 | of the enclosing <sgmltag>Table</sgmltag> or <sgmltag>InformalTable</sgmltag> and |
| 139 | the <sgmltag class="attribute">RowSep</sgmltag> of the last row is ignored. If |
| 140 | unspecified, this attribute is inherited from enclosing elements. |
| 141 | Individual <sgmltag>Entry</sgmltag>s or <sgmltag>EntryTbl</sgmltag>s |
| 142 | can override the <sgmltag>ColSpec</sgmltag> setting of this attribute. |
| 143 | </para> |
| 144 | </listitem> |
| 145 | </varlistentry> |
| 146 | </variablelist> |
| 147 | </refsect1> |
| 148 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 149 | &colspec.seealso.gen; |
| 150 | </refsect1> |
| 151 | <refsect1><title>Examples</title> |
| 152 | |
| 153 | &colspec.example.seealso.gen; |
| 154 | </refsect1> |
| 155 | </refentry> |
| 156 |