Graphics, Figures & Tables ⇒ psfig problem
psfig problem
The packages I am using are as followed:
\usepackage{epsfig}
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage[dvips]{color}
the line that I have having problem with is:
\begin{center}
\psfig{file=alee_effect.ode.ps ,angle=270,width=8cm}
\end{center}
I have the file alee_effect.ode.ps in the same folder as the tex file. When I run (outputting it in pdf), the area where the graph should be is blank (big gap). It displays no error other than badboxes. But when I run the output in DVI instead of PDF, the graphs shows up in DVI. Can anyone help me please? Thank you!
Much appreciated,
Leon
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
psfig problem
Since you now try to compile with PDFLaTeX, the dvips option for the color package has nothing to do in the code. Delete it without substitution. Note the special hints about shell escape in the epstopdf manual and how to activate it. If necessary, refer to the manual of your LaTeX distribution.
Just a hint beside. The epsfig package is obsolete [1]. Use only graphicx and it's command for graphics inclusion.
[1] View topic: Obsolete packages and document classes — Avoid usage!
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10