FSLPRES - Web Presentation Preparation Script

FSLPRES Version 1.1

INTRODUCTION

fslpres is a little script to take a numerically ordered series of raw html pages and turns it into a linked, indexed, nice-looking web page presentation.

BASIC USAGE

fslpres expects the browser to run with a display size of 1024x768; the best way of displaying is with Internet Explorer in Windows - set the Windows screen size to 1024x768 and make IE go full-screen and auto-hide the remaining toolbar. Whilst preparing in UNIX, display $FSLDIR/etc/fslpres/1024x768.gif and set the display panel of Mozilla to this size. Note that Netscape doesn't work with fslpres.

Prepare all input web pages with filename starting with "_", then a zero-padded number (to enforce the page ordering you want) then any descriptive name followed by ".htm" - for example _1020_fast_intro.htm (I suggest that you use numbering increments of 10 like the good old days of BASIC programming to make it easy to insert other pages later).

Inside each the first line should be the title of the page - used for the actual title and the indexing. The rest forms the inside of a <table> - an example:

Histograms - Tissue Intensity Distributions

<TR>

<td width=35% ALIGN=LEFT VALIGN=CENTER><UL>
<LI> Histogram = "voxel count vs intensity"
<LI> Mixture of Gaussians
<LI> Model class means and widths
<LI> If well separated, clear peaks, i.e. segmentation easy
<LI> In general not so easy; overlap made worse by bias,
blurring, low resolution, head motion
</UL>

<TD ALIGN=CENTER VALIGN=CENTER><IMG SRC="hist.gif">

</TR>

When you have prepared your pages just run fslpres in the presentation directory and it will create an s_whatever.htm version of all the _whatever.htm pages, along with a copy of the first page as index.html and an index of all pages as index.htm


ADVANCED USAGE - EXAMPLE SUBDIRECTORIES

If you want to add break-out slides (for example to contain practical examples to go along with a theory lecture) then just create a _whatever.fpd directory with the same <whatever> filename as the toplevel page it is to be accessed from. This creates a new link on the bottom panel in the toplevel page (marked "e") which points down into the subdirectory; there place the same kind of raw fslpres pages as before. You don't have to run fslpres in the subdirectory - when you run it in the original directory it will process all subdirectories as well.

ADVANCED USAGE - HTML EQUATIONS

You can create LaTeX equations and include them directly from the *.htm files using extra options for the <img ... > tag in html, then process these with a script to create the required image files.
An equation can be specified as:
<img src="images/img4.gif" align=middle eqntex="B = \mu H" eqnargs="-crop x64+0">
The extra options are: All need to have quotes around them.

To create the images, you need latex and latex2html set up correctly and simply run

makehtmeqns s*.htm
after fslpres.

PRINTING

To print all pages use Mozilla, go to the index page and the link that says "Everything on one page". Then do File->Page Setup, set Portrait, clear the Right settings in Header and Footer, and set Percent to 65.


Copyright © 2002, University of Oxford. Written by S. Smith.