|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help |
\reflectbox{Reflect} produces
and \resizebox{3cm}{0.2cm}{Stretched}
produces
.
To scale imported graphics, use some optional arguments
\includegraphics[width=5cm,height=10cm]{yourfile.ps}
would rescale the postscript so that it was 5cm wide and 10cm high.
To make the picture 5cm wide and scale the height in proportion use
\includegraphics[width=5cm]{yourfile.ps}
To rotate anticlockwise by the specified number of degrees, use
\includegraphics[angle=150]{yourfile.ps}
These options can be combined - note that order matters. The following examples demonstrate how to combine these features and how to use the subfig package to have more than one graphic in a figure.
\centering
\begin{figure}[hbtp]
\includegraphics[height=40mm]{/export/ghostfonts/tiger.eps}
\includegraphics[angle=120, height=20mm]{/export/ghostfonts/tiger.eps}
\caption{Tigers}
\end{figure}
% remember to do \usepackage{subfig} at the top of the document!
\begin{figure}[hbtp]
\centering
\subfloat[Small]% \quad on the next line adds spacing
{\includegraphics[height=30mm]{/export/ghostfonts/crest.eps}}\quad
\subfloat[Medium]
{\includegraphics[width=40mm]{CUni3.eps}}\quad
\subfloat[Large]
{\includegraphics[height=50mm]{/export/ghostfonts/crest.eps}}
\caption{3 crests}
\end{figure}
To clip the postscript image use the viewpoint argument. The following fragment would display only part of the image. The viewport coordinates are in the same units as the bounding box.
\begin{figure}[htbp]
\includegraphics[viewport=200 400 400 600,width=5cm,clip]%
{CUniv3.eps}
\end{figure}
% Use the floatflt package
\begin{floatingfigure}[l]{4cm}
\includegraphics[width=2cm]{/export/ghostfonts/crest.eps}
\caption{Using floatingfigure}
\end{floatingfigure}
Using the fancybox package gives you access to
\shadowbox, \ovalbox, \Ovalbox and
\doublebox commands, which can be used with text or
with graphics. For example, \shadowbox{shadow package} produces
shadow package and
\ovalbox{\includegraphics[height=10mm]{CUni3.eps}}
produces
| | computing help | |