Graphics, Figures & TablesInsert JPEG Images

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
peaches2165
Posts: 25
Joined: Wed Oct 22, 2008 5:03 pm

Insert JPEG Images

Post by peaches2165 »

Hi,

Could someone please give me step by step instructions on how to input a jpeg file into a \documentclass[12pt]{article}?

Thanks,

Peaches :mrgreen:

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Insert JPEG Images

Post by localghost »

Load the graphicx package in the preamble of your document and compile with PDFLaTeX. For details refer to its manual.


Thorsten
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Insert JPEG Images

Post by 21did21 »

me, i use this :

Code: Select all

\begin{figure}  
\begin{center} 
\includegraphics[width=\linewidth]{mypicture.jpg}
\end{center}
\caption{my comments.}
\label{referenceForText} 
\end{figure}
good luck ;)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Insert JPEG Images

Post by Stefan Kottwitz »

I would improve this code part a bit:

Code: Select all

\begin{figure}[ht]% more options to ease placement - maximum: !htbp
  \centering% since \begin{center} ... \end{center} causes additional vertical space
  \includegraphics[width=\linewidth]{mypicture}% .jpg is not necessary
  \caption{my comments}
  \label{referenceForText}
\end{figure}
Perhaps it helps too.

Stefan
LaTeX.org admin
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Re: Insert JPEG Images

Post by 21did21 »

yes nice ;)
Post Reply