% % % lmmath.sty % (c) 2001 Ben Crowell, GFDL licensed % % These are mainly convenience macros for typesetting math. % Also, there's some stuff for typesetting math in sans serif --- % as discussed Aug 2001 on comp.text.tex, there is supposed to be a better % way to handle sans serif math. However, I can't figure out how to do it! % % %================================ math ================================ %-------------------- differentials, vectors not in italics, units ------------------- \newcommand{\der}{\textup{d}} \newcommand{\divg}{\textup{div}\:} \newcommand{\curl}{\textup{curl}} \newcommand{\myvec}[1]{\mathbf{#1}} % Use /vc{} instead. \newcommand{\myunit}[1]{\textup{#1}} \newcommand{\kgunit}{\myunit{kg}} \newcommand{\gunit}{\myunit{g}} \newcommand{\munit}{\myunit{m}} \newcommand{\sunit}{\myunit{s}} \newcommand{\degunit}{\ensuremath{\,^{\circ}}} \newcommand{\degcunit}{\degunit\textup{C}} \newcommand{\junit}{\myunit{J}} \newcommand{\nunit}{\myunit{N}} \newcommand{\kunit}{\myunit{K}} \newcommand{\unitdot}{\!\cdot\!} \newcommand{\momunit}{\kgunit\unitdot\munit/\sunit} \newcommand{\btheta}{\boldsymbol{\theta}} \newcommand{\bomega}{\boldsymbol{\omega}} \newcommand{\balpha}{\boldsymbol{\alpha}} \newcommand{\btau}{\boldsymbol{\tau}} \newcommand{\bell}{\boldsymbol{\ell}} %-------------------- math in sans-serif text ------------------- % $...\zs{x}...$ -- italic, for use when I need symbol font mixed in % $...\zu{x}...$ -- upright, e.g. for digits and things in sans % See DeclareMathAlphabet near top, and p. 177 of LaTeX companion, for \ms{}. % Note: don't put superscripts or subscripts inside these, or any math commands % at all. % They can all be used outside of math mode in examples or other sans-serif % text, but won't necessarily produce the right results in serif text, % since zs forces sans serif. So when cutting and pasting from example text % into serif text, have to change zs's. \newcommand{\zs}[1]{\ensuremath{\ms{#1}}} \newcommand{\zu}[1]{\textup{#1}} \newcommand{\zb}[1]{\textbf{#1}}