Re: Items of lists associated to different graphics appearing successively at the same place

Hans Fredrik Nordhaug <[email protected]> Thu, 29 Apr 2004 09:15:21 +0200 (CEST)
Newsgroups gmane.comp.tex.texpower.user
Message-ID <[email protected]>
On Wed, 28 Apr 2004, Kockaert Pascal wrote:

> Dear TeXpower users,
>
> I would like to design a presentation in which slides are divided into two
> parts (left and right, for example). In the first part, there would be a list
> that appears step by step using the (list)stepwise environment and the color
> changing mechanism. In the second part, I would like to have various graphics
> related with the items of the list. Each graphic should appear only when the
> related item is highligted.
>
> Is there an easy way to design such a presentation? Does anybody have some
> examples to share?

Yes, it's pretty easy. Just split the page in two using minipages and then
only show the graphics once for each step. (The \raisebox is only used to
get better vertical alignment and is not related to TeXPower.)

An example:

---- Start example
\documentclass[a4paper,12pt]{article}
\usepackage{graphicx}
\usepackage[display]{texpower}

\begin{document}
Some text ...\\[\parskip]

\pause

\liststepwise{
% Left side with an itemize list
\begin{minipage}[t]{0.3\textwidth}
\begin{itemize}
\item 1
\step{\item 2}
\step{\item 3}
\end{itemize}
\end{minipage}
% Right side with graphics
\begin{minipage}[t]{0.7\textwidth}
\step[\value{step}=0][\boolean{firstactivation}]{\raisebox{-\height+\baselineskip}[0pt]{\includegraphics[width=0.6\textwidth]{figs2}}}
\step[\value{step}=1][\boolean{firstactivation}]{\raisebox{-\height+\baselineskip}[0pt]{\includegraphics[width=0.6\textwidth]{figs3}}}
\step[\value{step}=2][\boolean{firstactivation}]{\raisebox{-\height+\baselineskip}[0pt]{\includegraphics[width=0.6\textwidth]{figs4}}}
\end{minipage}
} % End stepwise
\\[\parskip]

Some more text...

\end{document}
---- End example

Download it (with my graphics) from
http://www.mi.uib.no/~hansfn/temp/texpower.pdf (13K)

Regards,
Hans


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click