Hi folks, I've got a latex article, me.tex, that includes a graphic mefig.eps. If I compile via the command line:
pdflatex mefig.eps
the compilation process uses Ghostscript to create an intermediary file mefig-eps-converted-to.pdf and generates me.pdf with no errors. When I compile from TextMate (whether I use pdflatex or latexmk.pl doesn't matter), I get an error:
------------ !!! Error: Cannot open Ghostscript for piped input
Latex Error: ./epstest.tex:14 Package pdftex.def Error: File `breakevenb1-eps-converted-to.pdf' not found. ---------------
I am using the latest version of TextMate (with the default Latex bundle) and TexLive 2010 (I actually uninstalled my TextMate and re-installed from scratch to make sure it wasn't a config quirk on my end). Any ideas here? Shouldn't TextMate simply be issuing the command "pdflatex my.tex", which work from Terminal?
Thanks,
Jim
On Jan 20, 9:28 pm, Jim McLoughlin jmcloughlin.li...@gmail.com wrote:
I believe the error is that your /usr/local/bin directory is not within the $PATH in TextMate. To fix this, go to TextMate -> Preferences -> Advanced -> Shell Variables. Add a new variable PATH (or replace it if it already exists) with the value of `echo $PATH' from your terminal.
For some reason, TexLive installs some Ghostscript stuff into /usr/ texbin/ and some into /usr/local/bin. Both must be in your $PATH variable for proper compilation of pdf(la)tex.
Best, Matt
On Fri, Jan 21, 2011 at 10:31 AM, Matt Bauman mbauman@gmail.com wrote:
This did the trick - thanks Matt!
Jim