Next: Supported tags   Previous: Embedding Perl   Contents: Contents

Tables by tag

It was mentioned in the paragraph chapter that tables can be built by table paragraphs. Well, there is a tag variant of this:



  \TABLE{bg=blue separator="|" border=2}

  \B<column 1>  |  \B<column 2>  | \B<column 3>
     aaaa       |     bbbb       |  cccc
     uuuu       |     vvvv       |  wwww

  \END_TABLE

\TABLE opens the table, while \END_TABLE closes it.

These tags are sligthly more powerfull than the paragraph syntax: you can set up several table features like the border width yourself, and you can format the headlines as you like.

All enclosed lines are evaluated as table rows by default, which means that each source line between \TABLE and \END_TABLE is treated as a table row. PerlPoint as well allows you to specify a string of your own choice to separate rows by option rowseparator. This allows to specify a table inlined into a paragraph.



  \TABLE{bg=blue separator="|" border=2 rowseparator="+++"}
  \B<column 1> | \B<column 2> | \B<column 3> +++ aaaa
  | bbbb | cccc +++ uuuu | vvvv|  wwww \END_TABLE

This is exactly the same table as above.

As in all tables, leading and trailing whitespaces of a cell are automatically removed, so you can use as many of them as you want to improve the readability of your source.

Tables built by tag are normalized the same way as table paragraphs are.

Here is a list of basically supported tag options (by table):

optiondescription
separatora string separating the table columns (can contain more than one character)
rowseparatora string separating the table rows (can contain more than one character)
gracecrusually set correctly by default, this specifies the number of row separators to be ignored before they are treated as separators - which usually allows to start the table contents in a subsequent line after the line containing the \TABLE tag

More options may be supported by your PerlPoint translator software.

Next: Supported tags   Previous: Embedding Perl   Contents: Contents