[pstricks] ps4pdf.bat

Iosif Pinelis ipinelis at mtu.edu
Sun Mar 18 20:57:22 CET 2007


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 <ipinelis at mtu.edu>/* 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 
> <%20http://us.rd.yahoo.com/mail/it/taglines/hotmail/nowyoucan/nextgen/*%20http://it.docs.yahoo.com/nowyoucan.html> 
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>pstricks mailing list
>pstricks at tug.org
>http://tug.org/mailman/listinfo/pstricks
>  
>



More information about the PSTricks mailing list