code: mafs

ref: 6aa271cbae26dce3e7e97143420320b51cee7d13
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