General ⇒ Importing .jpg graphics
Importing .jpg graphics
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Importing .jpg graphics
welcome to the LaTeX Community board!
Put the jpg graphic file into the same directory like your main document. (other path is possible too, but then you hav to specify that)
Use the graphicx package and the command \includegraphics.
Here is one short but complete example for including name.jpg:
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{name}
\end{document}
Let's extend that example for a centered graphic with description etc.::
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\listoffigures
\section{First Section}
\begin{figure}[ht]
\centering
\includegraphics[width=4cm]{name}
\caption{Description of the picture}
\end{figure}
\end{document}