home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2990 / plotskel < prev    next >
Text File  |  1991-03-05  |  436b  |  18 lines

  1. #!/bin/csh -f 
  2. #
  3. # Make a skeleton version of a gnuplot or gnutex plot.tex file
  4. # This can be used in the same way, and takes up the same amount of
  5. # space on the page, but will run through latex MUCH faster. Good
  6. # for quick drafts.
  7. #
  8. # Usage:
  9. #   plotskel plot.tex 
  10. # Standard output is skeleton file
  11.  
  12. if ($#argv != 1) then
  13.        echo usage: plotskel plot.tex
  14.        exit 1
  15. endif
  16.  
  17. sed -n -e '1,/begin{picture}/p' -e '/end{picture}/,$p' $1
  18.