%%
%% This is file `subref.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% subref.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2011 by Jesse A. Tov
%% 
%% This file may be distributed and/or modified under the This file
%% conditions of the LaTeX Project Public License, either version 1.2 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.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{subref}[2011/04/06 v0.2 ]
\providecommand*\fmtsublabeli[1]{#1}
\providecommand*\fmtsublabelii[1]{.#1}
\providecommand*\fmtsublabeliii[1]{.#1}
\providecommand*\fmtsublabeliv[1]{.#1}
\newcommand\labeli{%
  \global\let\subref@labeli\@currentlabel
  \global\let\subref@labelii\@undefined
  \global\let\subref@labeliii\@undefined
  \global\let\subref@labeliv\@undefined
  \global\def\@currentlabel{%
    \string\fmtsublabeli{\subref@labeli}%
  }%
  \subref@optlabels
}
\newcommand\labelii{%
  \global\let\subref@labelii\@currentlabel
  \global\let\subref@labeliii\@undefined
  \global\let\subref@labeliv\@undefined
  \global\def\@currentlabel{%
    \string\fmtsublabeli{\subref@labeli}%
    \string\fmtsublabelii{\subref@labelii}%
  }%
  \subref@optlabels
}
\newcommand\labeliii{%
  \global\let\subref@labeliii\@currentlabel
  \global\let\subref@labeliv\@undefined
  \global\def\@currentlabel{%
    \string\fmtsublabeli{\subref@labeli}%
    \string\fmtsublabelii{\subref@labelii}%
    \string\fmtsublabeliii{\subref@labeliii}%
  }%
  \subref@optlabels
}
\newcommand\labeliv{%
  \global\let\subref@labeliv\@currentlabel
  \global\def\@currentlabel{%
    \string\fmtsublabeli{\subref@labeli}%
    \string\fmtsublabelii{\subref@labelii}%
    \string\fmtsublabeliii{\subref@labeliii}%
    \string\fmtsublabeliii{\subref@labeliv}%
  }%
  \subref@optlabels
}
\newcommand\subref@optlabels[1][\relax]{%
  \ifx#1\relax\else
    \@for\@subref@each:=#1\do{\expandafter\label\expandafter{\@subref@each}}%
  \fi
  \ignorespaces
}
\endinput
%%
%% End of file `subref.sty'.
