[pstricks] ps4pdf.bat

Luciano Battaia batmathica at yahoo.it
Mon Mar 19 08:16:27 CET 2007


I have just tried the code with TexnicCenter  and all works well.
  I suggest you to make a last try.
  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.
  Good luck!
  Luciano Battaia

Iosif Pinelis <ipinelis at mtu.edu> ha scritto:
  Luciano Battaia wrote:

> It is very strange. Try the following simple code:
> 
> \documentclass{article}
> \usepackage{pstricks}
> \usepackage{pst-pdf}
> \begin{document}
> Lorem ipsum. Lorem ipsum. Lorem ipsum.
> \begin{center}
> \begin{pspicture}(-1,-1)(2,2)
> \psdots(0,0)(1,0)(0,1)(1,1)
> \end{pspicture}
> \end{center}
> Lorem ipsum. Lorem ipsum. Lorem ipsum.
> \end{document}
> 
> Then try directly items 4 and 5 of my previous message (that is 
> without compiling with LaTeX).

This time I get a message from "16 bit MS-DOS Subsystem":

C:\Windows\system32\cmd.exe - ps4pdf ipsum.tex
The NTVDM CPU has encountered an illegal instruction.
C5:0e0a IP:0019 OP:63 03 00 fb 01

Then it compains again that it can't find header file tex.pro:

>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\Owner>cd My Documents
>
> C:\Documents and Settings\Owner\My Documents>cd mtu
>
> C:\Documents and Settings\Owner\My Documents\mtu>ps4pdf ipsum.tex
> ps4pdf: the batch script could not be found.
>
> C:\Documents and Settings\Owner\My Documents\mtu>ps4pdf ipsum.tex
>
> C:\Documents and Settings\Owner\My Documents\mtu>latex --src 
> -interaction=nonsto
> pmode "ipsum.tex" 1>"ipsum-ps4pdfa.log"
> C:\Documents and Settings\Owner\My Documents\mtu>dvips -o 
> "ipsum-pics.ps" "ipsum
> .dvi" 1>>"ipsum-ps4pdfb.log"
> This is dvips(k) 5.95a Copyright 2005 Radical Eye Software 
> (www.radicaleye.com)
> dvips: ! Couldn't find header file tex.pro
> *** An error message appeared. Abnormal termination! Look at 
> ipsum-pst-pdf.log *
> **
> Press any key to continue . . .

Thank you again for your help.

Iosif Pinelis

> 
> Luciano Battaia
>
>
> */Iosif Pinelis /* ha scritto:
>
> Luciano Battaia wrote:
>
> >
> > One elementary way to use PDFLaTeX on a file with PSTricks code,
> under
> > Windows, is:
> > 1.Put your tex file (myfile.tex) in a dir (mydir). In the same
> dir put
> > a copy of the file ps4pdf.bat (you can download it, for example,
> from
> > http://www.batmath.it/latex/down/ps4pdf.bat).
> > 2.Work as usual with your file, WITHOUT compiling with PDFLaTeX.
> > 3.When the file is ready (and not before) put the command
> > \usepackage{pst-pdf} in your document and compile again with LaTeX.
>
> Thank you very much Luciano. I do this but get
>
> LaTeX error: Something's wrong--perhaps a missing \item
>
> I use TeXnicCenter, with latex profile
>
> C:\texmf\MiKTeX\bin\latex.exe
> --src -interaction=nonstopmode -max-print-line=120 "%Wm"
>
> Iosif Pinelis
>
> > 4.At a DOS prompt change the dir to mydir and then run "ps4pdf
> > myfile.tex".
> > 5.Compile with PDFLaTeX as usual.
> > That's all.
> > Obviously you can configure your editor (for example WinEdt) to
> do all
> > this in a simpler way.
> >
> > Luciano Battaia
> >
> >
> >
> ------------------------------------------------------------------------
> > L'email della prossima generazione? Puoi averla con la nuova Yahoo!
> > Mail
> > 
>
> ------------------------------------------------------------------------
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! 
> Mail 
> 
 		
---------------------------------
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20070319/f980fa12/attachment.html 


More information about the PSTricks mailing list