how to insert a figure in latex
February 23rd, 2006 by Lawrence David
to insert a figure in latex, try the following code:
\begin{figure}[h]
\begin{center}
\includegraphics[width=4in]{your_file.jpg}
\end{center}
\caption{your_caption}
\end{figure}
note that you can adjust the size of your figure using the width parameter; height should simultaneously scale proportionately.
i googled how to insert a picture on latex and your website was the first hit. i just wanted to tell you that your website is so creative!!! i loved it! also that you and your girlfriend look so happy and you make a really nice couple.
Also, remember to add
\usepackage{graphicx}
at the top of the file
Dear,
i use the format for figure insertation as:
\begin{center}
% Requires \usepackage{graphicx}
\includegraphics[width=4in]{p1.jpg}\\
\emph{Figure 1: Schematic Diagram of the experimental setup}
\end{center}
there will be an error at :
\includegraphics[width=4in]{p1.jpg}\\
please give me the right format.
thanking you,
Dear,
i use the format for figure insertation as:
\begin{center}
% Requires \usepackage{graphicx}
\includegraphics[width=4in]{p1.jpg}\\
\emph{Figure 1: Schematic Diagram of the experimental setup}
\end{center}
there will be an error at :
\includegraphics[width=4in]{p1.jpg}\\
please give me the right format.
thanking you,
I use the same syntax and get this error:
! Undefined control sequence
1.75 \includegraphics
[width=3in]{FS2004.jpg}\\
?
What is this error? Everyone uses this code and it works. Am I missing something?
use packege \usepackage{graphicx}..
code should be following manner
\usepackage{graphicx}
%should be just below the \documentclass{}
begin{figure}
\includegraphics[width=50pt]{image_name.jpg}
% image should be same directry of save
\caption{23}\label{23}
\end{figure}
i am getting the path of the image along with the output
What about saving the .jpg, how do you save to include the graphics
How do I save the file to be found by latex when it is in the includegraphics
How do I get the path of the image