Debian Codegraph @

examples/mf/mftest

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # mftest -- script to test the mf version of a single picture file
3 #
4 # Usage: mftest file
5 #
6 # e.g. copy ex01.m4 here and type ./mftest ex01
7 # Invokes m4 on file.m4, and builds the resulting picture in file.ps
8
9 LIBS=mfpic.m4
10 MODE=ljfzzz
11
12 echoscip-shell system . . echo. "\documentclass{article}
13 \usepackage[amssymb,Gray,thinqspace,textstyle]{SIunits}
14 \usepackage{mfpic}
15 &begin{document}
16 \opengraphsfile{"$1"mfpic}
17 %{This is a test of the -m option of dpic (mfpic output).}" \
18 | trscip-shell system . . tr. '\046' '\134' > $1.tex
19
20 m4scip-shell system . . m4. -B16000 $LIBS $1.m4 | dpic -m >> $1.tex
21
22 echoscip-shell system . . echo. "
23 &closegraphsfile
24 \end{document}" | trscip-shell system . . tr. '\046' '\134' >> $1.tex
25
26 echoscip-shell system . . echo. "
27 latex "$1
28 latex $1
29 echoscip-shell system . . echo. "
30 mf \mode:=$MODE; scrollmode; input $1""mfpic < /dev/null"
31 mf "\mode:="$MODE"; scrollmode; input "$1mfpic < /dev/nullscip-shell filesystem . . `/dev/null`.
32 echoscip-shell system . . echo. "
33 gftopk:"
34 lsscip-shell system . . ls. $1mfpic.*gf | sedscip-shell system . . sed. -e 's/^/gftopk /' \
35 -e "s/$1mfpic.\([0-9]*\)gf/$1mfpic.\1gf $1mfpic.\1pk/" | shscip-shell system . . sh.
36 lsscip-shell system . . ls. $1mfpic.*gf $1mfpic.*pk
37 cpscip-shell system . . cp. $1mfpic.*pk $1mfpic.pk
38 echoscip-shell system . . echo. "
39 TEXFORMATS=.: TEXFONTS=.: latex $1"
40 TEXFORMATS=.: TEXFONTS=.: latex $1
41 echoscip-shell system . . echo. "
42 TEXPKS=.: dvips -M1 -P$MODE $1 -o"
43 TEXPKS=.: dvips -M1 -P$MODE $1 -o