Graphics, Figures & TablesImporting Figure problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
msh855
Posts: 12
Joined: Thu Mar 01, 2012 1:31 pm

Importing Figure problem

Post by msh855 »

Hi all,

I want to import a figure in my document, but once i compile my file the figure does not show up.

Here is my preamble

Code: Select all

\documentclass[a4paper]{article}
\usepackage[hmargin=2.5cm,vmargin=1cm]{geometry}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage[dvips]{graphicx}
\usepackage{xcolor}
\usepackage{setspace}
\setstretch{2} 
\usepackage{booktabs} 
\usepackage{float}
\usepackage[round]{natbib}
\usepackage[hidelinks,colorlinks,urlcolor=blue, linkcolor=blue, citecolor=blue]{hyperref}
and here which commands I use

Code: Select all

\begin{figure}[h!]
\centering
\includegraphics[width=0.5\textwidth]{ratio1.eps}
\caption{here the fig}
\end{figure}
I can only see the caption but not my figure.

Many thanks
Last edited by localghost on Tue Aug 07, 2012 11:03 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Importing Figure problem

Post by localghost »

For an adequate problem description and in order to avoid guesses and random shots please prepare a proper minimal example that contains all necessary but only relevant information in form of code. This is much more helpful than a loosely code snippet. And please add the corresponding log file to allow a diagnose of the possible cause.


Thorsten
Post Reply