%- ---------- UNITS ----------------------------------------------------
% Below the following Unit commands are defined Use this commands
% when to typeset units 
%
% Multiples and Sub-multiples
% \Uhecto, \Ukilo, \Umega, \Ugiga 
% \Udeci, \Ucenti, \Umilli, \Umicro, \Unano, \Upico, \Ufempto
%
% "Basic" Units
% 
% \Us   %second
% \Um   %meter
% \UV   %Volt
% \UF   %Farad
% \UA   %Ampere
% \UT   %Telsa
% \UOhm %Ohms
% \UH   %Henry
% \UHz  %Hertz
% \UPa  %Pascals
% \UJ   %Joules
% \UC   %Coulomb
% \Ukg  %kilogram
% \Umol %mol
% \UK   %Kelvins
% \Bq   %Bequerel (1 decay/second)
% \Ci   %Curie (3.7 E10 Bq)
%
% Derived.
%
% Multiples and Sub-multiples commonly used .
%
% \Unanom % nanometers
% \Umicron % microns
% \Umm % millimiters
% \Ucm % centimeters
% \Ukm % kilometers
% \UhPa % hecto-Pascals
%
% \UmicroF %microfarads
% \UmilliV %millivolts
%
% \UkiloOhm %kilohertz
% \UkiloHz %kilohertz
% \UWb %Weber % kg m^2 s^{-2} A^{-1} 
%
% \UmicroCi %micro-Curie
%
% Common Combinations
%
% \Umps %meter per second
% \Upcm %per cubic meter
%
%
% Common non-SI units
% \Uliter %per cubic meter
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Commands Definitions for the above Units Follow:
%
% Powers are made with
\newcommand{\Upow}[2]{\ensuremath{{#1}^{#2}}}  %e.g \Upow{\Ucm}{-2} 
\newcommand{\Upt}[1]{\ensuremath{\times\,10^{#1}}}
\newcommand{\Usci}[2]{\ensuremath{#1\,\times\,10^{#2}}}

%
% Decimal multiples and sub-multiples of units.
% Recall that the combination of prefix and unit symbol 
% must be treated single symbol; specially when raised to a power.
%
\newcommand{\Umul}[2]{\ensuremath{{#1}{#2}}}     %e.g \Umul{Ukilo}{\Ucm} 
%
% Codes for Multiples --APS
\newcommand{\Uhecto}{\ensuremath{{\mathrm{h}}}}   
\newcommand{\Ukilo}{\ensuremath{{\mathrm{k}}}}   
\newcommand{\Umega}{\ensuremath{{\mathrm{M}}}}   
\newcommand{\Ugiga}{\ensuremath{{\mathrm{G}}}}   
% Codes for  Sub Multiples --APS
\newcommand{\Udeci}{\ensuremath{{\mathrm{d}}}}   
\newcommand{\Ucenti}{\ensuremath{{\mathrm{c}}}}   
\newcommand{\Umilli}{\ensuremath{{\mathrm{m}}}}   
\newcommand{\Umicro}{\ensuremath{\mu}}   
\newcommand{\Unano}{\ensuremath{{\mathrm{n}}}}   
\newcommand{\Upico}{\ensuremath{{\mathrm{p}}}}   
\newcommand{\Ufempto}{\ensuremath{{\mathrm{f}}}}   
%
% Basic Units
% 
\newcommand{\Us}{\ensuremath{\mathrm{s}}}    %second
\newcommand{\Um}{\ensuremath{\mathrm{m}}}    %meter
\newcommand{\UV}{\ensuremath{\mathrm{V}}}    %Volt
\newcommand{\UF}{\ensuremath{\mathrm{F}}}    %Farad
\newcommand{\UA}{\ensuremath{\mathrm{A}}}    %Ampere
\newcommand{\UT}{\ensuremath{\mathrm{T}}}    %Telsa
\newcommand{\UHz}{\ensuremath{\mathrm {Hz}}} %Hertz
\newcommand{\Ukg}{\ensuremath{\mathrm {kg}}} %kilograms
\newcommand{\Umol}{\ensuremath{\mathrm {mol}}}%mol
\newcommand{\UK}{\ensuremath{\mathrm {K}}}   %Degree Kelvins
\newcommand{\UBq}{\ensuremath{\mathrm {Bq}}}   %Bequerel
\newcommand{\UCi}{\ensuremath{\mathrm {Ci}}}   %Curie
%
%
% Derived Units
\newcommand{\UN}{\ensuremath{\mathrm {N}}}   %Newtons
\newcommand{\UC}{\ensuremath{\mathrm {C}}}   %Coulombs
\newcommand{\UJ}{\ensuremath{\mathrm {J}}}   %Joules
\newcommand{\UPa}{\ensuremath{\mathrm {Pa}}} %Pascals
\newcommand{\UH}{\ensuremath{\mathrm{H}}}    %Henry
\newcommand{\UOhm}{\ensuremath{\Omega}}      %Ohms
\newcommand{\UWb}{\ensuremath{\mathrm{Wb}}}  %Weber
%
% Multiples and Sub-multiples commonly used.
%
% Length
\newcommand{\UAmstrong}{\ensuremath{\mathrm{A}}}    %Amstrongs
\newcommand{\Unanom}{\Umul{\Unano}{\Um}}
\newcommand{\Umicron}{\Umul{\Umicro}{\Um}}
\newcommand{\Umm}{\Umul{\Ucenti}{\Um}}
\newcommand{\Ucm}{\Umul{\Ucenti}{\Um}}
\newcommand{\Ukm}{\Umul{\Ukilo}{\Um}}
%
% Electrical
\newcommand{\UmicroF}{\Umul{\Umicro}{\UF}}      
\newcommand{\UmilliH}{\Umul{\Umilli}{\UH}}     
\newcommand{\UmilliV}{\Umul{\Umilli}{\UV}}     
\newcommand{\UkiloOhm}{\Umul{\Ukilo}{\UOhm}}     
%
% Frequency
\newcommand{\UkiloHz}{\Umul{\Ukilo}{\UHz}}
%
%Nuclear
%
\newcommand{\UmicroCi}{\Umul{\Umicro}{\UCi}}      
%
% Common Combinations
%
\newcommand{\Umps}{\Um\Upow{\Us}{-1}} %meter per second
\newcommand{\Upcm}{\Upow{\Um}{-3}}    %per cubic meter
\newcommand{\UhPa}{\Umul{\Uhecto}{\UPa}} %hecto Pascals
\newcommand{\UJpKpkg}{\UJ\Upow{\UK}{-1}\Upow{\Ukg}{-1}}
\newcommand{\UJpKpmol}{\UJ\Upow{\UK}{-1}\Upow{\Umol}{-1}}
\newcommand{\UW}{$\mathrm{W}\:$}
\newcommand{\UWpms}{$\mathrm{W\,m^{-2}}\:$}

% Common non-SI units
\newcommand{\Uliter}{\ensuremath{\mathrm {l}}}%liter
\newcommand{\Ugram}{\ensuremath{\mathrm {g}}}%grams
\newcommand{\UdegC}{\ensuremath{^{\circ}\mathrm{C}}}%Celcius
%electronvolt

% Nuclear Labs
%----------------------------------------------------------------
\newcommand\ISOTOPE[3]{
%
%USAGE: ISOTOPE{Symbol}{ZZ}{AA}
%Notes: The convention requires that if Z has less digits than A,
%then the last Z digit must aligned the right under the last digit of A. 
%In this case, used "~" to shift the Z digits to the right.
%
\ensuremath{{}_{#2}^{#3} \mathrm{ #1}}}

%----------------------------------------------------------------
%TO_BE_ADDED_MAYBE
%\newcommand{\kph}{$\mathrm{km\,hr^{-1}}\:$}
%\newcommand{\kms}{$\mathrm{km}^2\:$}
%\newcommand{\WpmspK}{$\mathrm{W\,m^{-2}\,K^{-1}}\:$}
%\newcommand{\mc}{$\mathrm{\,m^{3}}\:$}
%\newcommand{\cmc}{$\mathrm{\,cm^{3}}\:$}
%\newcommand{\gram}{$\mathrm{\,g}\:$}
%\newcommand{\kgpermc}{$\mathrm{kg\,m^{-3}}\:$}
%\newcommand{\grperkg}{$\mathrm{g\,kg^{-1}}\:$}
%\newcommand{\kgpmcuaps}{$\mathrm{kg\,m^{-2}}\,s^{-1}\:$}
%\newcommand{\Jperkg}{$\mathrm{J\,kg^{-1}}\:$}
%\newcommand{\JperkgperK}{$\mathrm{J\,kg^{-1}\,K^{-1}}\:$}

