I have some PS and PSG graphics files that I need to include in a document, graphics file types that I have no experience with. Similar questions have been asked on this site before, but, regrettably, I have not been able to use these tips to solve my problem. So please accept my apology for posting a similar question. My naive approach has been
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=4in]{image1.ps}
\includegraphics[width=125mm]{image2.psg}
\end{document}
This results in the error "unknown graphics extension". Using a suggestion from the post LaTeX Error: Unknown graphics extension: .ps I have then tried adding the line
\usepackage{auto-pst-pdf}
This returns the error "shell escape' (or write 18) is not enabled". From the same post a suggestion for this problem is to set the " --enable-write18" option. It is not clear to me where/how I should set this option. I am using WinEdt 9 and would appreciate any help.
.psone will probably work if you rename it to.epsbut I have no idea what a.psgfile is so I can not suggest anything there, try to convert it to (say) pdf (google for anything that can do that) – David Carlisle Jul 17 '16 at 09:42\usepackage{epstopdf}the file now compiles. Hey, I have no idea what a PSG file is either, but I also changed the extension to EPS and this works also. Thanks for your help... – Freakalien Jul 17 '16 at 10:00PSDfile? This would be Adobe Photoshop format. – Bernard Jul 17 '16 at 10:22shell escapeerror when i try to include PS files. When I change the file extension to ESP, no problems.Sorry, my problem. When I compile with PDFLaTeX the error disappears, except I now need to find a style file luatex85.sty.
– Freakalien Jul 17 '16 at 10:49--enable-write18for all the engines (executables) you want to use, not just PDFLatex . Select them one by one and add the option to each of them (LuaLATex or whatever you want to use). – alwaysask Jul 17 '16 at 11:00\usepackage{epstopdf}did the trick. – Freakalien Jul 17 '16 at 12:07