pyslide

Langue: en

Version: 252845 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

pyslide - A presentation program

SYNTAX

pyslide [options] <filename(s)>

DESCRIPTION

The presentation is loaded from an XML file. You can compile the presentation if you want to not depend on python-xml and load it a little bit faster.

You can open more than one presentation. Pyslide will show them sequentially.

OPTIONS

-v
Verbose mode. Put more -v (max 5) if you want more output.
-f
Set fullscreen mode on start.
-c --compile
Writes to stdout the python code necesary to create the presentation. The code will load the presentation faster (since it doesn't need to parse an XML file) and doesn't depend on python-xml. You still depend on the Pyslide package.
-H --html <outdir>
Export to HTML. Pyslide will create html files and png images, with the presentation content.
-s --size <size>
Set the window/screen size. If you set this argument, Pyslide will ignore the size attribute of the presentation.
-k
By default, Pyslide will set the current working directory to the place where the XML file is located. This is useful to load images and other files that are in that directory. If you don't want to change the directory, use this option.
-p page-number
Starts the presentation directly in page-number. If page-number is negative, it will start at the end; ie, -1 is the last page, -2 the last but one, etc.
-x --script
Load the file as a script. See below more information.
-S --standalone
Make an standalone XML. See below for more information.
-I
Ignore errors on images. That is, if an image can't be loaded, Pyslide will substitute it with an empty surface (and do a warning) instead of exists
--color-names
Show all the available color names and exit.
--help \-h
Print help information and exit.
--version
Print version information and exit.

KEYS

Q
Stop the presentation and exit
F
Toggle fullscreen
-> or espace
Next item. If there is no more item, go to the next page
<-
Previous item.
Page down
Next page
Page up
Previous page
T
Shows a timer.
S
Shows the current page number.

When you press `S' once, a little bar will be showed at the bottom of the page. You can see the current page in that bar.

if you want to see the bar all the time, you have open it with `S' and, before it is hidden, press again `S'. The bar will be always showed, and updated when you change page. If you want to hide it again, press `S'.

SCRIPT MODE

If you want to use your presentations as ``scripts'' (that is, use it as ejecutables files) you can do this with the -x or --script option.

When you load the XML files as scripts, Pyslide will ignore the lines which begin with a ``#''. After the first line that does not start with a ``#'', the rest of content will be loaded completly.

Renember that you have to start the XML file with something like


    #!/usr/bin/pyslide -x 
    # Some commments if you want :-)
    <presentation ...>
        ..

STANDALONE FILES

When you make a presentation, you normally use external files (CSS, images, etc). Pyslide lets you make an unique XML with everything in it. That is, CSS will disappear (alias and classes will be expanded) and images will be embedded.

The new XML will be dumped to stdout.

EXAMPLES

To run the presentation in full screen mode

pyslide -f foo.xml

To compile the presentation and run it

pyslide -c myslide.xml > myslide.py
python myslide.py

AUTHORS

Ayose Cazorla <ayose.cazorla@hispalinux.es>