[pstricks] ps4pdf.bat

Iosif Pinelis ipinelis at mtu.edu
Tue Mar 20 01:50:51 CET 2007


Thank you very much Luciano. It has worked for me with your ipsum file 
but only after I added to the folder a bunch of .pro files, which it 
said it couldn't find. But my file compiles w/out pstricks, with some 
lines of text over others. I am told about missing fonts but suspect 
they are not the main cause of the problem.

Iosif Pinelis

> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\Owner>cd ..
>
> C:\Documents and Settings>cd ..
>
> C:\>cd pdflatex_files
>
> C:\pdflatex_files>dir
>  Volume in drive C is HP_PAVILION
>  Volume Serial Number is
>
>  Directory of C:\pdflatex_files
>
> 03/19/2007  08:35 PM    <DIR>          .
> 03/19/2007  08:35 PM    <DIR>          ..
> 03/19/2007  08:32 PM                 0 3-18-07-ps4pdfa.log
> 03/19/2007  08:12 PM                 0 3-18-07-ps4pdfb.log
> 03/19/2007  08:34 PM             8,874 3-18-07.aux
> 03/19/2007  08:35 PM               369 3-18-07.bbl
> 03/19/2007  08:35 PM               918 3-18-07.blg
> 03/19/2007  08:34 PM                 0 3-18-07.brf
> 03/19/2007  08:35 PM             5,000 3-18-07.dvi
> 03/19/2007  08:35 PM            13,839 3-18-07.log
> 03/19/2007  08:33 PM               382 3-18-07.out
> 03/19/2007  08:33 PM           393,495 3-18-07.pdf
> 03/19/2007  08:35 PM           103,196 3-18-07.tex
> 03/19/2007  08:34 PM               524 3-18-07.toc
> 12/18/2005  11:02 AM             3,190 color.pro
> 12/18/2005  11:02 AM               843 html_commands
> 03/19/2007  08:32 PM               305 missfont.log
> 12/21/2002  04:19 PM             4,576 mktex.opt
> 03/18/2007  09:45 AM             1,757 ps4pdf.bat
> 09/15/1998  03:00 AM             1,612 pst-blur.pro
> 03/29/1999  02:00 AM             1,669 pst-coil.pro
> 03/10/2000  10:05 PM             4,734 pst-dots.pro
> 06/24/2004  02:01 PM             3,692 pst-grad.pro
> 03/29/1999  02:00 AM            12,717 pst-node.pro
> 09/15/1998  03:00 AM             3,218 pst-slpe.pro
> 12/15/2005  06:04 PM             2,587 pst-text.pro
> 09/19/2005  08:59 PM            18,401 pstricks.pro
> 12/18/2005  11:02 AM             3,928 special.pro
> 02/29/2000  10:55 AM             2,960 tex.pro
> 12/18/2005  11:02 AM               824 texps.pro
>               28 File(s)        593,610 bytes
>                2 Dir(s)  45,645,467,648 bytes free
>
> C:\pdflatex_files>ps4pdf 3-18-07.tex
>
> C:\pdflatex_files>latex --src -interaction=nonstopmode "3-18-07.tex"  
> 1>"3-18-07
> -ps4pdfa.log"
>
> C:\pdflatex_files>dvips -o "3-18-07-pics.ps" "3-18-07.dvi"  
> 1>>"3-18-07-ps4pdfb.
> log"
> This is dvips(k) 5.95a Copyright 2005 Radical Eye Software 
> (www.radicaleye.com)
> ' TeX output 2007.03.19:2035' -> 3-18-07-pics.ps
> kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 
> 600 cmmi10
> mktexpk: Cannot find mktex.opt; check your installation.
> kpathsea: Appending font creation commands to missfont.log.
> dvips: Font cmmi10 not found, characters will be left blank.
> dvips: Can't open font metric file cmmi10.tfm
> dvips: I will use cmr10.tfm instead, so expect bad output.
> dvips: ! I can't find cmr10.tfm; please reinstall me with proper paths
> *** An error message appeared. Abnormal termination! Look at 
> 3-18-07-pst-pdf.log
>  ***
> Press any key to continue . . .
>
> C:\pdflatex_files>



Luciano Battaia wrote:

> 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 
> <%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