Graphics, Figures & Tablesis it possible to have pdf and eps in the same file?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

is it possible to have pdf and eps in the same file?

Post by Sam »

Hello dears,

is it possible to have pdf and eps in the same file?

I have a huge file (a PhD thesis!)

That apparently accepts only eps...

How can i make it accept pdf also? is there a command to add?

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

is it possible to have pdf and eps in the same file?

Post by frabjous »

Try loading the epstopdf package and use pdflatex. This package is loaded automatically with the most recent versions of pdflatex (TeXlive 2010; MikTeX 2.9). With older versions, you'll need to manually load the package, and use the -shell-escape or -enable-write18 option at compile time.
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

is it possible to have pdf and eps in the same file?

Post by Sam »

frabjous wrote:Try loading the epstopdf package and use pdflatex. This package is loaded automatically with the most recent versions of pdflatex (TeXlive 2010; MikTeX 2.9). With older versions, you'll need to manually load the package, and use the -shell-escape or -enable-write18 option at compile time.

thanks but am confused...it is a executale to download???
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

is it possible to have pdf and eps in the same file?

Post by localghost »

Sam wrote:thanks but am confused...it is a executale to download???
What about following the link and reading the package description? It's a LaTeX package as usual which executes the epstopdf command line tool. Both can be installed by the package manager of your LaTeX distribution.


Thorsten
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

is it possible to have pdf and eps in the same file?

Post by Sam »

localghost wrote:
Sam wrote:thanks but am confused...it is a executale to download???
What about following the link and reading the package description? It's a LaTeX package as usual which executes the epstopdf command line tool. Both can be installed by the package manager of your LaTeX distribution.

As soon as the problem is sorted pout, please act exactly according to Section 3 of the Board Rules.


Thorsten
thnaks very much... but ...
I think you misunderstood my problem guys!

I wanna have both figures of .eps and .pdf format in the same file...

is this possible?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

is it possible to have pdf and eps in the same file?

Post by localghost »

Sam wrote:[…] I wanna have both figures of .eps and .pdf format in the same file...

is this possible?
There wouldn't have been these recommendations if it would be possible. And to say it unmistakably clear: No, it is not possible. You will have to convert the one or the other.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

is it possible to have pdf and eps in the same file?

Post by frabjous »

localghost wrote:There wouldn't have been these recommendations if it would be possible. And to say it unmistakably clear: No, it is not possible. You will have to convert the one or the other.
Well, if you compiled with XeLaTeX, you could .eps and .pdf in the same file without converting.

But I don't see what the problem is with using the epstopdf package. Yes, strictly speaking, that is converting the .eps files to .pdf in the background, but it's basically the same thing as supporting both eps to pdf -- afterall, the eps file has to be displayed in the resultant pdf somehow, so at some point it needs to be converted!

There are two things both called "epstopodf". One is a command line tool, one is a LaTeX package. They are related in that if you load the LaTeX package, what it does is that when it encounters an .eps figure in your document, it automatically uses the command line tool in the background to convert it to PDF and then uses the PDF in its place. It does this automatically for you, so you don't need to think about it. This would, in a sense, allow you to use both .eps and .pdf in the same document.

Obviously, the LaTeX package only works if you have the command line tool installed. The command line tool is part of Ghostscript, and most people who have a TeX installation installed also have Ghostscript installed, since nearly every guide or instructions on installing LaTeX will also recommend (or even insist) that you install Ghostscript at the same time. And then for the package, there's a good chance you already have that installed as well, and if you don't, you can do so through your TeX distrubution's package manager, as already noted.
Post Reply