GeneralGraphics troubles

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Heather
Posts: 4
Joined: Wed Jul 23, 2008 10:17 pm

Graphics troubles

Post by Heather »

I have been having toubles with my LaTeX practice document, which just happens to be the first document I have ever tried to make.

At the top of the document I have:

\usepackage[dvips]{graphicx}

Then in the document I have:

\begin{figure}[hp]
\begin{center}
\scalebox{.7}{\includegraphics{phasefunction.eps}}
\end{center}
\caption{an included picture}

\end{figure}

The graphic is in the same folder as the .tex document. The caption is in the center of the page, but phasefunction.eps doesn't show up, I just get an area of white.

Any ideas?

Thank you

Heather

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

Graphics troubles

Post by localghost »

Heather wrote:[...] The graphic is in the same folder as the .tex document. The caption is in the center of the page, but phasefunction.eps doesn't show up, I just get an area of white. [...]
You have to process the source with latex, not with pdflatex. There should be some messages of the compiler in the log file which may explain why the picture is not displayed. Finally, you should modify your code a little bit. The preamble is only to make this code compilable.

Code: Select all

Code, edit and compile here:
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage[bindingoffset=0.5in,centering,includeheadfoot,margin=1in]{geometry}
\begin{document}
\begin{figure}[!ht]
\centering
\includegraphics[scale=0.7]{phasefunction}
\caption{an included picture}\label{fig:phasefunction}
\end{figure}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Since you are a very beginner, you should take a look at lshort and l2tabu to avoid the most mistakes done by rookies. Information about the packages used in the code above is available on the servers of the CTAN.


Best regards and welcome to the board
Thorsten¹
Heather
Posts: 4
Joined: Wed Jul 23, 2008 10:17 pm

Re: Graphics troubles

Post by Heather »

Thank you. I will check out these links.
Post Reply