GeneralProblem with DVI while putting figures .eps

General information and discussion about TeXnicCenter
Post Reply
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Problem with DVI while putting figures .eps

Post by feanor22 »

I've tried for the first time to put a figure in latex.
A time series graphic from R.
I saved as .eps and put the packages

\usepackage{psfig}
\usepackage{graphicx}

that was what people used in my google searches.
And then in the middle of the file:

\begin{figure}[h]
\begin{center}
\begin{minipage}[t]{12cm}
{\bf% Grafico em R
}%
\end{minipage}\\%
\begin{minipage}[t]{12cm}\centerline{\psfig{figure=FTSEinv.eps,width=12cm,angle=-90}}\end{minipage}%
\end{center}%
\end{figure}

When I compile it doesn get a error but when I create the dvi he ask me a question and it breaks.

What I'm doing wrong?

Thank you in advance for helping

Renato

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Problem with DVI while putting figures .eps

Post by mas »

I am taking some guesses about your system here.

If you are using a fairly recent version of LaTeX, you do not have to use the package psfig. You can safely remove it.

Since you say, the file compiled without errors, I do not understand your statement that when you create the dvi it breaks with an error message/ query. Can you paste that message so that someone can help you?

Regards,

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: Problem with DVI while putting figures .eps

Post by feanor22 »

It said the render method could not support postscript specials.
And ask me to switch to dvips mode.
But then when I go to the page of the figure the dvi stop working and I have to close it.
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: Problem with DVI while putting figures .eps

Post by feanor22 »

What packages should I use?
Only the graphicsx is ok?
May it be a eps problem?

Thank you for the help

Best Regards

Renato
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Problem with DVI while putting figures .eps

Post by Stefan Kottwitz »

Hi Renato,

your dvi-Viewer doesn't support eps figures well enough. Convert the dvi file to ps (by dvips) and look at the ps file instead.
I wouldn't use psfig or epsfig, graphicx would be enough.
Further I wouldn't use the center environment inside figure, use \centering instead, for reasons have a look at \center vs. \centering.
Btw. \bf is an obsolete font command of LaTeX 2.09, supported by some classes just because of compatibility reasons, better use LaTeX2e font commands instead.

Stefan
LaTeX.org admin
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: Problem with DVI while putting figures .eps

Post by feanor22 »

Thank you for the advices I will check that.
For now i'm using my laptop and there the dvi appears with the figure but tex-pdf doesn t appear the figures...
Maybe changing what u suggested the pdf will come with the figures...
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: Problem with DVI while putting figures .eps

Post by feanor22 »

I did it.
The forum u sent me also helped me with the pdf.
\includegraphics deals both with dvi and pdf output.
Thanks!
The only problem is that I have to convert every eps to pdf and all the graphics go to the last pages...
The way I was doing appeared in the middle of text...
Do you know somewhere I could see examples on how to deal with figures? Perhaps a book?
Google searches are more confusing than are of help in this issue.
Post Reply