Wednesday, April 18, 2007

Split a postcript file with multiple pages of graphs and generate the code to include them in latex ( Shell file)


set j=1
while ($j <= $total )
psselect $j $file1 $file-$j.ps
echo "written $file-$j.ps"
echo "\includegraphics{$file-$j.ps}" >> $file.txt
set j=`expr $j + 1`
end
end

echo " "
echo " "

echo " Latex Code produced in $file.txt "

No comments: