%% %% This is file `prettyref.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% prettyref.dtx (with options: `style') %% %% Copyright (c) 1995 Kevin Ruland %% %% %% prettyref v2.0 %% %% Copyright 1995. by Kevin Ruland kevin@rodin.wustl.edu %% \ProvidesPackage{prettyref}[1995/03/10 v2.0] \def\newrefformat#1#2{% \@namedef{pr@#1}##1##2{#2}} \newrefformat{eq}{\textup{(#1)}} \newrefformat{lem}{Lemma #1} \newrefformat{thm}{Theorem #1} \newrefformat{cha}{Chapter #1} \newrefformat{sec}{Section #1} \newrefformat{tab}{Table #1 on page #2} \newrefformat{fig}{Figure #1 on page #2} \def\prettyref#1{\@prettyref#1:} \def\@prettyref#1:#2:{% \expandafter\ifx\csname pr@#1\endcsname\relax% \PackageWarning{prettyref}{Reference format #1\space undefined}% \ref{#1:#2}% \else% \csname pr@#1\endcsname{\ref{#1:#2}}{\pageref{#1:#2}}% \fi% } \endinput %% %% End of file `prettyref.sty'.