
% opic-abs.tex

\documentclass[10pt,a4paper]{article}
%\documentclass[10pt,letterpaper]{article}
\usepackage[abs]{overpic}

\setlength\parindent{0pt}\setlength\unitlength{1mm}

\newlength\Li \newlength\Lii 
\setlength\Li{55mm} \setlength\Lii{80mm} 

\setlength\topmargin{-1in}
\setlength\headheight{0pt}
\setlength\headsep\headheight
\setlength\textheight\paperheight
\addtolength\textheight{-2\footskip}
\setlength\textwidth{150mm}
\setlength\oddsidemargin\paperwidth
\addtolength\oddsidemargin{-\textwidth}
\setlength\oddsidemargin{.5\oddsidemargin}
\addtolength\oddsidemargin{-1in}
\setlength\evensidemargin\oddsidemargin

\newcommand\HFILL{\hspace*{\fill}}
\newcommand\VFILL{\vspace*{\fill}}

\pagestyle{empty}

\begin{document}

\VFILL

\section*{\centering The \texttt{overpic} environment with
  absolute positioning\footnote{Version 0.5, Rolf Niepraschk, 
  11/97, file: \texttt{overpic.sty}}}

\HFILL
\begin{minipage}{\Li}
  \includegraphics[scale=.25]{golfer.ps}
\end{minipage}\qquad
\begin{minipage}{\Lii}
  Insert before:
  \begin{verbatim}
\usepackage[abs]{overpic}
...
\setlength\unitlength{1mm}
and/or local option unit=...
  \end{verbatim}    
  The  original graphic from \textsc{GhostScript}:
  \begin{verbatim}
\includegraphics[scale=.25]{golfer.ps}
  \end{verbatim}  
\end{minipage}
\HFILL

\VFILL

\HFILL
\begin{minipage}{\Li}
  \begin{overpic}[scale=.25,grid,tics=5]{golfer.ps}
  \end{overpic}  
\end{minipage}\qquad
\begin{minipage}{\Lii}
  A grid for orientation:%  
  \begin{verbatim}
\begin{overpic}[scale=.25,grid,tics=5]%
      {golfer.ps}
\end{overpic}
  \end{verbatim}  
  (default for \texttt{tics} is 10)  
\end{minipage}
\HFILL

\VFILL

\HFILL
\begin{minipage}{\Li}
  \begin{overpic}[scale=.25,unit=1mm]{golfer.ps}
    \put(3,28){\huge \LaTeX}
    \put(34,5){\includegraphics[scale=.07]%
        {golfer.ps}}
  \end{overpic}  
\end{minipage}\qquad
\begin{minipage}{\Lii}
  Positioning the \LaTeX\ output with \verb#\put# commands:  
  \begin{verbatim}
\begin{overpic}[scale=.25,unit=1mm]%
      {golfer.ps}
  \put(3,28){\huge \LaTeX}
  \put(34,5){\includegraphics[scale=.07]%
      {golfer.ps}}
\end{overpic}
  \end{verbatim}
  (default for \texttt{unit} is \verb#\unitlength#)  
\end{minipage}
\HFILL

\VFILL

\end{document}
