Mod /
Slider
Search:  


1.  Slider

Download: slider-10.zip

Slider is a presentation program that supports:

  • fonts, colors and images
  • background tiles, shaped borders, and embedded windows.
  • embedded tcl/tk script

It also has a small footprint as it uses the Tk text widget

1.1  A Simple Example

Here is a simple example of slider input.

 {
   {First Page} {
      * My first point
      * My second point
      * My third point
   }
}
{
   {Second Page} {
      * My first point
      * My second point
      * My third point
   }
}

1.2  Slider Markup

Input to slider is a list of pages in plain text wiki-like markup. A presentation consists of a pagelist wherein each page is a list with at least 2 elements. The first is the title and the second contains content.

Slides consists of plain text input, or one of the following markup followed by a space character: >

  • * : level 1 bullets
  • ** : level 2 bullets
  • *** : level 3 bullets
  • **** : level 4 bullets
  • | : Centered text
  • > : Preformated text inside {} or output a line-space
  • ^ : Insert an image.
  • # : a comment
  • ! : Evaluate Tcl with substitutions for _

1.3  Markup in a Line

Inside a line we can use the following:

  • italic/bold : ''italic'', '''bold''', ''''bold*italic''''
  • images : An image file, eg. ^^myimg.gif^^
  • color/tags : Colors or tags, eg. %%red%%My first colors%%%%
  • tcl : eg. !!MyProc %W!!
  • escape : Use double backquote pairs to Escape markup, eg.
Here is my ``first ^^escape^^``

1.4  Slide Parameters

Additional sections may be provided as name/value pairs,

  • init - options initialization
  • options - options for the page
  • allopts - options for all pages (only on first page)
  • eval - code to eval for the page
  • alleval - code to eval for every page (only on first page)

1.5  Options

Options contain the following:

  • -fontscale : scaling for fonts
  • -hdrleft : header text to use on left
  • -hdrimgleft : header image file to use on left
  • -hdrright : header text to use on right
  • -hdrimgright : header image to use on right
  • -tile : image to use for background tile.
  • -outertile : an image to use for tiling the outside.
  • -gradient : colors to use for a gradient (if no image).
  • -bullets : a list of 1-4 image files to use for bullets. Bullets can be blank to restore the defaults.
  • -hide : unhide level 1 bullets, one at a time (2=animated).

1.6  File/Directory Details

Slider files can end in any suffix. Typically .spf or .txt is used. Moreover, a presentation can also be run from a .zip file. Just zip it up a file with the name of main.spf or the same name as the zip file prefix. For example

zip -r mypres.zip mypres.spf icons
slider mypres.zip

Alternatively, the zip file can contain a single directory containing main.spf.

1.7  Icons/Images

Icons can be provided in the same directory as the main file. Alternatively, the subdirectory icons will also be searched.

Slider has access to all of the icons in the wize directory /zvfs/img. These can be viewed with:

 wize / Apps/Icons

1.8  Page Options

The first two elements in a pagelist are the title and the markup. An optional third item is a set of options from:

  • -gradient : colors to use for a gradient.
  • -outertile : an image file to use for tiling the outside.
  • -bullets : a list of 1-4 image file names to use for bullets. Bullets can be blank to restore the defaults.

Options applied to a page stay in force. The first page can have a 4th element which is global options applied to all pages.

1.9  Screen Shot

Here is a screenshot:

1.10  Bigger Example

Just type <Control-e> within slider help to see the markup. © 2008 Peter MacDonald

Page last modified on November 23, 2010, at 08:02 AM