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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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