%% 
%% This is file `version.sty', generated 
%% on <1995/4/11> with the docstrip utility (2.2i).
%% 
%% The original source files were:
%% 
%% version.dtx  (with options: `paketkod')
%% 
%% Copyright (c) 1994 by Mats Dahlgren <matsd@physchem.kth.se>. 
%% All rights reserved. See the file `version.ins' for information 
%% on how you may (re-)distribute the `version' package files. 
%% 
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{version}%
  [1994/12/28 Version numbering of LaTeX files (v. 1.0).]
\typeout{The `version' package included.  (c) 1994 by Mats Dahlgren.}
\DeclareOption{one}{%
  \typeout{Option `one' is default for `version'.}
}
\DeclareOption{ten}{%
  \renewcommand{\version}{%
    \ifKeepVersion \else
      \stepcounter{versionnrten}
      \ifnum\theversionnrten=10\stepcounter{versionnr} \fi
      \@skrivner
    \fi
    \theversionnr .\theversionnrten
  }
}
\DeclareOption{hundred}{%
  \renewcommand{\version}{%
    \ifKeepVersion \else
      \stepcounter{versionnrhundred}
      \ifnum\theversionnrhundred=10\stepcounter{versionnrten} \fi
      \ifnum\theversionnrten=10\stepcounter{versionnr} \fi
      \@skrivner
    \fi
    \theversionnr .\theversionnrten\theversionnrhundred
  }
}
\DeclareOption*{\typeout{The option `\CurrentOption '\space
  is not used by `version'.}}
\newcounter{versionnr}
\newcounter{versionnrten}[versionnr]
\newcounter{versionnrhundred}[versionnrten]
\@addtoreset{versionnrhundred}{versionnr}
\newif\ifKeepVersion \KeepVersionfalse
\newcommand{\keepversion}{\global\KeepVersiontrue}
\newcommand{\stepversion}{\global\KeepVersionfalse}
\def\vrsFile{\jobname.vrs}
\newwrite\@vrs
\newcounter{VrsNr}
\def\@skrivner{%
  \setcounter{VrsNr}{\@partaux}  \addtocounter{VrsNr}{1}
  \let\@vrs=\theVrsNr
  \immediate\openout\@vrs\vrsFile
  \immediate\write\@vrs{\relax}
  \immediate\write\@vrs{%
    \string\newlabel{versionsnummer}{{\theversionnr}{\thepage}}}
  \immediate\write\@vrs{%
    \string\newlabel{versionsnummertio}{{\theversionnrten}{\thepage}}}
  \immediate\write\@vrs{%
    \string\newlabel{versionsnummerhundra}{{\theversionnrhundred}{\thepage}}}
  \immediate\closeout\@vrs{}
}
\newcommand{\version}{%
  \ifKeepVersion \else
    \stepcounter{versionnr}
    \@skrivner
  \fi
  \theversionnr
}
\def\@inp@t#1{\openin1 #1 \ifeof1
    \typeout  {No file #1.}
    \setcounter{versionnr}{\z@}
    \setcounter{versionnrten}{\z@}
    \setcounter{versionnrhundred}{\z@}
  \else\closein1 \relax\@@input #1
    \setcounter{versionnr}{\ref{versionsnummer}}
    \setcounter{versionnrten}{\ref{versionsnummertio}}
    \setcounter{versionnrhundred}{\ref{versionsnummerhundra}}
  \fi
}
\AtBeginDocument{%
  \@inp@t{\vrsFile}
}
\ProcessOptions
\endinput
%% 
%% End of file `version.sty'.
