From c1881c5c5344914a46d0f06387afcb78981a85c5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 27 Jan 2020 21:56:05 +0000 Subject: physunits (27jan20) git-svn-id: svn://tug.org/texlive/trunk@53574 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/physunits/physunits.sty | 201 +++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/physunits/physunits.sty (limited to 'Master/texmf-dist/tex/latex/physunits') diff --git a/Master/texmf-dist/tex/latex/physunits/physunits.sty b/Master/texmf-dist/tex/latex/physunits/physunits.sty new file mode 100644 index 00000000000..c84b78b9d9b --- /dev/null +++ b/Master/texmf-dist/tex/latex/physunits/physunits.sty @@ -0,0 +1,201 @@ +%% +%% 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 +%% +%% 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/01/26 v1.0.3 Physical units package] +\ProcessOptions\relax + + +\makeatletter +\DeclareRobustCommand{\units@separator}{\,} +\DeclareRobustCommand{\micro}{\ensuremath{% +\mu}} +\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}[1]{\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{\Celcius}{^\circ\ensuremath{% +\expandafter\units@separator\mathrm{C}}} +\DeclareRobustCommand{\Rankine}{^\circ\ensuremath{% +\expandafter\units@separator\mathrm{R}}} +\DeclareRobustCommand{\Fahrenheit}{^\circ\ensuremath{% +\expandafter\units@separator\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'. -- cgit v1.2.3