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
General ⇒ Problem with DVI while putting figures .eps
Re: Problem with DVI while putting figures .eps
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,
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
Re: Problem with DVI while putting figures .eps
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.
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.
Re: Problem with DVI while putting figures .eps
What packages should I use?
Only the graphicsx is ok?
May it be a eps problem?
Thank you for the help
Best Regards
Renato
Only the graphicsx is ok?
May it be a eps problem?
Thank you for the help
Best Regards
Renato
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with DVI while putting figures .eps
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
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
Re: Problem with DVI while putting figures .eps
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...
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...
Re: Problem with DVI while putting figures .eps
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.
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.