From: W. Trevor King Date: Fri, 6 May 2011 13:58:36 +0000 (-0400) Subject: Add \celsius, \farenheit, and \bareU. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c6af47f1dce5f29481523b39521a7b53a9a05d88;p=problempack.git Add \celsius, \farenheit, and \bareU. --- diff --git a/wtk_cmmds.sty b/wtk_cmmds.sty index a89e70f..07b65c4 100644 --- a/wtk_cmmds.sty +++ b/wtk_cmmds.sty @@ -36,9 +36,12 @@ \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