Using Graphics
There are several ways to incorporate graphical/plotted output from other applications into LaTeX. pdflatex can import JPEG images or PDF files. JPEG is appropriate for bitmapped images and pictures, but care must be taken not to cause pixellation (fuzziness) which detracts from the quality of the document.
- To incorporate graphics files in LaTeX, you must have the graphicx package (which comes with MiKTeX). Inclusion of graphics in LaTeX is quite easy: simply add to the preamble at the start of your LaTeX file the following:
\usepackage{graphicx}
Then wherever you wish to include a graphics file (say, 3dplot.pdf) in your LaTeX document, you simply use:
\includegraphics[width=100mm]{3dplot.pdf}
The width, in this case, is set to 100mm. The height is scaled accordingly to keep the correct aspect ratio.
- If you have any .eps files, you have to convert them into PDF format for pdflatex. You do this using the command-line utility epstopdf, as follows:
eps2pdf 3dplot
This will take 3dplot.eps and convert it to 3dplot.pdf.
- Some examples for download are given below. For more advanced operations, see the tutorial page.
- The example LaTeX file grapheg.tex
- The MATLAB graph 3dplot.pdf
- The A4 page layout a4page.sty
- The Pictures page contains some more detailed information on format conversion, fonts, and image quality.