Adding tables

From LabTrove Documentation
Jump to: navigation, search

You can choose to add tables to your Posts. The easiest way to add a table to your Post is to paste a table from another application such as Word. You can also use the table markup to add a table to your Post. The table markup defines the number of rows and columns, and their text content. Alternatively, you can use the HTML button to add html table tags directly to the Post.

The following is an example of a simple table using the table markup:

Temperature: Velocity:
10o 0.49
24o 3.60
47o 16.04
60o 44.78

The markup to create this table is shown below:

   [table]    
   [mrow][b]Temperature:[/b][col][b]Velocity:[/b][/mrow]   
   [row]10<sup>o</sup>[col]0.49[/row]   
   [row]24<sup>o</sup>[col]3.60[/row]       
   [row]47<sup>o</sup>[col]16.04[/row]
   [row]60<sup>o</sup>[col]44.78[/row]   
   [/table]

Use the [table] tag at the beginning of the table, and the [/table] tag at the end of the table. The [mrow] and [/mrow] tags define the limit of the header row in the table. If you want the text in the header row to appear formatted you must manually add your own formatting. The [col] markup indicates the beginning of a new column. The [row] and [/row] markup define the limits of the row in the table.

If you want to add extra columns to the table, add [col] and the value to the end of each row before the [/mrow] or [row] markup. If you want to add extra rows to the table, use the [row] and [/row] markup. The following table contains more columns:

Temp t1 t2 t3 t4 t5 Avg
10o 79.19 70.66 66.50 49.78 42.30 61.69
24o 7.96 8.35 8.37 8.56 8.40 8.33
47o 1.6 1.71 1.88 2.00 2.16 1.87
60o 0.50 0.62 0.75 0.66 0.81 0.67

The markup to create this table is shown below:

[table]    
[mrow][b]Temp[/b][col][b]t1[/b][col][b]t2[/b][col][b]t3[/b][col][b]t4[/b][col][b]t5[/b][col][b]Avg[/b][/mrow]   
[row]10<sup>o</sup[col]79.19[col]70.66[col]66.50[col]49.78[col]42.30[col]61.69[/row]    
[row]24<sup>o</sup[col]7.96[col]8.35[col]8.37[col]8.56[col]8.40[col]8.33[/row]       
[row]47<sup>o</sup[col]1.6[col]1.71[col]1.88[col]2.00[col]2.16[col]1.87[/row]
[row]60<sup>o</sup[col]0.50[col]0.62[col]0.75[col]0.66[col]0.81[col]0.67[/row]   
[/table]

What to do next


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Print/export