LyXps2pdf | Conversion fails

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
scal
Posts: 4
Joined: Fri Jun 08, 2012 1:31 pm

ps2pdf | Conversion fails

Post by scal »

Hi All,

New to this sort of thing, but suspect I have an unusual bug in my system.

Cannot convert any LyX document with ps2pdf? I have Ghostscript installed, the full MiKTeX package, now currently at a loss? See some of the progress/debug messages:

Code: Select all

Running: ps2pdf "Intro.ps" "Intro.pdf"
C:\Users\Vincent\Documents\LyX\source\lyx20x\src\support\Systemcall.cpp(270): Systemcall: 'ps2pdf "Intro.ps" "Intro.pdf"' finished with exit code 255
Error: Cannot convert file
----------------------------------------
An error occurred while running:
ps2pdf "Intro.ps" "Intro.pdf"
20:21:16.618: Error while previewing format: pdf
I can create a PDF normally (pdflatex) but I have other issues with EPS files (using matlabfrag to combine .eps and .tex) which will not display. I assume this problem is related?

Any help desperately appreciated!

scal

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scal
Posts: 4
Joined: Fri Jun 08, 2012 1:31 pm

Re: ps2pdf | Conversion fails

Post by scal »

Problem partially solved. I can create pdfs fine with ps2pdf (had to wipe and reinstall the works! cygwin was interfering for some reason? i no longer need it now so not a problem).

Current problem: Using matlabfrag for Latex->PDF (no problem for Latex->PS->PDF, all works fine). I am using psfragfig with the pstool package as suggested. I have enabled the shell escape feature I think (not sure how to check properly?).

I have no idea why I cannot create the PDF directly? Apparently it is possible this way? If it is a shell escape problem then:
1. how to check that i have enabled/disabled it?
2. if i havn't got the correct script, how do I find out what to use? (currently: pdflatex -shell-escape $$i) someone said that a double dash (--) in front of shell was needed but neither work for me?

I want to convert this way becuase otherwise all files must be eps, what a pain! help!

Note - Once I have created a pdf using ps2pdf, then close it and create a new pdf using the default method (latex to pdf) then it somehow works? Something in the previous conversion process has changed settings or a temporary file has been created somewhere that helps file creation?

scal
Post Reply