#!/bin/csh -f # # printbib - print a full bibtex bib file out # # David Kotz --- with hacks by Mark Potse # $Id: printbib,v 1.3 2002/08/05 09:55:09 potse Exp $ # # usage: # printbib bibfile... # # Then send the dvi file 'abstract.dvi' to the printer # (usage varies; try lpr -d abstract.dvi) if ($#argv == 0) then echo usage: printbib bibfile... exit 1 endif if ($1:e == "bib") then set files=($1:r) else set files=($1) endif shift foreach f ($*) if ($f:e == "bib") then set files="$files,$f:r" else set files="$files,$f" endif end echo creating abstract.tex for $files cat > abstract.tex <> abstract.tex cat >> abstract.tex <> abstract.tex echo '\\end{document}' >> abstract.tex rm -f abstract.{aux,log,dvi,bbl,blg} set echo latex abstract.tex bibtex abstract latex abstract.tex latex abstract.tex