| 1 |
<html> |
| 2 |
<!-- |
| 3 |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |
| 4 |
| Copyright(C) 1997-2010 by F. Bosisio | |
| 5 |
| | |
| 6 |
| This program can be redistributed and/or modified under | |
| 7 |
| the terms of the LaTeX Project Public License, either | |
| 8 |
| version 1.3 of this license or (at your option) any later | |
| 9 |
| version. The latest version of this license is in | |
| 10 |
| http://www.latex-project.org/lppl.txt | |
| 11 |
| and version 1.3 or later is part of all LaTeX distributions | |
| 12 |
| version 2005/12/01 or later. | |
| 13 |
| | |
| 14 |
| This work has the LPPL maintenance status `maintained'. | |
| 15 |
| The Current Maintainer of this work is F. Bosisio. | |
| 16 |
| | |
| 17 |
| This work consists of files mathcmd.dtx and mathcmd.html | |
| 18 |
| and of the derived files mathcmd.sty and mathcmd.pdf. | |
| 19 |
| | |
| 20 |
| E-mail: [email protected] | |
| 21 |
| CTAN location: macros/latex/contrib/bosisio/ | |
| 22 |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |
| 23 |
--> |
| 24 |
<head> |
| 25 |
<title>Package mathcmd</title> |
| 26 |
</head> |
| 27 |
<body> |
| 28 |
|
| 29 |
<h1 align="CENTER"> |
| 30 |
Package <tt>mathcmd</tt><br /> |
| 31 |
<small> |
| 32 |
This is version 2.2, last revised 1997/12/20; documentation date 2005/04/09. |
| 33 |
</small> |
| 34 |
</h1> |
| 35 |
|
| 36 |
<p align="CENTER"> |
| 37 |
<strong> |
| 38 |
Author: <i>F. Bosisio</i><br /> |
| 39 |
<small> |
| 40 |
E-mail: <a href="mailto:[email protected]"> |
| 41 |
<tt>[email protected]</tt> |
| 42 |
</a><br /> |
| 43 |
CTAN location: <a href="http://mirror.ctan.org/macros/latex/contrib/bosisio"> |
| 44 |
<tt>macros/latex/contrib/bosisio</tt> |
| 45 |
</a> |
| 46 |
</small> |
| 47 |
</strong> |
| 48 |
</p> |
| 49 |
|
| 50 |
<p align="LEFT"> |
| 51 |
<!------------------------------------------------------------------------> |
| 52 |
<p> |
| 53 |
|
| 54 |
<h3>Abstract:</h3> |
| 55 |
<div> |
| 56 |
Documentation for the package <tt>mathcmd</tt>. |
| 57 |
</div> |
| 58 |
|
| 59 |
<hr /><br /> |
| 60 |
<!------------------------------------------------------------------------> |
| 61 |
|
| 62 |
<h2>Table of contents</h2> |
| 63 |
|
| 64 |
<ul> |
| 65 |
<li><a href="#SECTION01">Introduction</a></li> |
| 66 |
<li><a href="#SECTION02">The options</a></li> |
| 67 |
<li><a href="#SECTION03">Math-mode commands</a> |
| 68 |
<ul> |
| 69 |
<li><a href="#SECTION03a">The <tt>text</tt> command</a></li> |
| 70 |
<li><a href="#SECTION03b">Commands for doing integrals</a></li> |
| 71 |
<li><a href="#SECTION03c">Commands for making sums</a></li> |
| 72 |
<li><a href="#SECTION03d">Derivatives symbols</a></li> |
| 73 |
<li><a href="#SECTION03e">Arrow-limits commands</a></li> |
| 74 |
<li><a href="#SECTION03f">Vector-operators commands</a></li> |
| 75 |
</ul></li> |
| 76 |
</ul> |
| 77 |
|
| 78 |
<hr /><br /> |
| 79 |
<!------------------------------------------------------------------------> |
| 80 |
<p> |
| 81 |
|
| 82 |
<h2> |
| 83 |
<a name="SECTION01">Introduction</a> |
| 84 |
</h2> |
| 85 |
This package provides some useful math-commands which are simpler to use and |
| 86 |
prettier then their standard LaTeX counterpart. |
| 87 |
|
| 88 |
<p> |
| 89 |
In particular <a href="#SECTION03b">the ``<tt>\d</tt>'' command</a> is |
| 90 |
redefined, so care should be taken, expecially when including this package |
| 91 |
in an already existent LaTeX file. |
| 92 |
|
| 93 |
<p> |
| 94 |
The original work of ``<tt>\d</tt>'' (i.e. place a dot under its argument) |
| 95 |
is now done by the ``<tt>\UnderDot</tt>'' command. |
| 96 |
|
| 97 |
<h2> |
| 98 |
<a name="SECTION02">The options</a> |
| 99 |
</h2> |
| 100 |
|
| 101 |
<p> |
| 102 |
At now, six options are available with the <tt>mathcmd</tt> package, which |
| 103 |
comes out in matched pairs. |
| 104 |
|
| 105 |
<p> |
| 106 |
The ``<tt>ThreeSubscrSum</tt>'' and ``<tt>TwoSubscrSum</tt>'' options control |
| 107 |
the placement of subscripts for |
| 108 |
<a href="#SECTION03c">the ``<tt>\Sum</tt>'' command</a>: the latter |
| 109 |
(which is the default) puts the index under the simbol toghether with the |
| 110 |
starting point, while the former puts the index on the lower right corner. |
| 111 |
|
| 112 |
<p> |
| 113 |
The ``<tt>ProdVettWedge</tt>'' and ``<tt>ProdVettTimes</tt>'' options |
| 114 |
select which symbol is to be used for the |
| 115 |
<a href="#SECTION03f"><em>vector product</em></a>: the first one uses |
| 116 |
a ``<tt>\wedge</tt>'' (default), whilst the second uses a ``<tt>\times</tt>". |
| 117 |
|
| 118 |
<p> |
| 119 |
Finally, the ``<tt>VectOpStr</tt>'' and ``<tt>VectOpSymb</tt>'' options |
| 120 |
controls whether the <a href="#SECTION03f">vector-operator commands</a> |
| 121 |
``<tt>\Grad</tt>'', ``<tt>\Div</tt>'' and ``<tt>\Rot</tt>'' should produce |
| 122 |
a roman string (default) or a ``<tt>\nabla</tt>" symbol followed by an |
| 123 |
operator, respectively. |
| 124 |
|
| 125 |
<h2> |
| 126 |
<a name="SECTION03">Math-mode commands</a> |
| 127 |
</h2> |
| 128 |
|
| 129 |
<p> |
| 130 |
The <tt>mathcmd</tt> package defines a number of math-mode commands. |
| 131 |
|
| 132 |
<h3> |
| 133 |
<a name="SECTION03a">The <tt>text</tt> command</a> |
| 134 |
</h3> |
| 135 |
|
| 136 |
<p> |
| 137 |
The ``<tt>\text...</tt>'' command is defined to be equivalent to |
| 138 |
``<tt>\mbox</tt>'' (except when the ``<tt>amstext</tt>" package is also used, |
| 139 |
since this package already defines this command in a better way). |
| 140 |
|
| 141 |
<p> |
| 142 |
It is intended for inserting pieces of text in a formula. |
| 143 |
|
| 144 |
<h3> |
| 145 |
<a name="SECTION03b">Commands for doing integrals</a> |
| 146 |
</h3> |
| 147 |
|
| 148 |
<p> |
| 149 |
The ``<tt>\Int</tt>'' (capitalized) differs from the LaTeX command |
| 150 |
``<tt>\int</tt>'' in that it is always printed in <tt>displaystyle</tt> and |
| 151 |
if it has only a subscript, this is somewhat lowered so that it looks better. |
| 152 |
<pre> |
| 153 |
\Int_{...}^{...} ... \d{...} |
| 154 |
</pre> |
| 155 |
|
| 156 |
<p> |
| 157 |
The <a href="#SECTION01">``<tt>\d...</tt>'' command</a> is for making the |
| 158 |
differential symbol at the end of integrals: it simply prints a ``<tt>d</tt>'' |
| 159 |
followed by its argument and preceded by a little space, which seems prettier. |
| 160 |
|
| 161 |
<h3> |
| 162 |
<a name="SECTION03c">Commands for making sums</a> |
| 163 |
</h3> |
| 164 |
|
| 165 |
<p> |
| 166 |
The ``<tt>\Sum{...=...,...}</tt>'' command works differently, depending on |
| 167 |
which option between ``<a href="#SECTION02"><tt>TwoSubscrSum</tt></a>'' |
| 168 |
(default) and ``<a href="#SECTION02"><tt>ThreeSubscrSum</tt></a>'' has been |
| 169 |
specified. |
| 170 |
|
| 171 |
<p> |
| 172 |
In the first case, it expands to |
| 173 |
``<tt>\displaystyle\sum_{...}={...}^{...}</tt>'', whereas in the second |
| 174 |
case the second and third argument are treated in the same way as before |
| 175 |
(i.e. as a subscript and superscript, respectively), but the first argument |
| 176 |
(the one before the ``='') is placed near the lower-left edge of the |
| 177 |
``<tt>\sum</tt>'' symbol and the ``='' is not printed. |
| 178 |
|
| 179 |
<p> |
| 180 |
There is also a ``<tt>\SUM...</tt>'' command which is useful when only a |
| 181 |
subscript is desired, irrespectively of the option specified: in fact, it |
| 182 |
is equivalent to ``<tt>\displaystyle\sum_...</tt>". |
| 183 |
|
| 184 |
<h3> |
| 185 |
<a name="SECTION03d">Derivatives symbols</a> |
| 186 |
</h3> |
| 187 |
|
| 188 |
<p> |
| 189 |
The commands ``<tt>\DerTot{...}{...}</tt>'', ``<tt>\DerPar{...}{...}</tt>'' and |
| 190 |
``<tt>\DerNorm{...}</tt>'' generate the symbols of total derivative, partial |
| 191 |
derivative and normal derivative, respectively. |
| 192 |
|
| 193 |
<p> |
| 194 |
In other words, they are the same as: |
| 195 |
<pre> |
| 196 |
\displaystyle\frac{d...}{d...} |
| 197 |
\displaystyle\frac{\partial ...}{\partial ...} |
| 198 |
\displaystyle\frac{\partial ...}{\partial n} |
| 199 |
</pre> |
| 200 |
|
| 201 |
<h3> |
| 202 |
<a name="SECTION03e">Arrow-limits commands</a> |
| 203 |
</h3> |
| 204 |
|
| 205 |
<p> |
| 206 |
The command ``<tt>\TendsTo[...,...]</tt>'' generates a right-arrow with |
| 207 |
optionally an underscript wich is another smaller right-arrow between the |
| 208 |
two comma-separeted arguments inside the square brackets. |
| 209 |
|
| 210 |
<p> |
| 211 |
For example, the command ``<tt>f(x) \TendsTo[x,0] 1</tt>'' generates |
| 212 |
the following output: |
| 213 |
<pre> |
| 214 |
f(x) ----------> 1 |
| 215 |
x --> 0 |
| 216 |
</pre> |
| 217 |
|
| 218 |
<h3> |
| 219 |
<a name="SECTION03f">Vector-operators commands</a> |
| 220 |
</h3> |
| 221 |
|
| 222 |
<p> |
| 223 |
Finally, the commands ``<tt>\Grad</tt>'', ``<tt>\Div</tt>'' and |
| 224 |
``<tt>\Rot</tt>'' generates the strings ``grad'', ``div'' and ``rot'' |
| 225 |
in roman type and with small spaces added before and after, if the |
| 226 |
``<a href="#SECTION02">VectOpStr</a>'' option is in effect (default). |
| 227 |
If, instead, the option ``<a href="#SECTION02">VectOpSymb</a>'' was specified, |
| 228 |
they generate ``<tt>\nabla</tt>", ``<tt>\nabla\cdot</tt>'' and |
| 229 |
``<tt>\nabla\ProdVett</tt>'' respectively. |
| 230 |
|
| 231 |
<p> |
| 232 |
The command ``<tt>\ProdVett</tt>'' is intended for making the symbol of |
| 233 |
vector product, and evaluates to ``<tt>\times</tt>'' with the option |
| 234 |
``<a href="#SECTION02">ProdVettTimes</a>'' and to ``<tt>\wedge</tt>'' |
| 235 |
with the (default) option ``<a href="#SECTION02">ProdVettWedge</a>''. |
| 236 |
|
| 237 |
<hr /><br /> |
| 238 |
<!------------------------------------------------------------------------> |
| 239 |
|
| 240 |
<address> |
| 241 |
<i>F. Bosisio</i><br /> |
| 242 |
E-mail: <a href="mailto:[email protected]"><tt>[email protected]</tt></a> |
| 243 |
</address> |
| 244 |
|
| 245 |
<!------------------------------------------------------------------------> |
| 246 |
|
| 247 |
</body> |
| 248 |
</html> |