projects
/
problempack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfa168f
)
Add \celsius, \farenheit, and \bareU.
author
W. Trevor King
<wking@drexel.edu>
Fri, 6 May 2011 13:58:36 +0000
(09:58 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 6 May 2011 13:58:36 +0000
(09:58 -0400)
wtk_cmmds.sty
patch
|
blob
|
history
diff --git
a/wtk_cmmds.sty
b/wtk_cmmds.sty
index a89e70f9644be9c92d3cdc22b58a47ea388ae69a..07b65c4007e25e0e4ed1909edff14cbd78db401e 100644
(file)
--- a/
wtk_cmmds.sty
+++ b/
wtk_cmmds.sty
@@
-36,9
+36,12
@@
\newtheorem{lem}{Lemma}
% define a few physics shortcuts
\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{\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
\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} % make vectors bold
\newcommand{\Ohm}{\ensuremath{\Omega}} % units of resistance