10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (c) P.J.Gawthrop, 1990, 1994
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.12 1998/02/09 14:11:08 peterg
## Added ctf --> D(s)
##
## Revision 1.11 1998/01/30 15:15:14 peterg
## Sorted out superscript problem
##
# Revision 1.10 1997/08/19 10:38:26 peterg
|
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (c) P.J.Gawthrop, 1990, 1994
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.13 1998/02/18 09:06:07 peterg
## Added dX0
##
## Revision 1.12 1998/02/09 14:11:08 peterg
## Added ctf --> D(s)
##
## Revision 1.11 1998/01/30 15:15:14 peterg
## Sorted out superscript problem
##
# Revision 1.10 1997/08/19 10:38:26 peterg
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
## Initial revision
##
###############################################################
cat $1 | \
tr "[A-Z]" "[a-z]" | \
sed \
-e "s/_\([a-z0-9]*\)/_{\1}/g" \
-e "s/\// \\\over /g" \
-e "s/[0-9a-z_]*mtty/mtty/g" \
-e "s/[0-9a-z_]*mttu/mttu/g" \
-e "s/mttx\([0-9]*\)/x_{\1}/g" \
-e "s/mttex\([0-9]*\)/\\\chi_{\1}/g" \
-e "s/mttui\([0-9]*\)/v_{\1}/g" \
-e "s/mttu\([0-9]*\)/u_{\1}/g" \
-e "s/mtty\([0-9]*\)/y_{\1}/g" \
-e "s/mttz\([0-9]*\)/z_{\1}/g" \
-e "s/mttdx/\\\dot x/g" \
-e "s/mttdx0/\\\dot x_0/g" \
-e "s/mttdz/\\\dot z_/g" \
-e "s/mttdu/\\\dot u_/g" \
-e "s/dot_/ \\\dot /g" \
-e "s/mtttf/G(s)/g" \
-e "s/mttctf/D(s)/g" \
-e "s/mtta/A/g" \
-e "s/mttb/B/g" \
|
|
<
>
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
## Initial revision
##
###############################################################
cat $1 | \
tr "[A-Z]" "[a-z]" | \
sed \
-e "s/_\([a-z0-9,]*\)/_{\1}/g" \
-e "s/\// \\\over /g" \
-e "s/[0-9a-z_]*mtty/mtty/g" \
-e "s/[0-9a-z_]*mttu/mttu/g" \
-e "s/mttx\([0-9]*\)/x_{\1}/g" \
-e "s/mttex\([0-9]*\)/\\\chi_{\1}/g" \
-e "s/mttui\([0-9]*\)/v_{\1}/g" \
-e "s/mttu\([0-9]*\)/u_{\1}/g" \
-e "s/mtty\([0-9]*\)/y_{\1}/g" \
-e "s/mttz\([0-9]*\)/z_{\1}/g" \
-e "s/mttdx0/\\\dot x_0/g" \
-e "s/mttdx/\\\dot x/g" \
-e "s/mttdz/\\\dot z_/g" \
-e "s/mttdu/\\\dot u_/g" \
-e "s/dot_/ \\\dot /g" \
-e "s/mtttf/G(s)/g" \
-e "s/mttctf/D(s)/g" \
-e "s/mtta/A/g" \
-e "s/mttb/B/g" \
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
-e "s/mu/\\\mu/g" \
-e "s/phi/\\\phi/g" \
-e "s/pi/\\\pi/g" \
-e "s/rho/\\\rho/g" \
-e "s/sigma/\\\sigma/g" \
-e "s/omega/\\\omega/g" \
-e "s/zeta/\\\zeta/g" \
-e "s/infty/\\\infty/g" \
-e "s/sin/\\\sin/g" \
-e "s/cos/\\\cos/g" \
-e "s/23/{23}/g" \
-e "s/+-/ -/g" \
| cat -s | \
sed -e "s/ $//g" | \
|
>
|
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
-e "s/mu/\\\mu/g" \
-e "s/phi/\\\phi/g" \
-e "s/pi/\\\pi/g" \
-e "s/rho/\\\rho/g" \
-e "s/sigma/\\\sigma/g" \
-e "s/omega/\\\omega/g" \
-e "s/zeta/\\\zeta/g" \
-e "s/eta/\\\eta/g" \
-e "s/infty/\\\infty/g" \
-e "s/sin/\\\sin/g" \
-e "s/cos/\\\cos/g" \
-e "s/23/{23}/g" \
-e "s/+-/ -/g" \
| cat -s | \
sed -e "s/ $//g" | \
|