%% 
%% This is file `showkeys.sty', generated 
%% on <1994/7/28> with the docstrip utility (2.2h).
%% 
%% The original source files were:
%% 
%% showkeys.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE: 
%% This file is part of the `tools' bundle 
%% in the LaTeX2e distribution. 
%% 
%% You are not allowed to distribute this file. 
%% For distribution of the original source see 
%% the copyright notice in the source file, and 
%% in the file readme.txt distributed with the 
%% tools bundle. 
%% 
%% File: showkeys.dtx Copyright (C) 1992-1994 David Carlisle
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{showkeys}
         [1994/01/31 v2.00 Show cite and label keys (DPC)]
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{showkeys}
\wlog{Package: showkeys \csname ver@showkeys.sty\endcsname}
\let\SK@label\label
\let\SK@bibitem\@bibitem
\let\SK@lbibitem\@lbibitem
\let\SK@ref\ref
\let\SK@pageref\pageref
\let\SK@citex\@citex
\let\SK@tagform@\tagform@
\let\SK@eqnnum\@eqnnum
\def\label#1{\@bsphack\SK@\SK@@label{#1}\SK@label{#1}\@esphack}
\def\@bibitem#1{\SK@\SK@@label{#1}\SK@bibitem{#1}\ignorespaces}
\def\@lbibitem[#1]#2{%
  \SK@\SK@@label{#2}\SK@lbibitem[#1]{#2}\ignorespaces}
\def\SK@#1#2{\def\@tempa{#2}\expandafter#1\meaning\@tempa\SK@}
\def\SK@@label#1>#2\SK@{%
  \gdef\SK@lab{\smash{\fbox{\reset@font\small\ttfamily#2}}}%
  \ifvmode
    \ifinner
      \if@inlabel
        \mbox{}\let\@tempa\SK@lab
                \def\SK@lab{\llap{\@tempa\kern\leftmargin}}%
      \fi
      \setbox\z@=\lastbox
      \ifvoid\z@
        \nointerlineskip\SK@labx
      \else
        \hbox{\box\z@\SK@labx}%
      \fi
    \else
      \marginpar{\SK@lab}\SK@lab@relax
    \fi
  \else
    \csname SK@\@currenvir\endcsname
    \ifSK@equation\else\SK@labx\fi
  \fi}
\AtBeginDocument{%
  \def\@tempa{\let\iftagsleft@\iffalse}%
  \ifx\iftagsleft@\undefined\@tempa\fi%
  \iftagsleft@
    \def\tagform@#1{\llap{\SK@lab\kern\marginparsep}%
                     \SK@lab@relax\SK@tagform@{#1}}%
    \def\@eqnnum{\llap{\SK@lab\kern\displaywidth\kern\marginparsep}%
                     \SK@lab@relax\SK@eqnnum}%
  \else
    \def\tagform@#1{\SK@tagform@{#1}%
                     \rlap{\kern\marginparsep\SK@lab}\SK@lab@relax}%
    \def\@eqnnum{\SK@eqnnum\rlap{\kern\marginparsep\SK@lab}%
                     \SK@lab@relax}%
  \fi}
\def\SK@labx{\rlap\SK@lab\global\let\SK@lab\relax}
\def\SK@lab@relax{\global\let\SK@lab\relax}\SK@lab@relax
\newif\ifSK@equation
\let\SK@equation\SK@equationtrue
\let\SK@eqnarray\SK@equationtrue
\let\SK@align\SK@equationtrue
\let\SK@alignat\SK@equationtrue
\let\SK@xalignat\SK@equationtrue
\let\SK@xxalignat\SK@equationtrue
\let\SK@gather\SK@equationtrue
\let\SK@multline\SK@equationtrue
\def\ref#1{\SK@\SK@@ref{#1}\SK@ref{#1}}
\def\pageref#1{\SK@\SK@@ref{#1}\SK@pageref{#1}}
\def\@citex[#1]#2{\SK@\SK@@ref{#2}\SK@citex[#1]{#2}}
\def\SK@@ref#1>#2\SK@{%
  \leavevmode\vbox to \z@{\vss
    \rlap{\vrule\raise .75em
       \hbox{\underbar{\reset@font\footnotesize\ttfamily#2}}}}}

\endinput
%% 
%% End of file `showkeys.sty'.
