<div>I have just tried the code with TexnicCenter&nbsp;&nbsp;and all works well.</div>  <div>I suggest you to make&nbsp;a last try.</div>  <div>Put your dir with the file and the ps4pdf.bat directly in a subdir of C:, using names WITHOUT SPACES. I think that dos prompt does not work well in directories with spaces.</div>  <div>Good luck!</div>  <div>Luciano Battaia<BR><BR><B><I>Iosif Pinelis &lt;ipinelis@mtu.edu&gt;</I></B> ha scritto:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Luciano Battaia wrote:<BR><BR>&gt; It is very strange. Try the following simple code:<BR>&gt; <BR>&gt; \documentclass{article}<BR>&gt; \usepackage{pstricks}<BR>&gt; \usepackage{pst-pdf}<BR>&gt; \begin{document}<BR>&gt; Lorem ipsum. Lorem ipsum. Lorem ipsum.<BR>&gt; \begin{center}<BR>&gt; \begin{pspicture}(-1,-1)(2,2)<BR>&gt; \psdots(0,0)(1,0)(0,1)(1,1)<BR>&gt; \end{pspicture}<BR>&gt; \end{center}<BR>&gt; Lorem ipsum. Lorem ipsum. Lorem
 ipsum.<BR>&gt; \end{document}<BR>&gt; <BR>&gt; Then try directly items 4 and 5 of my previous message (that is <BR>&gt; without compiling with LaTeX).<BR><BR>This time I get a message from "16 bit MS-DOS Subsystem":<BR><BR>C:\Windows\system32\cmd.exe - ps4pdf ipsum.tex<BR>The NTVDM CPU has encountered an illegal instruction.<BR>C5:0e0a IP:0019 OP:63 03 00 fb 01<BR><BR>Then it compains again that it can't find header file tex.pro:<BR><BR>&gt;<BR>&gt; Microsoft Windows XP [Version 5.1.2600]<BR>&gt; (C) Copyright 1985-2001 Microsoft Corp.<BR>&gt;<BR>&gt; C:\Documents and Settings\Owner&gt;cd My Documents<BR>&gt;<BR>&gt; C:\Documents and Settings\Owner\My Documents&gt;cd mtu<BR>&gt;<BR>&gt; C:\Documents and Settings\Owner\My Documents\mtu&gt;ps4pdf ipsum.tex<BR>&gt; ps4pdf: the batch script could not be found.<BR>&gt;<BR>&gt; C:\Documents and Settings\Owner\My Documents\mtu&gt;ps4pdf ipsum.tex<BR>&gt;<BR>&gt; C:\Documents and Settings\Owner\My Documents\mtu&gt;latex --src
 <BR>&gt; -interaction=nonsto<BR>&gt; pmode "ipsum.tex" 1&gt;"ipsum-ps4pdfa.log"<BR>&gt; C:\Documents and Settings\Owner\My Documents\mtu&gt;dvips -o <BR>&gt; "ipsum-pics.ps" "ipsum<BR>&gt; .dvi" 1&gt;&gt;"ipsum-ps4pdfb.log"<BR>&gt; This is dvips(k) 5.95a Copyright 2005 Radical Eye Software <BR>&gt; (www.radicaleye.com)<BR>&gt; dvips: ! Couldn't find header file tex.pro<BR>&gt; *** An error message appeared. Abnormal termination! Look at <BR>&gt; ipsum-pst-pdf.log *<BR>&gt; **<BR>&gt; Press any key to continue . . .<BR><BR>Thank you again for your help.<BR><BR>Iosif Pinelis<BR><BR>&gt; <BR>&gt; Luciano Battaia<BR>&gt;<BR>&gt;<BR>&gt; */Iosif Pinelis <IPINELIS@MTU.EDU>/* ha scritto:<BR>&gt;<BR>&gt; Luciano Battaia wrote:<BR>&gt;<BR>&gt; &gt;<BR>&gt; &gt; One elementary way to use PDFLaTeX on a file with PSTricks code,<BR>&gt; under<BR>&gt; &gt; Windows, is:<BR>&gt; &gt; 1.Put your tex file (myfile.tex) in a dir (mydir). In the same<BR>&gt; dir put<BR>&gt; &gt; a copy of the
 file ps4pdf.bat (you can download it, for example,<BR>&gt; from<BR>&gt; &gt; http://www.batmath.it/latex/down/ps4pdf.bat).<BR>&gt; &gt; 2.Work as usual with your file, WITHOUT compiling with PDFLaTeX.<BR>&gt; &gt; 3.When the file is ready (and not before) put the command<BR>&gt; &gt; \usepackage{pst-pdf} in your document and compile again with LaTeX.<BR>&gt;<BR>&gt; Thank you very much Luciano. I do this but get<BR>&gt;<BR>&gt; LaTeX error: Something's wrong--perhaps a missing \item<BR>&gt;<BR>&gt; I use TeXnicCenter, with latex profile<BR>&gt;<BR>&gt; C:\texmf\MiKTeX\bin\latex.exe<BR>&gt; --src -interaction=nonstopmode -max-print-line=120 "%Wm"<BR>&gt;<BR>&gt; Iosif Pinelis<BR>&gt;<BR>&gt; &gt; 4.At a DOS prompt change the dir to mydir and then run "ps4pdf<BR>&gt; &gt; myfile.tex".<BR>&gt; &gt; 5.Compile with PDFLaTeX as usual.<BR>&gt; &gt; That's all.<BR>&gt; &gt; Obviously you can configure your editor (for example WinEdt) to<BR>&gt; do all<BR>&gt; &gt; this in a
 simpler way.<BR>&gt; &gt;<BR>&gt; &gt; Luciano Battaia<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt; L'email della prossima generazione? Puoi averla con la nuova Yahoo!<BR>&gt; &gt; Mail<BR>&gt; &gt; <BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; L'email della prossima generazione? Puoi averla con la nuova Yahoo! <BR>&gt; Mail <BR>&gt; </BLOCKQUOTE><p>&#32;
                <hr size=1><font face="Arial"  
size="2"> L'email della prossima generazione? Puoi averla con la  <a href=" http://us.rd.yahoo.com/mail/it/taglines/hotmail/nowyoucan/nextgen/* http://it.docs.yahoo.com/nowyoucan.html">nuova Yahoo! Mail</a></font>