Skip to content

Columns environment

Stefano Zaghi edited this page Nov 7, 2014 · 1 revision

It is often useful to subdivide the contents into columns, e.g. to place comments aside figures.

MaTiSSe.py provides an environment for such a contents layout. The syntax is:

$columns
$column[column1_options]
column1_contents
$column[column2_options]
column2_contents
...
$endcolumns

where:

  • $columns and $endcolumns are the tags defining the columns environment;
  • $column[column_options] defines one column; the [column_options] is optional and defines the css style options applied to the column contents;
  • the column contents are all data that follow the $column statement.

Note that the number of columns defined is automatically computed by MaTiSSe.py and it is not necessary to explicitly define it. Note also that the user should always specify the width option of each column for avoiding unpredictable output.

Consider the following code:

$columns

$column[width:60%;padding-right:1%;border-right:1px solid #4788B3;]
This is a two columns contents with a vertical line between the two columns

$column[width:40%;padding-left:1%;]
The left column is large 60% of the slide content width, while the right one is 40% wide.

$endcolumns

This example defines a two columns contents separated by a vertical line with the left column being large 60% of the slide content width, while the right one is 40% wide.

Clone this wiki locally