Graphics, Figures & Tablesgetting .ps files onto pdf files

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 onto pdf files

Post by otunno »

Hi everyone -

Starting about a month ago (roughly), a LaTeX file on my flashdrive (which calls upon postscript files on the same flashdrive) that used to compile properly no longer does.

Specifically, I now get error messages telling me that my postscript (.ps) files cannot be found. LaTeX can no longer determine the "size" of the graphic ("no Bounding Box"?)

This NEVER used to happen and I haven't changed my .tex file at all. The only difference in my .ps files is that now when I open them directly, the finished graph appears, whereas about a month ago the .ps file was just a bunch of code/text that LaTeX would read in order to create the graph in the final pdf file.

Can anybody please help me with this dilemma? Here is the .ps portion of my code in my LaTeX file:

Code: Select all

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

\end{figure}
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 onto pdf files

Post by frabjous »

Have you switched from compiling with LaTeX to compiling with pdfLaTeX or vice-versa?

Otherwise, upload either the files, or a Minimal Working Example here, and perhaps someone can sort it out.
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: getting .ps files onto pdf files

Post by php1ic »

Have you tried converting your .ps files to .eps? This may solve the Bounding Box problem.

If this problem never used to happen however, it may be caused when you plug in the flashdrive, does it still mount to F: ? You could try giving the path of the .ps file relative to the main latex file.
otunno
Posts: 3
Joined: Fri Aug 28, 2009 1:19 am

Re: getting .ps files onto pdf files

Post by otunno »

Thank you, php1ic!! For some reason, my flashdrive is now labeled E: instead of F: and so once I changed those letters in my tex file, everything worked great!

Ferebee
Post Reply