Graphics Programs Reference
In-Depth Information
\includegraphics[width = \textwidth-4cm]{file} (width is 4 cm
less than the width of the text (needs the calc package))
Other optional arguments to the \includegraphics command allow
you to specify the height of the graphic, or the total height (height plus
depth), to scale relative to the graphic's natural size, to rotate, clip,
trim, and shift the graphic, and to get many other effects. For example,
in this topic Iput the output and the command(s) that produced it side
by side using two minipage environments:
\begin{flushleft}
\begin{minipage}{30mm}
\begin{verbatim}
plt(1:10)
\end{verbatim}
\end{minipage}
\begin{minipage}{0.2\textwidth}
%\includegraphics[width = \textwidth]{onetoten}
\end{minipage}
\end{flushleft}
to produce:
plt(1:10)
Inside a minipage \textwidth is the width of the minipage which, in
this case, is a fifth of the document's \textwidth .
L A T E X: Version 2.09
To include a matlab figure in a L A T E X2.09 document you can use the
epsf package. Print the figure using the -deps option in matlab's print
command. This will create an Encapsulated PostScript file in the current
directory with the name, say, graphic.eps . Put \usepackage{epsf}
after your \documentclass declaration at the top of your input file.
Figures can then be included using commands such as:
\epsfxsize = 0.3\textwidth]{graphic.eps}
Many L A T E X users like to put their graphics in floating figure environ-
ments, with captions and a centred graphic. This is how to do it:
\begin{figure}
\begin{center}
\leavevmode
\epsfxsize = 0.5\textwidth\epsffile{graphic.eps}
Search WWH ::




Custom Search