1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
% file `diffcoeff.def'
% variant forms of derivative
% 2018-11-12
% Andrew Parsloe ajparsloe@gmail.com
%
% paren, up, Up, wrapall, nabla, left, svrule
% pvrule, padrift, psqbra, pDelta, pleft, ptxt, pscr
%%%%%%%%%% ordinary %%%%%%%%%%
% ( ) for pt of eval.
\diffdef { paren }
{
left-delim = \left ( ,
right-delim = \right ),
subscr-nudge = -6 mu
}
% upright
\diffdef { up }
{
op-symbol = \mathrm{d},
op-order-sep = 0 mu ,
/-op-order-sep = 0 mu
}
\diffdef { Up }
{
op-symbol = \mathrm{D},
op-order-sep = 0 mu ,
/-op-order-sep = 0 mu
}
% wrap long vars: (d longvar)
\diffdef { wrapall } {long-var-wrap = (dv)}
% nabla in numerator, d in denominator
\diffdef { nabla }
{
op-symbol = \nabla,
op-symbol-alt = d
}
% align op left; no italic nudge
\diffdef { left }
{
*-op-left = true,
*-italic-nudge = 0 mu
}
% slash-form: vrule for pt of eval
\diffdef { svrule }
{
/-left-delim = ,
/-right-delim = |
}
%%%%%%%%%% partial %%%%%%%%%%
% partial, vrule for pt of eval.
\diffdef { pvrule } { op-symbol = \partial }
% partial, no subscr nudge (adrift in a sea of white space)
\diffdef { padrift }
{
op-symbol = \partial,
left-delim = \left ( ,
right-delim = \right ),
subscr-nudge = 0 mu
}
% partial, [ ] for pt of eval.
\diffdef { psqbra }
{
op-symbol = \partial,
left-delim = \left [ ,
right-delim = \right ],
subscr-nudge = 0 mu
}
% Delta as partial deriv.
\diffdef { pDelta }
{
op-symbol = \Delta ,
op-order-sep = 0 mu ,
/-op-order-sep = 0 mu ,
left-delim = \left ( ,
right-delim = \right ),
subscr-nudge = -6 mu
}
% align op left; italic nudge
\diffdef { pleft }
{
op-symbol = \partial,
*-op-left = true ,
*-italic-nudge = 3 mu ,
left-delim = \left ( ,
right-delim = \right ),
subscr-nudge = -3 mu
}
% partial, textstyle
\diffdef { ptxt }
{
op-symbol = \partial,
denom-term-sep = 1 mu ,
left-delim = \left ( ,
right-delim = \right ),
elbowroom = -2 mu ,
subscr-nudge = -3 mu
}
% partial, wide sep of terms
\diffdef { pwide }
{
op-symbol = \partial,
denom-term-sep = 3 mu ,
/-denom-term-sep = 3 mu ,
left-delim = \left ( ,
right-delim = \right ),
subscr-nudge = -6 mu
}
|