(Bug?) Awkward Image problems involving PS/PDF Tricks and Texpower

Olumide <[email protected]> Thu, 29 Dec 2005 18:00:40 +0000
Newsgroups gmane.comp.tex.texpower.user
Message-ID <[email protected]>
Hi -

I'm trying to produce slide pages that involve a mix of text and 
graphics that appear in a stepwise fashion (for which I'm using the 
\stepwise and \step commands in the Texpower bundle . My graphics are 
done with PSTricks).

The problem is that I'm getting the wrong images on subsequent 
pages.Because the problem is hard problem to explain, I'm including a 
bit of code (below) illustrating the problem. The code is supposed to 
produce a 3 page slide with 3 steps on pages 1 and 2. Page 1 contains a 
square, page 2, contains a circle, and page 3 contains a diamond shape. 
However when the slide (PDF) is generated, I get the circle appear on 
all 3 pages (by pages I mean slide pages includeing the steps). I'm not 
really sure if this problem is due to PS/PDF Tricks or the Texpower package.

I suspect Texpower is the culprit, cos the FILENAME-pics.pdf file 
generated by pst-pdf(?) contains 4 copies of the square (page 1), 4 
copies of the circle (page 2), and 1 copy of the diamond (page 3). I'm 
assuming this is the right thing to do.

Alright, enough talk, here's the code (please bear in mind that I'm no 
pro by any measure, and as such I tend to do things in a noob-ish sort 
of way).

Thanks,

- Olumide


PS:
Already posted on comp.text.tex but got no replies



%%%%%%%%%%%%%%%%%%% code %%%%%%%%%%%%%%%%%%%

\documentclass[a4paper, english, landscape]{foils}

  \usepackage{babel}
  \usepackage{pstricks}
  \usepackage{pst-pdf}
  \usepackage[display]{texpower}

  \begin{document}

     \foilhead{Page 1}

     \pause

     \begin{center}
         \stepwise{
             \begin{tabular}{cl}

                 \begin{pspicture}(0,0)(4.1, 6.2)
                     \psframe(1,2.5)(4,6)
                 \end{pspicture}

                 &

                 \raisebox{6cm}{
                     \begin{minipage}[t]{8cm}
                         \begin{itemize}
                             \item This is line number 1
                             \step{ \item This is line number 2 }
                             \step{ \item This is line number 3 }
                         \end{itemize}
                     \end{minipage}
                 }

                 \\

             \end{tabular}
         }
     \end{center}

     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     \foilhead{Page 2}

     \pause
     \begin{center}
         \stepwise{
             \begin{tabular}{cl}

                 \begin{pspicture}(0,0)(4.1, 6.2)
                     \rput(2,3){\pscircle[fillcolor=gray,
fillstyle=solid]{1.0}}
                 \end{pspicture}

                 &

                 \raisebox{6cm}{
                     \begin{minipage}[t]{8cm}
                         \begin{itemize}
                             \item This is line A
                             \step{ \item This is line B }
                             \step{ \item This is line C }
                         \end{itemize}
                     \end{minipage}
                 }

                 \\

             \end{tabular}
         }
     \end{center}

     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     \foilhead{Page 3}

     \pause
     Text

     \begin{center}
         \begin{pspicture}(0,0)(4.1, 6.2)
             \psdiamond(2,3)(1.5,1.5)
         \end{pspicture}
     \end{center}

\end{document}


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click