#! /bin/tcsh -f ############################################################################# # csh script to process a Feynmf diagram # # Usage: fmf_make2 filename # # Programmer: Dick Furnstahl furnstahl.1@osu.edu # # Revision History: # 03/24/00 --- original version # 04/17/00 --- minor revisions and comments added # 11/05/00 --- switched to metapost (use corresponding style file!) # # Notes: # * The filename should NOT include the ".tex" suffix. # * Old versions of the 600gf and 600pk files are removed to avoid # problems with xdvi or dvips using the old versions # # To do: # * Rewrite in perl and exit on errors from first latex pass # * make the xdvi at the end an option (but the default) # ############################################################################# set file_name = $argv[1] # get rid of old files /bin/rm -f fmf$file_name".600gf" fmf$file_name".600pk" # first latex pass latex $file_name # run metapost mpost "fmf$file_name" # second latex pass latex $file_name # pop up xdvi to view the file xdvi $file_name".dvi" & exit 1