Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Rackham S.AsciiDoc user guide Rev7.1.2.2006.pdf
Скачиваний:
19
Добавлен:
23.08.2013
Размер:
298.24 Кб
Скачать

AsciiDoc User Guide

cols

The number of columns in the table.

colalign

Column alignment assumes one of three values (left, right or center). The value is determined by the corresponding ruler column stop character (only valid inside colspec tags).

colwidth

The output column widths are calculated integers (only valid inside colspec tags).

format

The table definition format value (can be overridden with attribute list entry).

tablewidth

The ruler tablewidth value (can be overridden with attribute list entry).

pagewidth

The pagewidth miscellaneous configuration option.

pageunits

The pageunits miscellaneous configuration option.

The colwidth value is calculated as (N is the ruler column width number and M is the sum of the ruler column widths):

( N / M ) * pagewidth

If the ruler tablewidth was specified the column width is multiplied again by this value.

There is one exception: character rulers that have no pagewidth specified. In this case the colwidth value is calculated as (where N is the column character width measured on the table ruler):

( N / textwidth ) * pagewidth

The following attributes are available to the table markup template:

comspecs

Expands to N substituted comspec tags where N is the number of columns.

headrows, footrows, bodyrows

These references expand to sets of substituted header, footer and body rows as defined by the corresponding row and data configuration parameters.

Manpage Documents

Sooner or later, if you program for a UNIX environment, you're going to have to write a man page.

By observing a couple of additional conventions you can compose AsciiDoc files that will translate to a DocBook refentry (man page) document. The resulting DocBook file can then be translated to the native

45