Defining tables You read the previous page about defining fonts, yes? So what do you expect tables are defined?

Defining tables The source to define a table is very similar to the one which defines fonts:

deftable
  name exapmle 
  tdstart XX
  tdend YY
  font auto
  border 0
  cellpadding 10
  cellspacing 0
enddef
Ok, the first entris should be clear: We need again a name (which may exist twice: one time as font and one time as table). With tdstart and tdend you can set html code which is inserted after every td-Tag and before every td-end-Tag. (In older version this was used to declare the table font, but this is now obsolete, because:) The last fix option is font. Here you can set the font which should be used for the table. It can be one of your defined fonts or it may contain the value 'auto' which stands for autodetect, i.e. the surrounding font is used, if it was declared using a makeHTML font.
The other parameters are optional: They are included as parameters in the table tag. So you can add here what you want, no matter what. If you want a white table background, simply add bgcolor #FFFFFF. By this open definition makeHTML is ready for comming HTML versions above 4.0, where perhaps a fuzzyborder for tables will be possible. So you simply add fuzzyborder 10 or something.

Useing tables Well and how to use tables? Well, simple:

<!--starttable:example-->
<tr>
  <td>...</td>
  <td>...</td>
...
</tr>
...
<!--endtable:example-->
This is the only case at the moment, where you can watch your source files like normal HTML files.

Previous page
Next page