[pstricks] Figtex

Joel Salomon joelcsalomon at gmail.com
Fri Dec 1 20:24:57 CET 2006


I've built on a script I've called figtex.  It's been useful in
generating eps and epdf files for an individual PSTricks diagram.
I've attached the script (for Windows; a UNIX version should be quite
a bit easier) and an example file.

	@echo off
	if "%1"=="" (
		echo usage: %0 file ...
		exit /b 1
	)
	for %%i in (%*) do (
		echo %0^> latex %%~ni.tex
		latex %%~ni.tex
		echo %0^> dvips -E %%~ni.dvi -o %%~ni.ps
		dvips -E %%~ni.dvi -o %%~ni.ps
		echo %0^> epstool --copy --bbox %%~ni.ps %%~ni.eps
		epstool --copy --bbox %%~ni.ps %%~ni.eps
		echo %0^> epstopdf %%~ni.eps
		epstopdf %%~ni.eps
	)

	\documentclass{minimal}
	\usepackage{pstricks}
	\usepackage{pst-3dplot}
	\begin{document}
	\pagestyle{empty}
	\psset{Alpha=30,Beta=15,RotY=-90}
	\begin{pspicture}(-4,-4)(4,4)\psgrid
		 \pstThreeDCoor[drawing=true,
			xMin=-4,xMax=4,%
			yMin=-4,yMax=4,%
			zMin=-4,zMax=4]
		 \pstThreeDDot(1,1,0)
	\end{pspicture}
	\end{document}

--Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figtex_sample.tex
Type: application/x-tex
Size: 316 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20061201/4e749d78/attachment.tex 
-------------- next part --------------
@echo off
if "%1"=="" (
	echo usage: figtex file ...
	exit /b 1
)
for %%i in (%*) do (
	echo %0^> latex %%~ni.tex
	latex %%~ni.tex
	echo %0^> dvips -E %%~ni.dvi -o %%~ni.ps
	dvips -E %%~ni.dvi -o %%~ni.ps
	echo %0^> epstool --copy --bbox %%~ni.ps %%~ni.eps
	epstool --copy --bbox %%~ni.ps %%~ni.eps
	echo %0^> epstopdf %%~ni.eps
	epstopdf %%~ni.eps
)


More information about the PSTricks mailing list