.eps figure in report class

284 views
Skip to first unread message

Ashish Revar

unread,
Feb 1, 2011, 6:36:49 AM2/1/11
to latexus...@googlegroups.com
Hello there,

I am preparing a report which includes several images with .eps extension.
I am using epsfig package which is not working.

\documentclass[10pt,a4paper]{report}
\usepackage{epsfig}
.....................................................
\begin{figure}[tbp]
\centering
\epsfig{file=epsimage/dyncbr.eps,width=0.9\linewidth,clip=}
\end{figure}
.....................................................

it prompts the error that, unknown graphics extension: .eps 
Whats the problem?

--
Thanks and Regards,
Ashish Revar,
Nirma University,
ashis...@gmail.com
9909298846


Ashish Revar

unread,
Feb 1, 2011, 6:59:28 AM2/1/11
to latexus...@googlegroups.com
Hey Folks,

I got the problem for prompting the error each time I run my .tex file.
I was PDF texifying each time  which is wrong when you are dealing with .eps figures, I guess.

So I first Texify it then used dvi2pdf, and the perfect output is there.
LaTeX is wonderful.

Peter Flynn

unread,
Feb 1, 2011, 8:52:23 AM2/1/11
to latexus...@googlegroups.com
On Tue, Feb 1, 2011 at 11:36 AM, Ashish Revar <ashis...@gmail.com> wrote:
Hello there,

I am preparing a report which includes several images with .eps extension.
I am using epsfig package which is not working.

epsfig is obsolete. Use the graphicx package and the \includegraphics command instead.
If you are using pdflatex, you can't use EPS graphics. Convert them to PDF, PNG, or JPG.

http://latex.silmaril.ie/formattinginformation/structure.html#images

///Peter

Ashish Revar

unread,
Feb 1, 2011, 11:57:03 PM2/1/11
to latexus...@googlegroups.com
Thanks Peter,

I am able to deal with .eps figures in reoport class but facing the problems in Beamer class. It shows blank frames when I use eps figures and execute my files.

How to get epd figures in Beamer class?


--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Feb 2, 2011, 4:52:58 AM2/2/11
to latexus...@googlegroups.com
On Wed, Feb 2, 2011 at 4:57 AM, Ashish Revar <ashis...@gmail.com> wrote:
Thanks Peter,

I am able to deal with .eps figures in reoport class but facing the problems in Beamer class.

That is why you must always give a minimal example. You mentioned report but nothing about Beamer.
 
It shows blank frames when I use eps figures and execute my files.

How to get eps figures in Beamer class?
 
I have never tried to do that: I always use pdflatex and .pdf or .png images.

But I just tried a test with .eps and standard LaTeX with dvips and it passes through latex OK. When I try to display using xdvi I get a lot of Ghostscript errors. This is a bug, I think. I recommend you use pdflatex instead.

///Peter




Ashish Revar

unread,
Feb 2, 2011, 4:57:35 AM2/2/11
to latexus...@googlegroups.com
Thanks Peter,

I was working on report in which I have done the inclusion of .eps figures. But for that report I have to give a presentation.
So I am preparing a beamer presentation in which I need to insert those eps figures. But, I returned with a lot of errors. Got success to insert eps figures in report class but got failure in Beamer class.



///Peter




--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Feb 2, 2011, 6:15:05 AM2/2/11
to latexus...@googlegroups.com
On Wed, Feb 2, 2011 at 9:57 AM, Ashish Revar <ashis...@gmail.com> wrote:
Thanks Peter,

I was working on report in which I have done the inclusion of .eps figures. But for that report I have to give a presentation.

For which you presumably want a .pdf file. So why are you using .eps files?
 
So I am preparing a beamer presentation in which I need to insert those eps figures. But, I returned with a lot of errors. Got success to insert eps figures in report class but got failure in Beamer class.

I understand that.

I don't understand why you are not using pdflatex for Beamer.
Don't use standard latex with Beamer. Use pdflatex (convert your .eps files to .pdf files to include them).

///Peter

 

Ashish Revar

unread,
Feb 2, 2011, 6:44:22 AM2/2/11
to latexus...@googlegroups.com
Hi Peter,

In my thesis I am working on GNUPlot for creating graphs for several data coming from the traces done for Network applications.
So we are forced to use .eps figures which is default image format that we have to consider for the output.
That's why I am searching for insertion of eps figures in Beamer.

Is it possible to use eps figures in Beamer anyway?

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Feb 2, 2011, 7:57:47 AM2/2/11
to latexus...@googlegroups.com
On Wed, Feb 2, 2011 at 11:44 AM, Ashish Revar <ashis...@gmail.com> wrote:
Hi Peter,

In my thesis I am working on GNUPlot for creating graphs for several data coming from the traces done for Network applications.
So we are forced to use .eps figures which is default image format that we have to consider for the output.

OK.
 
That's why I am searching for insertion of eps figures in Beamer.
Is it possible to use eps figures in Beamer anyway?

In theory yes. In practice, I think it's broken.

So do what I suggested: convert the eps images to pdf, and use pdflatex for the Beamer slides.

for f in *.eps; do pstopdf $f ${f/pdf/eps}; done

///Peter

Reply all
Reply to author
Forward
0 new messages