Hi everyone, again,
 
Really sorry for posting twice. I have messed up some issues in the previous post.
 
I am currently using TeXstudio2.5.2(SVN 3661) on Windows7 64bit.  And I want to include an eps formatted image to create a pdf file. But I failed.
 
In TeXstudio, I changed the default settings to:
Latex -> "C:/Program Files/MiKTeX 2.9/miktex/bin/x64/latex.exe" -src -interaction=nonstopmode %.tex
Dvipdf -> "C:/Program Files/MiKTeX 2.9/miktex/bin/x64/dvipdfm.exe" %.dvi
Ghostscript -> "C:/Program Files/MiKTeX 2.9/miktex/bin/x64/dvipdfm.exe" "?am.ps" 
 
When I use 'DVI Chain' as the 'Build & View' option, the dvi file just looked fine.
 
But when I tried to convert DVI file with dvipdfm.exe in command window, or use 'DVI->PDF Chain' in TeXstudio, the following messages just came up and then the operation was faild.
 
=========== message of TeXstudio ============
Process started: "C:/Program Files/MiKTeX 2.9/miktex/bin/x64/dvipdfm.exe" "statement".dvi


MiKTeX GPL Ghostscript 8.54: Can't find initialization file gs_init.ps.

 

statement.dvi -> statement.pdf

 

[1 ** WARNING ** Filtering file via command -->

mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile="C:/Users/huyaoyu/AppData/Local/Temp/mik98BC.tmp" "E:/work/sig-hyy.eps" -c quit<-- failed.

 

** WARNING ** Image format conversion for "E:/work/sig-hyy.eps" failed...

 

** ERROR ** pdf_ref_obj(): passed invalid object. Output file removed.


Process exited with error(s)

=========== end of message of TeXstudio ==========

(I inserted some blank lines to make it more clear to read.)

 

I searched the web to find a solution. Someone said that it seems to be the problem with mgs.exe on Windows. But I still cannot figure out how to solve this problem.

 

I use Latex both on Linux and Windows, and synchronize my work over the two platforms. On linux I just use eps files, so it is best to use eps files on windows, too. And pdfLatex is just not my option.

 

Again, any help is appreciated!

 

Thanks !!!

 

Yaoyu Hu

Shanghai Jiao Tong University