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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
<HTML>
<HEAD>
<TITLE>Package mathcmd</TITLE>
</HEAD>
<BODY >
<H1 ALIGN="CENTER">
Package <TT>mathcmd</TT><BR>
<SMALL>
This is version 2.0, last revised 1997/12/20; documentation date 1997/12/20
</SMALL>
</H1>
<P ALIGN="CENTER">
<STRONG>
Author: <I>F. Bosisio</I><BR>
<SMALL>
E-mail: <A HREF="MAILTO:bosisio@mate.polimi.it">
<TT>bosisio@mate.polimi.it</TT>
</A><BR>
Web page: <A HREF="http://ftp.mate.polimi.it/~bosisio/LaTeX">
<TT>http://ftp.mate.polimi.it/~bosisio/LaTeX</TT>
</A><BR>
CTAN location: <A HREF="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/supported/bosisio/">
<TT>CTAN:macros/latex/contrib/supported/bosisio/</TT>
</A>
</SMALL>
</STRONG>
</P>
<P ALIGN="LEFT">
<!------------------------------------------------------------------------>
<P>
<H3>Abstract:</H3>
<DIV>
Documentation for the package <TT>mathcmd</TT>.
</DIV>
<HR><BR>
<!------------------------------------------------------------------------>
<H2>Table of contents</H2>
<P>
<UL> <!-- Beginning of list -->
<LI><A HREF="#SECTION01">Introduction</A>
<LI><A HREF="#SECTION02">The options</A>
<LI><A HREF="#SECTION03">Math-mode commands</A>
<UL> <!-- Beginning of sublist -->
<LI><A HREF="#SECTION03a">The <TT>text</TT> command</A>
<LI><A HREF="#SECTION03b">Commands for doing integrals</A>
<LI><A HREF="#SECTION03c">Commands for making sums</A>
<LI><A HREF="#SECTION03d">Derivatives symbols</A>
<LI><A HREF="#SECTION03e">Arrow-limits commands</A>
<LI><A HREF="#SECTION03f">Vector-operators commands</A>
</UL> <!-- End of sublist -->
</UL> <!-- End of list -->
</P>
<HR><BR>
<!------------------------------------------------------------------------>
<P>
<H2>
<A NAME="SECTION01">Introduction</A>
</H2>
This package provides some useful math-commands which are simpler to use and
prettier then their standard LaTeX counterpart.
<P>
In particular <A HREF="#SECTION03b">the ``<TT>\d</TT>'' command</A> is
redefined, so care should be taken, expecially when including this package
in an already existent LaTeX file.
<P>
The original work of ``<TT>\d</TT>'' (i.e. place a dot under its argument)
is now done by the ``<TT>\UnderDot</TT>'' command.
<H2>
<A NAME="SECTION02">The options</A>
</H2>
<P>
At now, six options are available with the <TT>mathcmd</TT> package, which
comes out in matched pairs.
<P>
The ``<TT>ThreeSubscrSum</TT>'' and ``<TT>TwoSubscrSum</TT>'' options control
the placement of subscripts for
<A HREF="#SECTION03c">the ``<TT>\Sum</TT>'' command</A>: the latter
(which is the default) puts the index under the simbol toghether with the
starting point, while the former puts the index on the lower right corner.
<P>
The ``<TT>ProdVettWedge</TT>'' and ``<TT>ProdVettTimes</TT>'' options
select which symbol is to be used for the
<A HREF="#SECTION03f"><EM>vector product</EM></A>: the first one uses
a ``<TT>\wedge</TT>'' (default), whilst the second uses a ``<TT>\times</TT>".
<P>
Finally, the ``<TT>VectOpStr</TT>'' and ``<TT>VectOpSymb</TT>'' options
controls whether the <A HREF="#SECTION03f">vector-operator commands</A>
``<TT>\Grad</TT>'', ``<TT>\Div</TT>'' and ``<TT>\Rot</TT>'' should produce
a roman string (default) or a ``<TT>\nabla</TT>" symbol followed by an
operator, respectively.
<H2>
<A NAME="SECTION03">Math-mode commands</A>
</H2>
<P>
The <TT>mathcmd</TT> package defines a number of math-mode commands.
<H3>
<A NAME="SECTION03a">The <TT>text</TT> command</A>
</H3>
<P>
The ``<TT>\text...</TT>'' command is defined to be equivalent to
``<TT>\mbox</TT>'' (except when the ``<TT>amstext</TT>" package is also used,
since this package already defines this command in a better way).
<P>
It is intended for inserting pieces of text in a formula.
<H3>
<A NAME="SECTION03b">Commands for doing integrals</A>
</H3>
<P>
The ``<TT>\Int</TT>'' (capitalized) differs from the LaTeX command
``<TT>\int</TT>'' in that it is always printed in <TT>displaystyle</TT> and
if it has only a subscript, this is somewhat lowered so that it looks better.
<PRE>
\Int_{...}^{...} ... \d{...}
</PRE>
<P>
The <A HREF="#SECTION01">``<TT>\d...</TT>'' command</A> is for making the
differential symbol at the end of integrals: it simply prints a ``<TT>d</TT>''
followed by its argument and preceded by a little space, which seems prettier.
<H3>
<A NAME="SECTION03c">Commands for making sums</A>
</H3>
<P>
The ``<TT>\Sum{...=...,...}</TT>'' command works differently, depending on
which option between ``<A HREF="#SECTION02"><TT>TwoSubscrSum</TT></A>''
(default) and ``<A HREF="#SECTION02"><TT>ThreeSubscrSum</TT></A>'' has been
specified.
<P>
In the first case, it expands to
``<TT>\displaystyle\sum_{...}={...}^{...}</TT>'', whereas in the second
case the second and third argument are treated in the same way as before
(i.e. as a subscript and superscript, respectively), but the first argument
(the one before the ``='') is placed near the lower-left edge of the
``<TT>\sum</TT>'' symbol and the ``='' is not printed.
<P>
There is also a ``<TT>\SUM...</TT>'' command which is useful when only a
subscript is desired, irrespectively of the option specified: in fact, it
is equivalent to ``<TT>\displaystyle\sum_...</TT>".
<H3>
<A NAME="SECTION03d">Derivatives symbols</A>
</H3>
<P>
The commands ``<TT>\DerTot{...}{...}</TT>'', ``<TT>\DerPar{...}{...}</TT>'' and
``<TT>\DerNorm{...}</TT>'' generate the symbols of total derivative, partial
derivative and normal derivative, respectively.
<P>
In other words, they are the same as:
<PRE>
\displaystyle\frac{d...}{d...}
\displaystyle\frac{\partial ...}{\partial ...}
\displaystyle\frac{\partial ...}{\partial n}
</PRE>
<H3>
<A NAME="SECTION03e">Arrow-limits commands</A>
</H3>
<P>
The command ``<TT>\TendsTo[...,...]</TT>'' generates a right-arrow with
optionally an underscript wich is another smaller right-arrow between the
two comma-separeted arguments inside the square brackets.
<P>
For example, the command ``<TT>f(x) \TendsTo[x,0] 1</TT>'' generates
the following output:
<PRE>
f(x) ----------> 1
x --> 0
</PRE>
<H3>
<A NAME="SECTION03f">Vector-operators commands</A>
</H3>
<P>
Finally, the commands ``<TT>\Grad</TT>'', ``<TT>\Div</TT>'' and
``<TT>\Rot</TT>'' generates the strings ``grad'', ``div'' and ``rot''
in roman type and with small spaces added before and after, if the
``<A HREF="#SECTION02">VectOpStr</A>'' option is in effect (default).
If, instead, the option ``<A HREF="#SECTION02">VectOpSymb</A>'' was specified,
they generate ``<TT>\nabla</TT>", ``<TT>\nabla\cdot</TT>'' and
``<TT>\nabla\ProdVett</TT>'' respectively.
<P>
The command ``<TT>\ProdVett</TT>'' is intended for making the symbol of
vector product, and evaluates to ``<TT>\times</TT>'' with the option
``<A HREF="#SECTION02">ProdVettTimes</A>'' and to ``<TT>\wedge</TT>''
with the (default) option ``<A HREF="#SECTION02">ProdVettWedge</A>''.
<HR><BR>
<!------------------------------------------------------------------------>
<ADDRESS>
<I>Francesco Bosisio</I><BR>
E-mail: <A HREF="MAILTO:bosisio@mate.polimi.it">
<TT>bosisio@mate.polimi.it</TT>
</A><BR>
Web page: <A HREF="http://ftp.mate.polimi.it/~bosisio/LaTeX">
<TT>http://ftp.mate.polimi.it/~bosisio/LaTeX</TT>
</A>
</ADDRESS>
<!------------------------------------------------------------------------>
</BODY>
</HTML>
|