[Indic-dev] pstricks for PovRay

H S Rai indic-dev@tug.org
Mon, 4 Nov 2002 12:19:47 +0530 (IST)


Today at 10:40am +0530 Radhakrishnan CV wrote:

>       Rai> Can any one point out mistake?
>
>   Please change line number 104 to:
>
>     \long\def\streaminfo{}

Thank   you  for   solving   problem. I  am   appending  pov2jpg,   if
"shell-escape" not used.

I also  have to  comment line no  172, to run  it without  invoking of
pov2jpg with -shell-escape option. Ths line was:

{\noprocess}

Thanks once again.

-- 
H.S.Rai

=======================================================
pov2jpg
=======================================================

#! /bin/bash
# pov2jpg
# Povray source POV 2 JPG converter :
# Usage: "pov2jpg" produces JPG files for all files of the form *-fig*.pov
#         "pov2jpg <FILE>" only considers FILE-fig.pov
# It removes intermediary files at the end.

FILE=$1
if test -z $FILE; then
		FIGURES=`ls *-fig*.pov`;
else
		FIGURES=`ls -- $FILE-fig*.pov`;
fi

for f in $FIGURES ; do
  fig=`basename  $f .pov`
  povray $fig.pov
  convert $fig.png $fig.jpg
  rm $fig.png
done