Next Previous Contents

3. Environments

This section describes all environments, a slide may contain. Note, that each slide can only contain one environment.

3.1 Itemize Environment

If you want to write some itemizations, you can use the <itemize> markup to define one. The itemize environment must contain at least one <item> markup, which contains the text of an item.

The <itemize> markup takes the following optional properties :

type

If set to "none", no bullet will be drawn. If set to "disc", a filled circle will be used as bullet. If set to "circle", a circle will be used as bullet. If set to "square", a square will be used as bullet. The default-value for itemizations is "disc". And for nested itemizations, "circle" will be used as default.

step

If set to "yes", the items will be written one-by-one. The default-value is "no", which will write all items at once.

closing_p

If set to "no", the HTML-output of all items will not have a closing </P> markup. With this, the items will be written more close to each other. The default-value of this property is "yes".

Example :


<itemize step="yes">
  <item>Here is the first</item>
  <item>The second one</item>
  <item>The last one</item>
</itemize>

Using sub-itemizations

To write some nested items, you can define another itemize environment inside of the main itemize environment.

Example :


<itemize step="yes">
  <item>The first</item>
  <itemize>
    <item>Part one</item>
    <item>Part two</item>
  </itemize>
  <item>The second</item>
  <item>The third</item>
</itemize>

3.2 Enumerate Environment

The enumerate environment is nearly the same as the itemize environment. The difference is, that there will be used numbers or letters rather than bullets to mark the items.

The <enumerate> markup takes the following optional properties :

type

If set to "decimal", the items will be numbered with 1, 2, 3,... If set to "upper-alpha", the items will be numbered with A, B, C,... If set to "lower-alpha", the items will be numbered with a, b, c,... If set to "upper-roman", the items will be numbered with I, II, III,... If set to "lower-roman", the items will be numbered with i, ii, iii,... The default-value for this property is "decimal".

step

If set to "yes", the items will be written one-by-one. The default-value is "no", which will write all items at once.

closing_p

If set to "no", the HTML-output of all items will not have a closing </P> markup. With this, the items will be written more close to each other. The default-value of this property is "yes".

Example :


<enumerate step="yes">
  <item>Here is the first</item>
  <item>The second one</item>
  <item>The last one</item>
</enumerate>

3.3 Image Environment

The image environment can be used to present one or more images. Each image must be defined with an <img> markup, which points to a file using the properties html and latex. These properties will be used to define the filename of the image for the HTML-slide and the LaTeX-output. If you don't want to create LaTeX-output, the property latex may be omitted.

The <image> may have the following properties :

align

Use this property to define the horizontal alignment of the image. Possible values are "left", "center" or "right". If omitted, a centered alignment will be used.

latex_scale

Use this property to enable/disable the scaling of the images in the LaTeX-output. Possible values are "yes" (which is the default) or "no".

Example :


<image align="center">
  <img html="seq_a.png" latex="seq_a"/>
  <img html="seq_b.png" latex="seq_b"/>
  <img html="seq_c.png" latex="seq_c"/>
</image>

Note, that the filename in the latex property doesn't have an extension. This isn't needed, because PresTiMeL uses the LaTeX-command \includegraphics, which is intelligent enough, to take the ps or the pdf file, if latex or pdflatex is called.

3.4 Code Environment

The code environment can be used to present source-code (for example).

Example :


<code>
#include &lt;stdlib.h&gt;

int main(int argc, char **argv)
{
    printf("Hello World !\n");
}
</code>

You have to encode special characters like "<", ">" and "&" with the apropriate HTML-entities. Otherwise, the XML-parser will be confused.

3.5 Text Environment

The text environment can be used to fill the screen with any text you want.

Example :


<text>
There can be written any text.
Bla bla bla ...
</text>

3.6 Grid Environment

Using the grid-environment, you can split up the screen to a grid with the given number of rows and columns. Each cell of the grid contains an environment of your choice.

rows

Set the number of rows of the grid. If omitted, a default-value of "1" will be used.

columns

Set the number of columns of the grid. If omitted, a default-value of "1" will be used.

step

If set to "yes", the cells of the grid will be written one-by-one. The default-value is "no", so all cells will be written at once.

cellpadding

This property is used to define the padding between the cells. If omitted, a default-value of "20" will be used.

border

This property is used to define the border-width of the grid. If omitted, a default-value of "0" will be used, which will disable the border.

contract

If set to "yes", the cells of the grid will be as small as possible. The default-value is "no", which makes the grid use nearly all horizontal space available.

Example :


<grid rows="2" columns="2" step="yes">
  <image>
    <img html="grid_d.png" latex="image"/>
  </image>
  <itemize>
    <item>Some explaination</item>
    <item>to be continued...</item>
  </itemize>
  <code>
if (counter == 10) {
    printf("Yeah !\n");
} else {
    printf("No.\n");
}   
  </code>
  <text>
    This is the explaination of the figure above and the code to the left.
  </text>
</grid>

3.7 Special markups for text

Text inside an itemize, enumerate or text environment may include the following markups :

<emph> ... </emph>

The text between the opening and closing markup will be emphased using an italic font.

<bold> ... </bold>

The text between the opening and closing markup will be written bold.

<br/>

Insert a line-break at the given position.

<url/>

This markup to define an URL should be considered obsolete. Please use the following markup instead :

<a> ... </a>

This is the new markup for URLs. A property href must be given, which content points to the URL which you want to refer.


Next Previous Contents