blob: 99a4dd3415fa99448e7bb27cf6c7fb4abfe08cea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
%%
%% This is file `physunits.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% physunits.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright (C) 2020 by Brian W. Mulligan <bwmulligan@astronaos.com>
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3c of this license
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2006/05/20 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{physunits}
[2020/03/26 v1.2.0 Physical units package]
\ProcessOptions\relax
\makeatletter
\DeclareRobustCommand{\units@separator}{\,}
\ifx\micro\undefined
\DeclareRobustCommand{\micro}{\ensuremath{%
\mu}}
\fi
\DeclareRobustCommand{\V}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1V}}}
\DeclareRobustCommand{\Volt}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1V}}}
\DeclareRobustCommand{\Coulomb}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1C}}}
\DeclareRobustCommand{\esu}{\ensuremath{%
\expandafter\units@separator\mathrm{esu}}}
\DeclareRobustCommand{\Ohm}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1\Omega}}}
\DeclareRobustCommand{\Amp}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1A}}}
\DeclareRobustCommand{\Farad}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1F}}}
\DeclareRobustCommand{\Tesla}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1T}}}
\DeclareRobustCommand{\Gauss}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1G}}}
\DeclareRobustCommand{\Henry}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1H}}}
\DeclareRobustCommand{\eV}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1eV}}}
\DeclareRobustCommand{\keV}{\ensuremath{%
\expandafter\units@separator\mathrm{keV}}}
\DeclareRobustCommand{\MeV}{\ensuremath{%
\expandafter\units@separator\mathrm{MeV}}}
\DeclareRobustCommand{\J}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1J}}}
\DeclareRobustCommand{\Joule}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1J}}}
\DeclareRobustCommand{\erg}{\ensuremath{%
\expandafter\units@separator\mathrm{erg}}}
\DeclareRobustCommand{\kcal}{\ensuremath{%
\expandafter\units@separator\mathrm{kcal}}}
\DeclareRobustCommand{\Cal}{\ensuremath{%
\expandafter\units@separator\mathrm{Cal}}}
\DeclareRobustCommand{\calorie}[1][ ]{%
\ensuremath{%
\expandafter\units@separator\mathrm{#1cal}}}
\DeclareRobustCommand{\BTU}{\ensuremath{%
\expandafter\units@separator\mathrm{BTU}}}
\DeclareRobustCommand{\tnt}{\ensuremath{%
\expandafter\units@separator\mathrm{ton%
\expandafter\units@separator of%
\expandafter\units@separator TNT}}}
\DeclareRobustCommand{\Watt}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1W}}}
\DeclareRobustCommand{\hpi}{\ensuremath{%
\expandafter\units@separator\mathrm{hp(I)}}}
\DeclareRobustCommand{\hpm}{\ensuremath{%
\expandafter\units@separator\mathrm{hp(M)}}}
\DeclareRobustCommand{\hp}{\ensuremath{%
\expandafter\units@separator\mathrm{hp}}}
\DeclareRobustCommand{\meter}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1m}}}
\DeclareRobustCommand{\m}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1m}}}
\DeclareRobustCommand{\km}{\ensuremath{%
\expandafter\units@separator\mathrm{km}}}
\DeclareRobustCommand{\au}{\ensuremath{%
\expandafter\units@separator\mathrm{au}}}
\DeclareRobustCommand{\pc}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1pc}}}
\DeclareRobustCommand{\ly}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1ly}}}
\DeclareRobustCommand{\cm}{\ensuremath{%
\expandafter\units@separator\mathrm{cm}}}
\DeclareRobustCommand{\nm}{\ensuremath{%
\expandafter\units@separator\mathrm{nm}}}
\DeclareRobustCommand{\ft}{\ensuremath{%
\expandafter\units@separator\mathrm{ft}}}
\DeclareRobustCommand{\inch}{\ensuremath{%
\expandafter\units@separator\mathrm{in}}}
\DeclareRobustCommand{\mi}{\ensuremath{%
\expandafter\units@separator\mathrm{mi}}}
\DeclareRobustCommand{\s}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1s}}}
\DeclareRobustCommand{\Sec}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1s}}}
\DeclareRobustCommand{\Min}{\ensuremath{%
\expandafter\units@separator\mathrm{min}}}
\DeclareRobustCommand{\h}{\ensuremath{%
\expandafter\units@separator\mathrm{h}}}
\DeclareRobustCommand{\y}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1y}}}
\DeclareRobustCommand{\Day}{\ensuremath{%
\expandafter\units@separator\mathrm{d}}}
\DeclareRobustCommand{\gm}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1g}}}
\DeclareRobustCommand{\kg}{\ensuremath{%
\expandafter\units@separator\mathrm{kg}}}
\DeclareRobustCommand{\lb}{\ensuremath{%
\expandafter\units@separator\mathrm{lb}}}
\DeclareRobustCommand{\amu}{\ensuremath{%
\expandafter\units@separator\mathrm{amu}}}
\DeclareRobustCommand{\N}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1N}}}
\DeclareRobustCommand{\Newton}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1N}}}
\DeclareRobustCommand{\dyne}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1dyn}}}
\DeclareRobustCommand{\lbf}{\ensuremath{%
\expandafter\units@separator\mathrm{lbf}}}
\DeclareRobustCommand{\kmps}{\ensuremath{%
\expandafter\units@separator\mathrm{km}%
\expandafter\units@separator\mathrm{s}^{-1}}}
\DeclareRobustCommand{\kmph}{\ensuremath{%
\expandafter\units@separator\mathrm{km}%
\expandafter\units@separator\mathrm{h}^{-1}}}
\DeclareRobustCommand{\mps}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1m}%
\expandafter\units@separator\mathrm{s}^{-1}}}
\DeclareRobustCommand{\miph}{\ensuremath{%
\expandafter\units@separator\mathrm{mi}%
\expandafter\units@separator\mathrm{h}^{-1}}}
\DeclareRobustCommand{\kts}{\ensuremath{%
\expandafter\units@separator\mathrm{kts}}}
\DeclareRobustCommand{\mpss}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1m}%
\expandafter\units@separator\mathrm{s}^{-2}}}
\DeclareRobustCommand{\gacc}{\ensuremath{%
\expandafter\units@separator\mathrm{g}}}
\DeclareRobustCommand{\ftpss}{\ensuremath{%
\expandafter\units@separator\mathrm{ft}%
\expandafter\units@separator\mathrm{s}^{-2}}}
\DeclareRobustCommand{\K}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1K}}}
\DeclareRobustCommand{\Kelvin}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1K}}}
\DeclareRobustCommand{\Celsius}{\ensuremath{\expandafter\units@separator{}%
^\circ\mathrm{C}}}
\DeclareRobustCommand{\Celcius}{\Celsius}
\DeclareRobustCommand{\centigrade}{\Celsius}
\DeclareRobustCommand{\Rankine}{\ensuremath{%
\expandafter\units@separator{}^\circ\mathrm{R}}}
\DeclareRobustCommand{\Fahrenheit}{\ensuremath{%
\expandafter\units@separator{}^\circ\mathrm{F}}}
\DeclareRobustCommand{\rpm}{\ensuremath{%
\expandafter\units@separator\mathrm{rev}%
\expandafter\units@separator\Min^{-1}}}
\DeclareRobustCommand{\Hz}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1Hz}}}
\DeclareRobustCommand{\barP}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1bar}}}
\DeclareRobustCommand{\atm}{\ensuremath{%
\expandafter\units@separator\mathrm{atm}}}
\DeclareRobustCommand{\Pa}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1Pa}}}
\DeclareRobustCommand{\mmHg}{\ensuremath{%
\expandafter\units@separator\mathrm{mmHg}}}
\DeclareRobustCommand{\inHg}{\ensuremath{%
\expandafter\units@separator\mathrm{inHg}}}
\DeclareRobustCommand{\lbsi}{\ensuremath{%
\expandafter\units@separator\mathrm{psi}}}
\DeclareRobustCommand{\lbsf}{\ensuremath{%
\expandafter\units@separator\mathrm{psf}}}
\DeclareRobustCommand{\Ba}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1Ba}}}
\DeclareRobustCommand{\Torr}[1][ ]{\ensuremath{%
\expandafter\units@separator\mathrm{#1Torr}}}
\DeclareRobustCommand{\mol}{\ensuremath{%
\expandafter\units@separator\mathrm{mol}}}
\makeatother
\endinput
%%
%% End of file `physunits.sty'.
|