| 1 | <refentry id="spanspec.element"> |
| 2 | <?dbhtml filename="spanspec.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>spanspec</secondary></indexterm> |
| 11 | <refentrytitle>spanspec</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>spanspec</refname> |
| 16 | <refpurpose>&spanspec.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &spanspec.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <sgmltag>SpanSpec</sgmltag> associates a name with a span between two columns |
| 24 | in a table. In the body of the table, cells can refer to the span by name. |
| 25 | Cells that refer to a span will span horizontally from the first column |
| 26 | to the last column, inclusive. |
| 27 | </para> |
| 28 | <para> |
| 29 | Cells can also form spans directly, by naming the start and end |
| 30 | columns themselves. The added benefit of a <sgmltag>SpanSpec</sgmltag> |
| 31 | is that it can associate formatting information (such as |
| 32 | alignment and table rule specifications) with the span. This information |
| 33 | does not need to be repeated then, on each spanning cell. |
| 34 | </para> |
| 35 | <refsect2><title>Processing expectations</title> |
| 36 | <para> |
| 37 | &format.suppress; &calssemantics; |
| 38 | </para> |
| 39 | <para> |
| 40 | The <sgmltag class='attribute'>NameSt</sgmltag> and <sgmltag |
| 41 | class='attribute'>NameEnd</sgmltag> attributes of a <sgmltag>SpanSpec</sgmltag> must |
| 42 | refer to named <sgmltag>ColSpec</sgmltag>s in the same table. In other |
| 43 | words, if the <sgmltag>SpanSpec</sgmltag> |
| 44 | |
| 45 | <screen> |
| 46 | <![CDATA[ |
| 47 | <spanspec spanname="fullyear" namest="jan" nameend="dec"/> |
| 48 | ]]> |
| 49 | </screen> |
| 50 | |
| 51 | exists in a table, <sgmltag>ColSpec</sgmltag>s named <quote>jan</quote> |
| 52 | and <quote>dec</quote> must also exist in the same table. |
| 53 | </para> |
| 54 | </refsect2> |
| 55 | |
| 56 | |
| 57 | |
| 58 | &spanspec.parents.gen; |
| 59 | </refsect1> |
| 60 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 61 | <variablelist> |
| 62 | <varlistentry><term>align</term> |
| 63 | <listitem> |
| 64 | <para> |
| 65 | <sgmltag class="attribute">Align</sgmltag> specifies the horizontal alignment |
| 66 | of <sgmltag>Entry</sgmltag>s (or <sgmltag>EntryTbl</sgmltag>s) in the span. The |
| 67 | default alignment is inherited from the enclosing <sgmltag>TGroup</sgmltag>. |
| 68 | If <literal>Char</literal> is specified, see also |
| 69 | <sgmltag class="attribute">Char</sgmltag> and |
| 70 | <sgmltag class="attribute">CharOff</sgmltag>. |
| 71 | Individual <sgmltag>Entry</sgmltag>s and |
| 72 | <sgmltag>EntryTbl</sgmltag>s can specify an alternate alignment. |
| 73 | </para> |
| 74 | </listitem> |
| 75 | </varlistentry> |
| 76 | <varlistentry><term>char</term> |
| 77 | <listitem> |
| 78 | <para> |
| 79 | <sgmltag class="attribute">Char</sgmltag> specifies the alignment character when |
| 80 | the <sgmltag class="attribute">Align</sgmltag> attribute is set to <literal>Char</literal>. |
| 81 | </para> |
| 82 | </listitem> |
| 83 | </varlistentry> |
| 84 | <varlistentry><term>charoff</term> |
| 85 | <listitem> |
| 86 | <para> |
| 87 | <sgmltag class='attribute'>CharOff</sgmltag> specifies the percentage of the |
| 88 | column's total width that should appear to the left of the first |
| 89 | occurance of the character identified in <sgmltag |
| 90 | class='attribute'>Char</sgmltag> when the <sgmltag class='attribute'>Align</sgmltag> |
| 91 | attribute is set to <literal>Char</literal>. This attribute is inherited from |
| 92 | the <sgmltag>ColSpec</sgmltag> of the column specified in |
| 93 | <sgmltag class='attribute'>Namest</sgmltag> or from the enclosing <sgmltag>TGroup</sgmltag>. |
| 94 | </para> |
| 95 | </listitem> |
| 96 | </varlistentry> |
| 97 | <varlistentry><term>colsep</term> |
| 98 | <listitem> |
| 99 | <para> |
| 100 | If <sgmltag class="attribute">ColSep</sgmltag> has the value 1 (true), then |
| 101 | a rule will be drawn to the right of the spanning column described by this |
| 102 | <sgmltag>SpanSpec</sgmltag>. A value of 0 (false) suppresses the rule. |
| 103 | The rule to the right of the last column in the table is controlled by the |
| 104 | <sgmltag class="attribute">Frame</sgmltag> attribute of the enclosing |
| 105 | <sgmltag>Table</sgmltag> or <sgmltag>InformalTable</sgmltag> and the |
| 106 | <sgmltag class="attribute">ColSep</sgmltag> of the last column in the table |
| 107 | is ignored. If unspecified, this attribute is inherited from |
| 108 | enclosing elements. |
| 109 | </para> |
| 110 | </listitem> |
| 111 | </varlistentry> |
| 112 | <varlistentry><term>nameend</term> |
| 113 | <listitem> |
| 114 | <para> |
| 115 | <sgmltag class="attribute">NameEnd</sgmltag> is the name (defined in a |
| 116 | <sgmltag>ColSpec</sgmltag>) of the rightmost column of the span. |
| 117 | </para> |
| 118 | </listitem> |
| 119 | </varlistentry> |
| 120 | <varlistentry><term>namest</term> |
| 121 | <listitem> |
| 122 | <para> |
| 123 | <sgmltag class="attribute">NameSt</sgmltag> is the name (defined in a |
| 124 | <sgmltag>ColSpec</sgmltag>) of the leftmost column of the span. |
| 125 | </para> |
| 126 | </listitem> |
| 127 | </varlistentry> |
| 128 | <varlistentry><term>rowsep</term> |
| 129 | <listitem> |
| 130 | <para> |
| 131 | If <sgmltag class="attribute">RowSep</sgmltag> has the value 1 (true), then a |
| 132 | rule will be drawn below all the cells in this <sgmltag>Span</sgmltag>. |
| 133 | A value of 0 (false) suppresses the rule. The rule below the last row |
| 134 | in the table is controlled by the <sgmltag class="attribute">Frame</sgmltag> |
| 135 | attribute of the enclosing <sgmltag>Table</sgmltag> or |
| 136 | <sgmltag>InformalTable</sgmltag> and the <sgmltag class="attribute">RowSep</sgmltag> |
| 137 | of the last row is ignored. If unspecified, this attribute is |
| 138 | inherited from enclosing elements. |
| 139 | </para> |
| 140 | </listitem> |
| 141 | </varlistentry> |
| 142 | <varlistentry><term>spanname</term> |
| 143 | <listitem> |
| 144 | <para> |
| 145 | <sgmltag class="attribute">SpanName</sgmltag> specifies a name by which |
| 146 | subsequent <sgmltag>Entry</sgmltag> and <sgmltag>EntryTbl</sgmltag>s can refer to the |
| 147 | span defined in this <sgmltag>SpanSpec</sgmltag>. |
| 148 | </para> |
| 149 | </listitem> |
| 150 | </varlistentry> |
| 151 | </variablelist> |
| 152 | </refsect1> |
| 153 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 154 | &spanspec.seealso.gen; |
| 155 | </refsect1> |
| 156 | |
| 157 | </refentry> |
| 158 |