Tutorial on | |
|
PPresenter Manual Tutorials html2Markup
|
Portable Presenter is a package designed
to give presentations. Of course, presentations do contain text (although
it should be avoided: try to stick to images and drawings). Text is
entered using a formatter. The
only formatter available now is the
Markup formatter, which is described
in this tutorial.
The Markup formatter and HTMLThe Markup formatter is a close brother to HTML: although there are a few basic differences, markup is easy to learn when you are acquainted to HTML.What are the differences, and why:
Markup is more compactWhen you write a slide, you usually have many more font and color changes than on a web-site. To simplify your work, you can specify many font-changes with any other tag:
HTML: Markup:
<CENTER><FONT SIZE=-1 <CENTER SIZE=-1
COLOR=green>tekst COLOR=green>tekst
</FONT></CENTER> </CENTER>
Tags can be used as parameterIn Markup, any tag can be used as a parameter:
HTML: Markup:
<CENTER><B> <CENTER B>
bold centered text bold centered text
</B></CENTER> </CENTER>
A parameter without value (as the B) is equivalent to
B=1. You can also use B=0 to explicitly
switch bold off.
Not permitted is Tags can be used as container and switchIn HTML, you have three types of tags:
Markup: HTML:
<CENTER B> <CENTER><B>
text text
<FONT COLOR=yellow> <FONT COLOR=yellow>
more more
<FONT COLOR=green> </FONT><FONT COLOR=green>
last last
</CENTER> </FONT></B></CENTER>
In markup, containers are seen as brackets. When you leave a container, all
font settings are set back to the values as when the container was entered.In the example, in markup you may leave the </CENTER>
away, for instance when you reach the end of the text.
Many more tagsMarkup has quite some tags more than html has. Especially tags related to slides:
LARGE,
HUGE, SMALL, which are derived from
<FONT SIZE=number>.
It is safe to nestDon not try this is HTML; browsers behave differently:
<CENTER>
<FONT SIZE=-1>small
<FONT SIZE=-1>smaller</FONT>
</FONT>
</CENTER>
But in Markup, you can safely do:
<CENTER>
<SMALL>small
<SMALL>smaller</SMALL>
</SMALL>
</CENTER>
or (optimized)
<CENTER>
<SMALL>small
<SMALL>smaller
</CENTER>
Adding logical tagsYou can add your own logical tags:
$show->find(formatter => 'markup')
->addLogical(EMAIL => 'TT B');
|
|
Portable Presenter is written and maintained by Mark Overmeer. There is no relation between this software product and his employer. Copyright (C) 1999, Free Software Foundation Inc. |