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!
Best Answer
Your file contains incompatibilities.
You use the packages
graphics
andgraphix
. Only one is needed. In addition, you specify thedvips
driver forgraphics
. This is not the correct driver if you are using pdflatex (which is what I think you are using).In addition, you are better off not using complete paths, but rather relative paths. This is what tohecz was suggesting with the
\includegraphics{<filename>}
and placing your picture in the same folder as your.tex
file.As an example, the following file (by the way, this is what tohecz meant by minimal example) works:
If you really want to use the
dvips
and the other options, then your images must be in.eps
format. This means you must convert your.jpg
image to.eps
. In addition, you will have to compile with something of the formlatex -> dvi -> pdf
.