Add \celsius, \farenheit, and \bareU.
authorW. Trevor King <wking@drexel.edu>
Fri, 6 May 2011 13:58:36 +0000 (09:58 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 6 May 2011 13:58:36 +0000 (09:58 -0400)
wtk_cmmds.sty

index a89e70f9644be9c92d3cdc22b58a47ea388ae69a..07b65c4007e25e0e4ed1909edff14cbd78db401e 100644 (file)
 \newtheorem{lem}{Lemma}
 
 % define a few physics shortcuts
-\newcommand{\U}[1]{\text{ #1}}                 % units shortcut
+\newcommand{\U}[1]{\textnormal{\ \bareU{#1}}}   % units shortcut
+\newcommand{\bareU}[1]{\textnormal{#1}}         % units without preceding value
 \newcommand{\E}[1]{\ensuremath{\cdot 10 ^{#1}}}        % exponent shortcut
 \newcommand{\dg}{\ensuremath{^{\circ}}}         % degree symbol ^o
+\newcommand{\celsius}{\dg\text{C}}              % degrees Celsius
+\newcommand{\farenheit}{\dg\text{F}}            % degrees Farenheit
 \newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} % make vectors bold
 
 \newcommand{\Ohm}{\ensuremath{\Omega}} % units of resistance