General ⇒ Graphics troubles
Graphics troubles
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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
\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¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10