I cannot seem to get the images to appear on latex. I get no error messages and, it has no problems compiling. However, the produced (.pdf) which is what I am using, does not have the image. Essentially, everything I am using is in
\documentclass[12pt,a4paper,epsf,portrait,times,epsfig]{article}
\usepackage[dvips]{graphics}
\usepackage{amsmath}
\usepackage{xspace}
\usepackage{fancybox}
\usepackage{hyperref}
\usepackage{amsfonts}
\usepackage{graphicx}
\renewcommand{\baselinestretch}{1.5}
\setlength{\parskip}{0.2cm}
\setlength{\parindent}{0.0cm}
\setlength{\textheight}{8.5in}
\setlength{\textwidth}{16.0cm}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\topmargin}{0in}
\pagenumbering{arabic}
\numberwithin{equation}{subsection}
\begin{document}
\begin{figure}
\centering
\includegraphics{C:/Users/Reza/Desktop/Test/Untitled.jpg}
\label{fig:Untitled}
\end{figure}
\end{document}
I am using Texniccenter, and using LaTeX=>PDF. Help please!
Untitled.jpg
to the folder where you.tex
file is, and use\includegraphics{Untitled.jpg}
. As well notice that LaTeX might be case-sensitive andUntitled.jpg
is different fromuntitled.jpg
..log
file to see if there's a warning or error message.epsf
andepsfig
options in the\documentclass
statement are obsolete. To auto-convert image files in.jpg
format to.pdf
-- the preferred format of thegraphicx
package -- be sure to load theepstopdf
package. By the way, the\label
instruction inside thefigure
environment won't have any desired effects unless you precede it with a\caption
statement. (The "label" is associated by hyperref and other packages with the closest "label-able" item. In the case of your MWE, there is no such item so far. Hence, be sure to provide a\caption
statement before the\label
.lualatex
instead ofpdflatex
solved the issue.