Title

tbl -- creates a dynamic table in HTML, LaTeX, or Markdown. It can also align each column to left, center, or right, and also create
multiple-colummns for hierarchical tables. This command belongs to
Weaver package, but it also supports the MarkDoc package.
For using the command in MarkDoc package
see the MarkDoc documentation on GitHub wiki

Syntax

Creates dynamic table in HTML/Markdown

tbl (*[,*...] [\ *[,*...] [\ [...]]]) [, title(str) width(int) height(int) left center ]

where the * represents a display directive which is

"double-quoted string"

`"compound double-quoted string"'

[%fmt] [=]exp
,

Display directives

The supported display directives are:

"double-quoted string" displays the string without
the quotes

`"compound double-quoted string"' display the string
without the outer quotes; allows embedded quotes

[%fmt] [=] exp allows results to be formatted;
see [U] 12.5 Formats: Controlling how data are displayed

, separates the directives of each column of the table

if placed before any of the directives mentioned above,
this directive create a left-aligned column.

creates a center-aligned column.

creates a right-aligned column.

if placed before any of the directives mentioned above,
this directive will create a multi-column by merging # number of columns.

Description

tbl is a command in Weaver package that creates a dynamic table
in HTML or LaTeX, depending on the markup language used in Weaver log.
If Weaver HTML is in use, tbl will be able to interpret the
Weaver Markup codes as well as
Weaver mathematical notations. In other words,
Weaver Markups and Weaver mathematical notations
can be used as a display directives within the tbl command to alter other
directives or display mathematical signs and formulas. Advanced users can also use HTML
code to alter the table.

If LaTeX markup is used for creating the Weaver log, then tbl command
creates a LaTeX table. However, neither Weaver Markup nor
Weaver mathematical notations are not
supporting LaTeX. Instead, LaTeX mathematical notations can be
used for writing mathematical notations or altering the table.

Remarks

Note that the tbl command parses the rows using the backslash symbol. Therefore,
to include LATEX notations in a dynamic table that begin with a backslash such as
\beta or 95\%, double backslash should be used to avoid conflict with
the parsing syntax (e.g. \\beta and 95\\% )

Examples

creating a simple 2x3 table with string and numbers
. tbl ("Column 1", "Column 2", "Column 3" \ 10, 100, 1000 )

creating a table that includes scalars and aligns the columns to left, center, and right respectively
. tbl ("Left", "Centered", "Right" \ c(os), c(machine_type), c(username))

write mathematical notations
. tbl ("\( \\beta \)", "\( \\epsilon \)" \ "\( \\sum \)", "\( \\prod \)")

Author

E. F. Haghish

Center for Medical Biometry and Medical Informatics

University of Freiburg, Germany

and

Department of Mathematics and Computer Science

University of Southern Denmark

haghish@imbi.uni-freiburg.de

Weaver Homepage

Package Updates on Twitter

This help file was dynamically produced by MarkDoc Literate Programming package