From c6af47f1dce5f29481523b39521a7b53a9a05d88 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 6 May 2011 09:58:36 -0400 Subject: [PATCH] Add \celsius, \farenheit, and \bareU. --- wtk_cmmds.sty | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.26.2