Root File

SliTeX is a separate program that you run the same way you run LaTeX, giving it the first name of an input file whose file type is .tex. This file is called the root file. For example, myfile.tex. This file starts out with the customary \documentstyle command. The standard document style for making slides is slides so your file is likely to begin

\documentstyle{slides}

The commands are followed by any declarations that you may want to make, followed in turn by the \begin{document} command.

Any text that comes after the \begin{document} is treated as "front matter" and not as slide material. You can use it for notes to identify the slides.

For SliTeX to produce color slides, you have to tell it what colors you will be using. This is done with the \colors command. The command

\colors{red,black,blue}

states that you will be using three colors, which you have named red, black, and blue. SliTeX knows nothing about real colors, so you could just as well have called your three colors puce, mauve, and fred. If you're making only black-and-white slides, then you don't need a \colors command.

The text of your slides is contained not in myfile.tex, but in a separate slide file. This file can have any name that ends in .tex; for example, myslid.tex. What goes into the file myslid.tex is explained under Slide_File for this topic. Black-and-white slides are generated by placing the following command in the root file:

\blackandwhite{myslid}

Color slides are generated by the command

\colorslides{myslid}

The \colorslides command generates a set of color layer pages for each color specified by the \colors command. For example, the command

\colors{red,black,blue}

causes a subsequent \colorslides command to generate first all the red color-layer pages, then the black ones, and then the blue ones.

As usual, your root file ends with an \end{document} command.

Nach oben scrollen