summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:56:45 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:56:45 +0000
commit8f6b667a0eb5f453a32cfa5aebf57a99cf6ee024 (patch)
treecbaaa09ecbca30e1f23d874db548205826d59bab /Master/texmf-dist
parent54d3b80d81714794331c24f64f637018f3c8ed40 (diff)
hepunits
git-svn-id: svn://tug.org/texlive/trunk@974 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/tex/latex/hepunits/hepunits.sty45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/hepunits/hepunits.sty b/Master/texmf-dist/tex/latex/hepunits/hepunits.sty
new file mode 100644
index 00000000000..79939f6d88c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/hepunits/hepunits.sty
@@ -0,0 +1,45 @@
+\ProvidesPackage{hepunits}[2005/01/11]
+\RequirePackage{amsmath}
+\RequirePackage[mediumspace,thickqspace,derived,squaren,textstyle]{SIunits}
+
+\DeclareRobustCommand{\@NewUnit}[2]{\addunit{#1}{#2}}
+
+%% Lengths
+\@NewUnit{\nm}{\nano\metre}
+\@NewUnit{\micron}{\micro\metre}
+\@NewUnit{\mm}{\milli\metre}
+\@NewUnit{\cm}{\centi\metre}
+
+%% Angles
+\@NewUnit{\mrad}{\milli\rad}
+
+%% Times
+\@NewUnit{\ps}{\pico\second}
+\@NewUnit{\ns}{\nano\second}
+
+%% Rates
+\@NewUnit{\Hertz}{\hertz}
+\@NewUnit{\Hz}{\hertz}
+\@NewUnit{\kHz}{\kilo\hertz}
+\@NewUnit{\MHz}{\mega\hertz}
+
+%% Fields
+\@NewUnit{\Tesla}{\tesla}
+
+%% Luminosity
+\@NewUnit{\invcmsqpersecond}{\rpsquare{\centi\metre}\usk\reciprocal{\second}}
+\providecommand{\lumiunits}{\invcmsqpersecond}
+
+%% HEP energy, momentum and mass units
+\DeclareRobustCommand{\clight}{\ensuremath{c}}
+\@NewUnit{\eV}{{eV}}
+\@NewUnit{\keV}{\kilo\eV}
+\@NewUnit{\MeV}{\mega\eV}
+\@NewUnit{\GeV}{\giga\eV}
+\@NewUnit{\TeV}{\tera\eV}
+\@NewUnit{\MeVoverc}{\ensuremath{\MeV\!/\clight}}
+\@NewUnit{\GeVoverc}{\ensuremath{\GeV\!/\clight}}
+\@NewUnit{\TeVoverc}{\ensuremath{\TeV\!/\clight}}
+\@NewUnit{\MeVovercsq}{\ensuremath{\MeV\!/\clight^{2}}}
+\@NewUnit{\GeVovercsq}{\ensuremath{\GeV\!/\clight^{2}}}
+\@NewUnit{\TeVovercsq}{\ensuremath{\TeV\!/\clight^{2}}}