by Rajarshi Guha, in Tutorials - Saturday, December 28th 2002 00:00 PST
by Rajarshi Guha, in Tutorials - Saturday, December 28th 2002 00:00 PST
A number of dedicated presentation programs have been written for Unix systems, but they may not serve your needs if you have special requirements, especially the need to display mathematical formulas. The Prosper package can help you create attractive presentations while letting you use the full power of LaTeX.
Copyright notice: All reader-contributed material on freshmeat.net is the property and responsibility of its author; for reprint rights, please contact the author directly.
If you write a lot of technical documents, especially those containing formulas, you've probably used LaTeX. LaTeX is, basically, a set of macros for TeX. TeX, in turn, is a powerful typesetting system first developed by Donald Knuth. It has become an important tool for people who prefer to look at a document as series of logical units, leaving the actual presentation or layout to the software. LaTeX was developed by Leslie Lamport to aid in the writing of classes of documents such as journal articles, book chapters, and even letters. LaTeX abstracts many of the nitty gritty details of TeX, such as margin widths, line offsets, etc., allowing the user to simply decide on a document class and leave the style and format to the macros.
Numerous people have written macro packages that can be used with LaTeX. These packages provide an enormous range of functions, from formatting of citations to drawing Feynman diagrams. Together with features such as automatic index generation and bibliographies (using the BibTeX package), they provide the technical writer with an extremely powerful tool to create beautiful documents, concentrating on the logical flow, rather than having to worry about the underlying details of formatting and layout.
However, documents are not the only the things that need to be written; many times, a presentation must be made. Under Linux, tools such as KPresent and MagicPoint exist, and, of course, Windows users have MS PowerPoint. These are the traditional GUI tools. However, when you have to make a presentation containing formulas, they seem a little clunky, and you're stuck with whatever the package provides. Furthermore, if your documents are written using LaTeX, it would be nice if you could use those documents to generate slides for a presentation.
TeX and LaTeX being the all-powerful pieces of software they are, this is indeed possible. However, the problem with making presentations in LaTeX is the large number of packages available to do so. I've listed a few of the packages available, but there are quite a few more which I haven't mentioned.
The slides class
Part of the LaTeX distribution, it defines the page sizes, font sizes, etc. suitable for printing transparencies. Though the resultant DVI file can be converted to a PDF, there is no support for the various features of PDFs such as slide transitions and hyperlinks. Also, the package provides no defined slide styles (i.e., backgrounds, frames, etc.).
The Seminar package
Developed by Timothy van Zandt, this is an extremely powerful set of macros with which you can develop presentations that take full advantage of the PostScript and PDF specifications. There are an extremely large number of options and commands available for this package, so the learning curve is a little steep.
The PDFLatex package
This package is specifically designed for converting LaTeX source files to the PDF format without having to go through the intermediate DVI stage. Using this package along with the FoilTeX, pdfslide, and PPower4 packages allows you to generate presentations as well.
Prosper
This is a set of macros which allows you to generate PostScript or PDF presentations. There are certain advantages of this package over the others. First, though it has a simple structure, it provides enough options to generate good-looking slides. All the features of a PDF document (such as transitions, overlays, etc.) are available. In addition, it is easy to generate different slide styles, a la PowerPoint. Of course, you still have access to the full power of TeX, so you are free to extend your documents if you have the knowhow. For LaTeX beginners, however, Prosper encapsulates a lot of the details in an easy-to-use manner.
All LaTeX documents have a common basic structure. The first line always defines the document type — article, letter, chapter, or, in this case, slides. After that comes the preamble. In the case of Prosper, this is where you specify the title slide. The next section is the document proper. When using Prosper, this is where you define the contents of successive slides. I'll cover the individual sections of a document written with Prosper in detail, but the first step is to install the package.
As I mentioned above, the Prosper package provides a set of macros which define functional elements of a presentation — the slides, how slides should transition, etc. To use the package, you will require the seminar, pstricks, and hyperref packages (which come with the standard TeX distribution on Red Hat). To generate the final output, you'll also need dvips, GhostScript, and ps2pdf. After downloading the tarball, extract it into a directory. To make use of the package and associated style files, you can place the required files (prosper.cls, the style file that you are using, and any associated images, such as for bullets) into the directory that contains your LaTeX document. However, a neater method is to put the Prosper directory into your TEXINPUTS environment variable:
~: export TEXINPUTS=~/src/tex/Prosper:$TEXINPUTS
(Where ~/src/tex/Prosper is the directory into which you extracted the Prosper files.) That completes your installation.
To make a presentation using the Prosper package, you need to specify it in your \documentclass (you can also specify it in a \usepackage command in the preamble). Thus, the first line in the LaTeX file should be of the form:
There are several options that can be specified to the package. You can read about all the options in detail in the documentation that comes with Prosper. I'll just give a brief overview of some of the common and useful ones:
draft
Compiles a draft version of the presentation, with figures replaced by bounding boxes.
final
Compiles a complete version of the presentation with figures and captions in their proper places.
ps
Compiles the LaTeX file to PostScript for printing purposes.
Compile the LaTeX file to a PDF format suitable for projectors.
Another important option to specify is which presentation style to use. Prosper comes with several styles, and new styles can easily be made with a little knowledge of the pstricks package.
There are also options to specify slide background colors, slide numbers, etc. In general, unless you require black and white slides (e.g., for printing purposes), you won't need to set any color options in the \documentclass; the style files will manage them for you.
The next section is the preamble, the part between \documentclass and title page and some options (such as logos and slide captions) that can be applied to all the slides. The normal LaTeX macros have been redefined to generate the title and associated text with proper font sizes, etc. Some of the macros available for designing the title slide include:
\title
\subtitle
\author
\slideCaption (You can use this macro to put a caption at the bottom of each slide.)
\Logo (This allows you to place a logo on each slide at a specified position.)
\DefaultTransition (This defines the type of transition that should occur between slides.)
Since the hyperref package is included by Prosper, you can use the \href command to include mailto: links or direct hyperlinks to Web pages in the above commands (and, of course, in the rest of your document). As in standard LaTeX, the title slide is generated by the \maketitle command in the document body.
The Prosper package defines the slide environment. This represents the basic unit of a presentation (a single slide) and is placed in the document body the usual LaTeX commands may be used. Images, formulas, tables, footnotes, page structure commands, etc. can all be used. The Prosper package does redefine the itemize environment so that the text is no longer justified. It also supplies images for the bullets. Thus, a single slide containing a bulleted list can be represented by the following LaTeX source (alongside, you can see how the final PDF output for this slide would look):
\begin{slide}{The Title of the Slide} \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \end{itemize} \end{slide}
The environment does not provide any means to divide the slide area into columns or rows; it simply provides a rectangular display area (the dimensions of which may vary from style to style). However, using the minipage environment, it is very easy to make a two-column slide. For example, the following would create a slide with a picture in one column and a bulleted list in the other:
\begin{slide}{Another Example Slide} \begin{minipage}{4cm} \epsfig{file=./picture.eps} \end{minpage} \begin{minipage}{7cm} \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \end{itemize} \end{minipage} \end{slide}
Prosper also defines some commands which are allowed to appear in a slide environment. Examples include:
\FontTitle Defines the font to be used in the slide title \FontText Defines the font to be used in the slide text \fontTitle Writes its argument as the slide title \fontText Writes its argument as the slide text
In general, the above macros are not used when writing a presentation. They are, however, useful when you create slide styles of your own.
An important command is \PDFtransition, which can be used to specify how the current slide should appear. However, the usual way to specify a slide transition for a specific slide is to put the transition mode into the
\begin{slide}[Glitter]{Slide Title}
The Prosper package supports several types of transitions:
Split
Blinds
Box
Wipe
Dissolve
Glitter
Replace (the default)
The above transition modes provide you with ample opportunity to make flashy presentations (if that's what you're into :). You can see a PDF which displays each of the transitions here.
A very useful feature of computer-based presentations is the ability to make overlay slides so parts of the same slide will appear at different times. Prosper provides commands to implement this in a very simple fashion. The \overlay command is used to specify that a given \slide environment will consist of a sequence of overlays. You must specify the number of overlays that make up the slide. There are several commands that can be used to specify exactly what material should appear on which slide within an overlay:
\fromSlide{p}{material} Puts material on slides p to the end of the overlay. \onlySlide{p}{material} Puts material only on slide p. \untilSlide{p}{material} Puts material on all slides from the first to the pth.
There are three macros analogous to the above (obtained by capitalizing the first letter) which cause all material after the occurrence of the macro to be included (rather than specifically defining material). The macros in the above list also have starred counterparts (i.e., \fromSlide*, etc.). These versions are useful when the successive overlays need to replace previous overlays. Below, I've provided an example of a slide that consists of several overlays and uses the itemstep environment to allow an itemized list to progress through successive overlays. Alongside is an animation of how the PDF version of the slide would look:
\overlays{5}{ \begin{slide}{The Effects of Power} \begin{tabular}{rc} \begin{minipage}{4cm} \onlySlide*{1}{\epsfig{file=stage1.eps}} \onlySlide*{2}{\epsfig{file=./stage2.eps}} \onlySlide*{3}{\epsfig{file=./stage3.eps}} \onlySlide*{4}{\epsfig{file=./stage4.eps}} \onlySlide*{5}{\epsfig{file=./stage5.eps}} \end{minipage} & \begin{minipage}{6cm} \begin{itemstep} \item Alignment \item Deformation \item Coulomb explosion \item X-ray emission \item Nuclear reaction \end{itemstep} \end{minipage} \end{tabular} \end{slide}}
An important point to note about the overlay commands is that they are only valid when the Prosper package is used with the pdf option. However, the package does provide a set of macros:
which allow you to include different material depending on whether the LaTeX document is compiled in PS or PDF mode. An example of the use of these macros would be:
\overlays{3}{ \begin{slide}{An Example Slide} \onlySlide*{1}{\epsfig=./pic1.eps} \onlySlide*{2}{\epsfig=./pic2.eps} \onlySlide*{3}{\epsfig=./pic3.eps} \onlyInPS{\epsfig=./epspic.eps} \end{slide}}
If the snippet were converted to a PDF, we would get a slide which would successively display pic1.eps, pic2.eps, and pic3.eps. If it were compiled to PS format, the slide would only contain the image epspic.eps.
The Prosper package comes with several style files. Essentially, these provide predefined background colors and patterns, title fonts, bullet styles, etc. You can easily change the look of your presentation by including a different style file. Which style to use is specified in the \documentclass. Below, you can see slides generated using the different slide styles.
Default
Alienglow
Autumn
Azure
Blends
Contemporain
Dark Blue
Frames
Lignes Bleues
Nuance trois
It should be noted that all the styles do not provide the same display area for the actual slide material. You can see this in some of the slide examples above. If you decide to change the slide style of your presentation, you might need to tweak things such as spacing (\hspace, \vspace, etc.) or line lengths, etc. Furthermore, if a given style does not really suit your taste, it is possible to make modifications such as font type, colors, etc. using the Prosper macros, rather than digging into the source of the style in question.
Assuming you're comfortable with the pstricks package, designing a new slide is made easier by a number of macros defined by Prosper. You have access to a number of boolean macros which allow you to include features depending on the current environment (PDF or PS, color or black & white, etc.). The main macro that Prosper provides to design a new style is the \NewSlideStyle command. After designing the style, you need to tell Prosper the details, such as how much display area you are providing, where it should be located, etc., using this macro.
At this point, you should be able to write your presentation. The last step is to convert the LaTeX source to a PDF file. The steps involved are pretty simple:
latex file.tex
dvips -Ppdf -G0 file.dvi -o file.ps
ps2pdf -dPDFsettings=/prepress file.ps file.pdf
Two points to note:
The -G0 parameter passed to dvips is used to get around a bug in GhostScript which converts the "f" character to a pound sign in the final PDF.
The -dPDFsettings parameter for ps2pdf is used to prevent downsampling of EPS images when they are converted to PDF. Without this switch, EPS graphics in the final PDF look very fuzzy, especially when viewed with a projector.
Since Prosper includes the hyperref package by default, you can easily set links and targets within your presentation with the \hyperlink and \hypertarget commands to enable easy navigation.
PowerPoint allows you to embed animations within a presentation. This is also possible when using Prosper, since it uses the hyperref package. To embed an MPEG movie, you can include the following code snippet:
Two points to note:
o Viewing the movie depends on Acrobat Reader being able to run the viewing program. This can be set by making sure you have an entry in your .mailcap file for the filetype you want to play.
o The resultant movie plays in its own window; it is not possible to actually "embed" the movie in the presentation itself (at least under Linux).
Using this technique, you could run any type of file (assuming you have a program to handle it) or even executables like shell scripts, etc. * You may want to convert your PDF presentation to an HTML slideshow. This is possible using the program pdf2htmlpres.py. It can use the convert program from the ImageMagick suite or GhostScript directly to convert the PDF slides to a series of JPGs (or GIFs or PNGs) and generate HTML pages to form a slideshow.
I hope I've been able to convey some of the features and benefits that the Prosper package provides. Granted, for a person who doesn't use LaTeX, a GUI alternative would be easier. But for all the TeXnicians out there, the Prosper package allows you to generate well-designed and stylish slides efficiently, at the same time allowing the knowledgeable user to extend the package using predefined macros and pure TeX.
The Prosper community has a very useful mailing list which can be accessed at the Prosper Web site. The Prosper tarball contains comprehensive documentation explaining the available commands and macros provided by the package. It also includes a document displaying the capabilities of the package. The LaTeX sources of these documents are the best way to learn how to use the various features of Prosper.
I, for one, have finally been able to get rid of MS PowerPoint and use Prosper to develop all my presentations. Using this package, I'm able to create presentations which rival those produced by more popular GUI packages and which can be viewed with the very common Acrobat Reader (and converted to clean HTML when required!). You can take a look at presentations I've made using prosper on my Web site
For all LaTeX users, I strongly recommend taking a look at Prosper.
Newsgroups: comp.text.tex
> I'm just posting to promote the pdftex program in Linux since I feel that it > is a superior tool! I just discovered recently that the program was widely > available and didn't realize it was included in my Linux distribution. I > compiled my old TeX files easily and I love the way they looked and I love > the fact that it is more widely distributable in this format. It's internet > browser friendly and the file size is very small! I may be late in > discovering this, but cheers to those who developed this and made it widely > available.
You 're absolutely right!
But have a look at ppower4 and create powerpoint-like effects with PDFLaTeX. This is the ultimate tool.
C http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/ and download the english demo. This is the best tool, I've seen so far for creating slides and presentations.
Newsgroups: comp.text.tex
Preparing a presentation usually means creating some sort of slides. The more data beamer equipment gets common in working environments, the more comes to mind creating such presentation material as a screen version, which can be viewed using a data beamer or at least a computer screen. As a side effect such presentations can usually easily be presented on a website.
This document tries to show some possible solutions for creating screen based presentations. Most of the listed solutions are (La)TeX-based because I personally prefer (La)TeX - and derived tools - over other documentation systems. So called Office Solutions and commercial tools are not listed.
This list for sure is far from being complete. If you know of any other solution please let me know so that I can include it in this document.
Contributions are very welcome.
Homepage: http://www.miwie.org/presentations/[]
Michael
Great resource! But you should include PROSPER (http://prosper.sourceforge.net/)!
Joh
Use TeXPower for presentattion; and if to produce handouts, use ifmslide.
The TeXPower bundle contains style and class files for creating dynamic online presentations with LaTeX. The heart of the bundle is the package texpower.sty which implements some commands for presentation effects. This includes page transitions, color highlighting and displaying pages incrementally.
On-line presentations with LaTeX, hyper+left, foil insertion, printout on foil in the same Design! Document is in the pdf file.
ifmslide provides both: getting a presentation with PDFLaTeX and printouts with LaTeX and - as a side effect - simple production of your slides using your favourite DVI-viewer. You don't need PPower4 to get all these nice effects with page-transitions and stepwise building of the pages. All you need is TeXPower and hyperref.sty for the links and buttons etc. ifmslide makes use of the special features of the classes seminar and powersem (part of TeXPower).
My first attempt is to use TeXPower for presentattion; and for producing handouts, use ifmslide. Actually, TeXPower can prepared for printout too, and The ifmslide is just too primitive.
TeXPower is really feature rich. The fulldemo.pdf shows it fully. The reason I like it is its pdf only solution. One drawback, though, the TeXPower is a dead project. It is "a pre-alpha version", with the readme file last changed on Jun 23, 2000, texpower.sty dated 29-Nov-2000. No fully document. Good part is that examples are plenty.
documented on: 2000