This section describes all environments, a slide may contain. Note, that each slide can only contain one 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 :
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.
If set to "yes"
, the items will be written one-by-one.
The default-value is "no"
, which will write all items at once.
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>
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>
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 :
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"
.
If set to "yes"
, the items will be written one-by-one.
The default-value is "no"
, which will write all items at once.
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>
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 :
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.
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.
The code environment can be used to present source-code (for example).
Example :
<code>
#include <stdlib.h>
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.
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>
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.
Set the number of rows of the grid.
If omitted, a default-value of "1"
will be used.
Set the number of columns of the grid.
If omitted, a default-value of "1"
will be used.
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.
This property is used to define the padding between the cells.
If omitted, a default-value of "20"
will be used.
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.
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>
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.