summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/SIunits/binary.sty
blob: f17b2bb08cfd14a75be5c34c98860d8cc7e58de6 (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
%%
%% This is file `binary.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% SIunits.dtx  (with options: `binary')
%% 
%% Copyright (c) 1998-2002 Marcel Heldoorn <m.heldoorn@webschool.nl>.
%% 
%% This program may be distributed and/or modified under the conditions of the LaTeX Project
%% Public License, either version 1.3 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.3a or later is part of all distributions of LaTeX version 2003/12/01 or later.
%% 
%% For error reports in case of UNCHANGED versions see the readme.txt file.
%% 
%% Please do not request updates from me directly. Distribution is done through the
%% Comprehensive TeX Archive Network (CTAN).
%% 
\def\SIunits@RCS$#1: #2 #3${#2}
\def\filename{SIunits.dtx}%Source File Name
\xdef\fileversion{\SIunits@RCS$Revision: 1.36 $}%Revision generated by CS-RCS
\xdef\filedate{\SIunits@RCS$Date: 2007/12/02 12:00:00 $}%Date generated by CS-RCS
\let\docversion=\fileversion
\let\docdate=\filedate
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\ProvidesPackage{binary}
  [\filedate\space v\fileversion\space
      Support for binary prefixes and units (MH)]
\RequirePackageWithOptions{SIunits}
 \def\packagemessage{}
\AtBeginDocument{%
\addprefix{\kibi}{Ki} \newcommand{\kibid}{\power{2}{10}}
\addprefix{\mebi}{Mi} \newcommand{\mebid}{\power{2}{20}}
\addprefix{\gibi}{Gi} \newcommand{\gibid}{\power{2}{30}}
\addprefix{\tebi}{Ti} \newcommand{\tebid}{\power{2}{40}}
\addprefix{\pebi}{Pi} \newcommand{\pebid}{\power{2}{50}}
\addprefix{\exbi}{Ei} \newcommand{\exbid}{\power{2}{60}}

\addunit{\bit}{bit}
\addunit{\byte}{B}%
} %\AtBeginDocument
%% 
%%  Source: $Id: SIunits.dtx,v 1.33 2002/08/01 11:20:00 root Exp root $
%%
%% End of file `binary.sty'.