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