Showing posts with label latex. Show all posts
Showing posts with label latex. Show all posts

Wednesday, April 18, 2007

The Latex Bibtex cycle and camera ready postscript ( Shell file)


#! /usr/bin/tcsh -f
set file1 = ${1}
echo $file1

set file = $file1:r
latex $file
bibtex $file
latex $file
latex $file
dvips $file -P pdf -G0 -t letter -o
echo done latex bibtex latex latex

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 "