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
General ⇒ Graphics troubles
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Graphics troubles
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.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. [...]
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}
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Graphics troubles
Thank you. I will check out these links.