summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/overpic/opic-rel.tex
blob: e820119139765fda95df64e71b985760ea8e6074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

% opic-rel.tex 

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

\setlength\parindent{0pt}

\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 
  relative 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[percent]{overpic} 
(default) or
\usepackage[permil]{overpic} 
  \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=10]{golfer.ps}
  \end{overpic}  
\end{minipage}\qquad
\begin{minipage}{\Lii}
  A grid for orientation:%  
  \begin{verbatim}
\begin{overpic}[scale=.25,grid,tics=10]%
      {golfer.ps}
\end{overpic}
  \end{verbatim} 
  (default for \texttt{tics} is 10 for `\texttt{percent}' and 100 for 
   `\texttt{permil}')   
\end{minipage}
\HFILL

\VFILL

\HFILL
\begin{minipage}{\Li}
  \begin{overpic}[scale=.25]{golfer.ps}
    \put(5,45){\huge \LaTeX}
    \put(55,10){\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]{golfer.ps}
  \put(5,45){\huge \LaTeX}
  \put(55,10){\includegraphics[scale=.07]%
      {golfer.ps}}
\end{overpic}
  \end{verbatim}  
  (\verb#\unitlength# is internally set to 1/100 or 1/1000 of the length of
   the picture's longer side)
\end{minipage}
\HFILL

\VFILL

\end{document}