Whole document tree colspecDescription"Column specifier," that is, formatting information for a column in a Table, part of TGroup, THead, or TGroup. ColSpec is an empty element, bearing common and Align, Char, Charoff, Colname, Colnum, Colsep, Colwidth, and Rowsep attributes. The default values come from the TGroup, THead, or TFoot that starts the current enclosing group. Each ColSpec is for a single column, so it properly has a column number, Colnum, implicitly in order starting from 1, and an optional Colname by which it is known when used in any SpanSpec or in Entry. A ColSpec set on THead or TFoot should be complete for all columns. It overrides those on the containing TGroup and applies to just the THead or TFoot. If there is no ColSpec used within THead or TFoot, then the ColSpec of the containing TGroup (or the prior TGroup) is used. ColSpecs from the containing TGroup apply to TBody. Attributes
Examples<TABLE COLSEP="1" FRAME="all" ROWSEP="0" SHORTENTRY="0" TOCENTRY="1" TABSTYLE="decimalstyle" ORIENT="land" PGWIDE="0"> <TITLE>Sample Decimal-Aligned Table</TITLE> <TITLEABBREV>Decimal-Aligned Table</TITLEABBREV> <TGROUP ALIGN="char" CHAROFF="50" CHAR="." COLS="4"> <COLSPEC ALIGN="left" COLNUM="1" COLSEP="0" COLWIDTH="7pc"> <THEAD> <ROW> <ENTRY>Gas Ball</ENTRY> <ENTRY>1940</ENTRY> <ENTRY>1960</ENTRY> <ENTRY>1980</ENTRY> </ROW> </THEAD> <TFOOT> <ROW> <ENTRY>Rating</ENTRY> <ENTRY>3</ENTRY> <ENTRY>1</ENTRY> <ENTRY>2</ENTRY> </ROW> </TFOOT> <TBODY> <ROW> <ENTRY>Diameter</ENTRY> <ENTRY>345.021</ENTRY> <ENTRY>211.02</ENTRY> <ENTRY>221.3</ENTRY> </ROW> <ROW> <ENTRY>Color</ENTRY> <ENTRY>blue</ENTRY> <ENTRY>red</ENTRY> <ENTRY>yellow</ENTRY> </ROW> </TBODY> </TGROUP> </TABLE> <TABLE FRAME="all"> <TITLE>Table With SpanSpec</TITLE> <TGROUP COLS="5" COLSEP="1" ROWSEP="1"> <COLSPEC COLWIDTH="91*"> <COLSPEC COLNAME="col2" COLWIDTH="91*"> <COLSPEC COLNAME="col3" COLWIDTH="91*"> <COLSPEC COLNAME="col4" COLWIDTH="91*"> <COLSPEC COLNAME="col5" COLWIDTH="92*"> <SPANSPEC NAMEEND="col5" NAMEST="col4" SPANNAME="4to5"> <TBODY> <ROW> <ENTRY ALIGN="center" COLNAME="col2" VALIGN="middle">Software 1</ENTRY> <ENTRY ALIGN="center" VALIGN="middle">Software 2</ENTRY> <ENTRY ALIGN="center" VALIGN="middle">Software 3</ENTRY> <ENTRY ALIGN="center" VALIGN="middle">Software 4</ENTRY></ROW> <ROW> <ENTRY ALIGN="center" VALIGN="middle">Platform 1</ENTRY> <ENTRY ALIGN="center" MOREROWS="1" VALIGN="middle">25 MB</ENTRY> <ENTRY ALIGN="center" VALIGN="middle">10 MB</ENTRY> <ENTRY ALIGN="center" SPANNAME="4to5" VALIGN="middle">34 MB</ENTRY></ROW> <ROW> <ENTRY ALIGN="center" VALIGN="middle">Platform 2</ENTRY> <ENTRY ALIGN="center" COLNAME="col3" VALIGN="middle">12 MB</ENTRY> <ENTRY ALIGN="center" VALIGN="middle">30 MB</ENTRY> <ENTRY ALIGN="center" VALIGN="middle">35 MB</ENTRY></ROW></TBODY></TGROUP> </TABLE> |