Click [slideshow] to begin presentation.

 

Page Zero

Including Graphics in LaTeX

  • How to include images (JPEG, PNG, TIFF. . .) in LaTeX documents.
  • Where to find out more.




Including Graphics in LaTeX

Graphics in PDFLaTeX

  • Supported formats: PNG, JPEG or TIFF.
  • Also "cropped" image in PDF format (cf. encapsulated Postscript).

\documentclass[]{article}
\usepackage{graphicx}
\begin{document}             

\section{A picture}        

Here is a picture:  natural size, fixed height, stretched:

\includegraphics{opensource-jitb.jpg}

\includegraphics[height=3cm]{opensource-jitb.jpg}

\includegraphics[height=2cm,width=6cm]{opensource-jitb.jpg}

\end{document}               




Including Graphics in LaTeX

DVI and Postscript

  • Don't do this unless you really have to!




  • usually include encapsulated postscript file (with bounding box);
  • use package graphicx;
  • (pre)view with a postscript viewer, not a dvi viewer;




Including Graphics in LaTeX

Resources




Including Graphics in LaTeX

Hands On

  1. Download graphics_include_pdf.tex and opensource-jitb.jpg — choose save file in each case.
  2. Compile the LaTeX source file using Kile or the command-line.
  3. View the resulting PDF by using evince.