[pdftex] pdftricks problem in \parbox?

Troy Goodson Troy.D.Goodson at jpl.nasa.gov
Fri May 2 17:50:07 CEST 2003


On Friday, May 2, 2003, at 10:26  AM, Troy Goodson wrote:

> I tried to wrap a \begin{pdfpic} ... \end{pdfpic} in a \parbox (or 
> even an \fbox}, but I get an error (see below).  Also, the 
> example-fig1.tex file is empty.
>
> How do I get around this?

I thought that I'd have the same problem with a minipage as I'm having 
with a parbox, but apparently not.

An offline message from James Haefner inspired me to try the minipage, 
and it worked!

The following code gives me my text on the left and graphic on the 
right, using pdftricks.

-------------------
% text on the left, graphic on the right
\documentclass[landscape]{slides}
\usepackage{pdftricks}
\begin{psinputs}
   \usepackage{pstricks}	
   \usepackage{pst-node}
\end{psinputs}
\begin{document}

\begin{slide}

\parbox{.4\linewidth}{
\begin{itemize}
  \item text1
  \item text2
\end{itemize}
}
\hfill
\vrule % do not put a carriage return here!
\begin{minipage}{.4\linewidth}
\begin{pdfpic}
\begin{pspicture}(-.2,-.5)(5,8.5)
    \rput(1,0){\rnode{EAR}{Earth}}
    \rput(1,4){ \rnode{SC}{S/C} }
    \ncline{SC}{EAR}
\end{pspicture}
\end{pdfpic}
\end{minipage}

\end{slide}
\end{document}




More information about the pdftex mailing list