---------
README:
---------
How to get EGS plots to the laser for inclusion in documents:

Files needed:
	hpgl2pcl--s300 only right now (don't have source)
	liffilter--iff plotting to local HFS volume
	makefiles--makes things LOTS easier
	plot files--obviously

What to do to prep:

1.  Customize s300 script.  Need file names, paths, etc.  If plot files
    will be coming from SRM, can take out liffilter stuff.

2.  Customize s800 script.  Need file names, paths,etc.  May want to add
    eqn as additional pipe in ...|tbl|troff -mm invocation.  Should go
    after tbl.

What to do to produce document:

1.  The EGS drawing needs some centering helps.  Put the smallest possible
    circles on the drawing approximately where you expect the actual corners
    of the paper to be.  You only need two in diagonally opposite corners.

2.  Plot a file using PLO :C :T7580 :PA <fn>

3.  Get on an s300.  Run 'make' on the file.  Be sure liffilter is in the
    makefile if the plot was done to an HFS volume.

4.  When this is done, the pcl file (printer control language) should be 
    on hpfclr.  Run the make file that makes your document.  After the
    document, the makefile sends the graphics out in manual feed mode.
    Wait until the flashing ready light on the laserjet stops flashing,
    and the status display alternates between PF and L.  Then switch
    the laserjet to manual, install the page have graphics added to
    FACE DOWN in the papertray with the top towards the manual feed 
    slot in the laserjet, unselect manual feed, and bring the laserjet
    back on line.  Done!  (Repeat for as many pages as you have.)

---------
Makefile for s300
---------
hpfclrpath=/users/russb/topgun/doc/theory

all:  figure1 figure2 ersfig

# liffilter is only needed if the file was plotted directly to
# an HFS hard disc from egs, ie, file is of type lif.  If from
# SRM, liffilter shouldn't be necessary.

figure1: FIG1PLOT.ASC
	liffilter <FIG1PLOT.ASC >theo.fg1.fil
	hpgl2pcl -oA -r150 theo.fg1.fil >theo.fg1.pcl
	rcp theo.fg1.pcl hpfclr:$(hpfclrpath)
	rm theo.fg1.pcl theo.fg1.fil
	touch figure1

figure2: FIG2PLOT.ASC
	liffilter <FIG2PLOT.ASC >theo.fg2.fil
	hpgl2pcl -oA -r150 theo.fg2.fil >theo.fg2.pcl
	rcp theo.fg2.pcl hpfclr:$(hpfclrpath)
	rm theo.fg2.pcl theo.fg2.fil
	touch figure2

ersfig: ERSFPPLT.ASC
	liffilter <ERSFPPLT.ASC >ers.fp.fil
	hpgl2pcl -oA -r150 ers.fp.fil >ers.fp.pcl
	rcp ers.fp.pcl hpfclr:$(hpfclrpath)
	rm ers.fp.fil ers.fp.pcl
	touch ersfig
---------
Makefile for s800
---------
# The resetfonts in this thing is rather dangerous.  Make sure
# no one else is using the lj at the time you're doing it.  It's
# really only needed if you're using a down-loaded macro that
# someone may have blown away.

all:  prefix theory suffix
	-resetfonts -cA
	loadspec
	cat prefix theory suffix|tbl|troff -mm
	cat theo.fg1.pcl|lpr -dlp2 -oraw -oman
	cat theo.fg2.pcl|lpr -dlp2 -oraw -oman

fig:
	cat theo.fg1.pcl|lpr -dlp2 -oraw -oman
	cat theo.fg2.pcl|lpr -dlp2 -oraw -oman

fig1:
	cat theo.fg1.pcl|lpr -dlp2 -oraw -oman

fig2:
	cat theo.fg2.pcl|lpr -dlp2 -oraw -oman

ersfig:
	cat ers.fp.pcl|lpr -dlp2 -oraw -oman
------------
I have hpgl2pcl if you need it.

--russb

