28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

348 Chapter 15. Presentation Material<br />

With some tricky playing around with level numbers <strong>and</strong> with the T E X<br />

overlap comm<strong>and</strong>s \rlap <strong>and</strong> \llap, it is possible <strong>to</strong> get text or images<br />

<strong>to</strong> be replaced. The two must be made <strong>to</strong> overlap, but at different level<br />

numbers. For example:<br />

We now \rlap{alter}change this word<br />

We now<br />

\pause\pauselevel{=1 :1}\rlap{alter}\pause<br />

change\pause\pauselevel{=1}<br />

this word<br />

The first line shows the text without the \pause markers, in which ‘alter’<br />

overlaps <strong>to</strong> the right over ‘change’. The next lines show the same text with<br />

levels inserted: ‘alter’ belongs <strong>to</strong> level 1, <strong>and</strong> disappears after 1; ‘change’<br />

belongs <strong>to</strong> 2 (au<strong>to</strong>matic increment), <strong>and</strong> the remaining text is set back <strong>to</strong><br />

level 1.<br />

Highlighting instead of building<br />

An alternative <strong>to</strong> building the page by pieces is <strong>to</strong> highlight the section of<br />

text being discussed. In this mode, the entire page is visible, but printed<br />

in a dull color, like gray, while the chunk of text at the current level is in<br />

a bright color. When switching <strong>to</strong> the next view (level), that text becomes<br />

dull, <strong>and</strong> the next chunk brightens.<br />

To get this <strong>to</strong> work, one must inform PPower4 what the normal <strong>and</strong><br />

highlight colors are <strong>to</strong> be, <strong>and</strong> one must further indicate what text should<br />

actually change. Clearly certain parts of the page are <strong>to</strong> remain as they<br />

always are, at least the head <strong>and</strong> footlines, <strong>and</strong> possible titles. This is<br />

done with<br />

\pausecolors{textclr}{dullclr}{highclr}<br />

where textclr is a dummy color that is not otherwise being used. Only text<br />

indicated in this color will participate in the highlighting. For example<br />

\pausecolors{cyan}{gray}{red} ...<br />

This is the \textcolor{cyan}{text <strong>to</strong> be highlighted}<br />

by the ...<br />

The ‘text <strong>to</strong> be highlighted’ will normally appear in gray, but will turn<br />

red for that view corresponding <strong>to</strong> its level number. And only for that<br />

view! At the next view, it returns <strong>to</strong> gray. Note that the color cyan never<br />

appears; it is only a marker for PPower4. (Well, it does appear in the first<br />

PDF output, before post-processing.)<br />

The highlighting mode is activated with \pausehighlight which<br />

makes all text at all levels visible, but with this color switching feature.<br />

The build mode can be reactivated with \pausebuild. In build mode, the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!