X-Git-Url: http://git.tremily.us/?p=problempack.git;a=blobdiff_plain;f=wtk_cmmds.sty;fp=wtk_cmmds.sty;h=70d8f4a67d4ee81867cdbc0a3915d4a89658e4ec;hp=b249634d22ba3312fb6362e1a9140d0a6c72066c;hb=f4e35cdc3ed4180acadc8d9e10c8229e61c11af9;hpb=a13d33b013dd1d0f8dcfffe90d0a17915a5859c5 diff --git a/wtk_cmmds.sty b/wtk_cmmds.sty index b249634..70d8f4a 100644 --- a/wtk_cmmds.sty +++ b/wtk_cmmds.sty @@ -36,7 +36,8 @@ \newtheorem{lem}{Lemma} % define a few physics shortcuts -\newcommand{\U}[1]{\textnormal{\ \bareU{#1}}} % units shortcut +\newcommand{\unit}[1]{\textnormal{\ \bareU{#1}}} % units shortcut +\providecommand{\U}[1]{\unit{#1}} \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