Graphics, Figures & Tablesgetting ps files to show up on a pdf

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
otunno
Posts: 3
Joined: Fri Aug 28, 2009 1:19 am

getting ps files to show up on a pdf

Post by otunno »

Hello everyone -

I have a tex file that calls upon several ps files in order to convert them to pictures on my pdf output. Here is an example:

\begin{figure}[h]
\hspace{0.033\textwidth}
\begin{minipage}{0.45\textwidth}
\includegraphics[height=2in,width=2.6in]{E:/arclengthplot1.ps}
\caption{}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\includegraphics[height=2in,width=2.6in]{E:/arclengthplot2.ps}
\caption{}
\end{minipage}
\hfill
\end{figure}

When I compile the tex file, I get several error messages (one for each ps file that I call upon) each of which says "Unknown Graphics Extension: .ps". I know I am calling upon the right directory and I am using the package "epsfig". Everything used to run fine, but LaTeX has (seemingly) changed on me. I have no idea why this is happening. Can somebody please help me?

Thanks, Ferebee

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Re: getting ps files to show up on a pdf

Post by frabjous »

You need to compile using the route LaTeX > PS > PDF rather than using pdfLaTeX?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

getting ps files to show up on a pdf

Post by gmedina »

Hi,

the error message is quite descriptive:
otunno wrote:...Unknown Graphics Extension: .ps...
In general, you cannot use graphics in PS format (the bounding box could be missing, for example). Convert them to EPS (or to another of the valid formats: JPG, PNG, PDF).

The epslatex document (section 3.3 Converting PS files to EPS) contains information about how to convert images from PS to EPS.

Once converted to EPS, you must compile your document as frabjous suggested.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply