# Examples using PostScript specials

- when using graphicx.sty in the LaTeX2e graphics package
\usepackage{graphicx, color}
\includegraphics*[width=8cm, height=12cm, keepaspectratio]{golfer.ps}
\includegraphics[bb=0 0 2in 2in]{figure.bmp}
\includegraphics[width=5cm,height=4cm]{images/figure.bmp.gz}
\rotatebox[origine=c]{180}{...Like This...}
{color{red}This is red.}
In this case, the three added files of dviout.def, graphics.cfg and color.cfg, or graphics.cfg and color.cfg containing only the line shown below are placed in the same directory as the graphics package.
\ExecuteOption{dvips}
If texmf\tex\latex\config exists, graphics.cfg and color.cfg should be put there.
- when using graphics.sty in place of graphicx.sty, then
\includegraphics[8cm,6cm]{figer.bmp}
In this case options such as keepaspectratio cannot be specified.
- when using Susie plug-in to handle graphic files in other formats or handling Windows Metafiles, then, for example, {figer.bmp} in the above is replaced by {figer.jpg}, {figer.png} or {figure.wmf}. In this case, the attached dviout.def should be used.
- when using LaTeX2.09 with epsf.sty
\documentstyle[epsf]{article}
\begin{center}
\leavevmode
\epsfsize=87mm
\epsfbox{golfer.ps}
\end{center}
- examples of using special commands
\special{epsfile=golfer.ps hsize=5.2cm vsize=7.5cm}
\vspace{9cm}
\special{pbmfle=tiger vsize=5cm}
\vspace{6cm}
\special{epsfile=golfer.ps scale=0.5}