%
% Examples to test SpecialHost PostScript support.
% by Giuseppe Ghibò <ghibo@galileo.polito.it>
%
\documentstyle[epsf,12pt]{article}

\textwidth 472pt
\textheight 648pt
\topskip 10pt
\oddsidemargin -9.5pt
\evensidemargin \oddsidemargin
\topmargin -6.05pt
\headheight 12pt
\headsep 24pt
\footheight 12pt
\footskip 24pt
\columnsep 12pt
\columnwidth 230pt

\begin{document}

\section{Some samples}
\noindent Here is an example of PostScript figure inside text. The figure
is `{\epsfysize=9pt\epsffile{coil.eps}}'; another figure is your
`golfer.eps'.
\begin{verbatim}
\begin{figure}[h]
\centering
\epsfysize = 10cm
\fboxsep=0pt
\fbox{\epsffile{golfer.eps}}
\end{figure}
\end{verbatim}

\begin{figure}[h]
\centering
\epsfysize = 10cm
\fboxsep=0pt
\fbox{\epsffile{golfer.eps}}
\end{figure}


\newpage
\noindent We may also specify a bounding box to isolate a part of a picture
(acting as a viewport). For instance:
\begin{verbatim}
\begin{figure}[h]
\centering
\epsfysize = 10cm
\epsfclipon
\fboxsep=0pt
\fbox{\epsffile[250 530 350 630]{golfer.eps}}
\end{figure}
\end{verbatim}

\begin{figure}[h]
\centering
\epsfysize = 10cm
\epsfclipon
\fboxsep=0pt
\fbox{\epsffile[250 530 350 630]{golfer.eps}}
\end{figure}

\newpage
\noindent We may have rotated pictures. For instance:
\begin{verbatim}
\begin{figure}[h]
\centering
\unitlength=1bp
\fboxsep=0pt
\fbox{\begin{picture}(271.02,271.02)(0,0)
\put(0,0){\special{psfile=golfer.eps llx=250 lly=530 urx=350 ury=630 %
rwi=1984 hoffset=99.2 voffset=271.02 angle=240 clip}}
\end{picture}}
\end{figure}
\end{verbatim}

\begin{figure}[h]
\centering
\unitlength=1bp
\fboxsep=0pt
\fbox{\begin{picture}(271.02,271.02)(0,0)
\put(0,0){\special{psfile=golfer.eps llx=250 lly=530 urx=350 ury=630 %
rwi=1984 hoffset=99.2 voffset=271.02 angle=240 clip}}
\end{picture}}
\end{figure}

\newpage
\noindent Here is an example of four IFF picture having the same
name, i.e. ``{\tt AmigaWorld.pic}''; note that every picture may have its
own dumped file.

\begin{figure}[h]
\centering
\unitlength=1mm
\fboxsep=0pt
\tabcolsep=0.25cm
\begin{tabular}{cc}
%
\fbox{\begin{picture}(70,43.75)\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=ordered}}
\end{picture}}
%
&\fbox{\begin{picture}(70,43.75)\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=ordered %
invert=on}}
\end{picture}}\\[.5cm]
%
\fbox{\begin{picture}(70,43.75)\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=fs}}
\end{picture}}
%
&\fbox{\begin{picture}(70,43.75)\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=hexagon}}
\end{picture}}
\end{tabular}
\end{figure}

\noindent The example above was produced with

\begin{verbatim}
\begin{figure}[h]
\centering
\unitlength=1mm
\fboxsep=0pt
\tabcolsep=0.25cm
\begin{tabular}{cc}
%
\fbox{\begin{picture}(70,43.75)
\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=ordered}}
\end{picture}}
%
&\fbox{\begin{picture}(70,43.75)
\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=ordered %
invert=on}}
\end{picture}}\\[.5cm]
%
\fbox{\begin{picture}(70,43.75)
\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=fs}}
\end{picture}}
%
&\fbox{\begin{picture}(70,43.75)
\put(0,0)
{\special{ifffile=AmigaWorld.pic hsize=7cm vsize=4.375cm mode=hexagon}}
\end{picture}}
\end{tabular}
\end{figure}
\end{verbatim}

\newpage
Here is the PostScript picture of page 1, breaked into six small
pictures.

\begin{figure}[h]
\centering
\def\sz{\epsfclipon\epsfxsize=3.5cm}
\fboxsep=0pt
\tabcolsep=0.25cm
%
\begin{tabular}{cc}
\fbox{\sz\epsffile[7 495 292 726]{golfer.eps}}
&\fbox{\sz\epsffile[292 495 577 726]{golfer.eps}}\\[0.5cm]
%
\fbox{\sz\epsffile[7 263 292 495]{golfer.eps}}
&\fbox{\sz\epsffile[292 263 577 495]{golfer.eps}}\\[0.5cm]
%
\fbox{\sz\epsffile[7 31 292 263]{golfer.eps}}
&\fbox{\sz\epsffile[292 31 577 263]{golfer.eps}}
\end{tabular}
\end{figure}

\noindent The pictures above are obtained with:
\begin{verbatim}
\begin{figure}[h]
\centering
\def\sz{\epsfclipon\epsfxsize=3.5cm}
\fboxsep=0pt
\tabcolsep=0.25cm
%
\begin{tabular}{cc}
\fbox{\sz\epsffile[7 495 292 726]{golfer.eps}}
&\fbox{\sz\epsffile[292 495 577 726]{golfer.eps}}\\[0.5cm]
%
\fbox{\sz\epsffile[7 263 292 495]{golfer.eps}}
&\fbox{\sz\epsffile[292 263 577 495]{golfer.eps}}\\[0.5cm]
%
\fbox{\sz\epsffile[7 31 292 263]{golfer.eps}}
&\fbox{\sz\epsffile[292 31 577 263]{golfer.eps}}
\end{tabular}
\end{figure}
\end{verbatim}

\newpage
Now complete this puzzle...

\begin{figure}[h]
\centering
\def\sz{\epsfclipon\epsfxsize=3.5cm}
\fboxsep=0pt
\tabcolsep=0.25cm
%
\begin{tabular}{cc}
\fbox{\sz\epsffile[292 263 577 495]{golfer.eps}}
&\fbox{\sz\epsffile[7 31 292 263]{golfer.eps}}\\[0.5cm]
%
\fbox{\sz\epsffile[292 31 577 263]{golfer.eps}}
&\fbox{\sz\epsffile[292 495 577 726]{golfer.eps}}\\[0.5cm]
%
\fbox{\sz\epsffile[7 263 292 495]{golfer.eps}}
&\fbox{\sz\epsffile[7 495 292 726]{golfer.eps}}
\end{tabular}
\end{figure}

\newpage
\noindent We may have also picture with unknown size or wrong Bounding Box
(a size of 8$\times$11" will be used instead). For example:
\begin{verbatim}
\begin{figure}[h]
\centering
\fboxsep=0pt
\fbox{%
\setlength{\unitlength}{0.1bp}
\begin{picture}(4320,2592)(0,0)
\footnotesize
\put(937,1363){\makebox(0,0){$R_4\,{p_4t}$}}
\put(2766,390){\makebox(0,0){$R_1\,{p_1t}$}}
 .
 .
 .
\put(0,0){\special{psfile=graph.eps}}
\end{picture}}
\end{figure}
\end{verbatim}

\begin{figure}[h]
\centering
\fboxsep=0pt
\fbox{%
\setlength{\unitlength}{0.1bp}
\begin{picture}(4320,2592)(0,0)
\footnotesize
\put(937,1363){\makebox(0,0){$R_4\,{p_4t}$}}
\put(2766,390){\makebox(0,0){$R_1\,{p_1t}$}}
\put(2766,1073){\makebox(0,0){$R_2\,{p_2t}$}}
\put(3680,1414){\makebox(0,0)[l]{$R_3\,{p_3t}$}}
\put(3680,1653){\makebox(0,0)[r]{$\theta_2(t)$}}
\put(2766,2029){\makebox(0,0)[r]{$R_5\,{p_5t}$}}
\put(4137,51){\makebox(0,0){$t\,[s]$}}
\put(3223,51){\makebox(0,0){0,15}}
\put(2309,51){\makebox(0,0){0,10}}
\put(1394,51){\makebox(0,0){0,05}}
\put(480,51){\makebox(0,0){0}}
\put(420,2541){\makebox(0,0)[r]{$4$}}
\put(420,2200){\makebox(0,0)[r]{$3$}}
\put(420,1858){\makebox(0,0)[r]{$2$}}
\put(420,1517){\makebox(0,0)[r]{$1$}}
\put(420,1175){\makebox(0,0)[r]{$0$}}
\put(420,834){\makebox(0,0)[r]{$-1$}}
\put(420,492){\makebox(0,0)[r]{$-2$}}
\put(420,151){\makebox(0,0)[r]{$-3$}}
\put(0,0){\special{psfile=graph.eps}}
\end{picture}}
\end{figure}

\end{document}
