code: mafs

ref: 1a4e1fc2e52ab80b55ef0d7fdccca973267fb4cc
dir: /docs/mkfile/

View raw version
</sys/doc/fonts

all:V:	mafs.pdf

# fn v { mk view }
view:	mafs.pdf
	window -r 0 0 800 1000 page -R /mnt/term/home/j/local/plan9/custom/mafs/docs/mafs.pdf
	cp /mnt/term/home/j/local/plan9/custom/mafs/docs/mafs.pdf /mnt/term/tmp/mafs.pdf

clean:
	rm *.ps *.pdf

# /sys/doc/cleanps messes up the double quotes in the text. Why? Is there a workaround?
%.ps:D:	%.ms
	{ echo $FONTS; cat $stem.ms } | pic | tbl | eqn | 
		troff -ms | lp -dstdout > $target
#	/sys/doc/cleanps $target # messes up the double quotes

%.preview:D:	%.ms
	{ echo $FONTS; cat $stem.ms } | pic | tbl | eqn | 
		troff -a -ms -mnihongo

%.pdf:D: %.ps
	ps2pdf $stem.ps $target