| 1 |
%% |
| 2 |
%% This is file `upref.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% upref.dtx |
| 8 |
%% This is a generated file. |
| 9 |
%% |
| 10 |
%% Copyright 2008, 2010 American Mathematical Society. |
| 11 |
%% |
| 12 |
%% American Mathematical Society |
| 13 |
%% Technical Support |
| 14 |
%% Publications Technical Group |
| 15 |
%% 201 Charles Street |
| 16 |
%% Providence, RI 02904 |
| 17 |
%% USA |
| 18 |
%% tel: (401) 455-4080 |
| 19 |
%% (800) 321-4267 (USA and Canada only) |
| 20 |
%% fax: (401) 331-3842 |
| 21 |
%% email: [email protected] |
| 22 |
%% |
| 23 |
%% This work may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% http://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2005/12/01 or later. |
| 30 |
%% |
| 31 |
%% This work has the LPPL maintenance status `maintained'. |
| 32 |
%% |
| 33 |
%% The Current Maintainer of this work is the American Mathematical |
| 34 |
%% Society. |
| 35 |
%% |
| 36 |
%% ======================================================================== |
| 37 |
%% |
| 38 |
\NeedsTeXFormat{LaTeX2e}[1995/06/01] |
| 39 |
\ProvidesPackage{upref}[2007/03/14 v2.04] |
| 40 |
\newcommand{\@noref}[1]{% |
| 41 |
\G@refundefinedtrue |
| 42 |
\nfss@text{\reset@font\bfseries ??}% |
| 43 |
\@latex@warning{Reference `#1' on page \thepage\space undefined}% |
| 44 |
} |
| 45 |
\AtBeginDocument{% |
| 46 |
\providecommand\printref{\textup}% |
| 47 |
\@ifpackageloaded{hyperref}{% |
| 48 |
\def\Hy@setref@link#1#2#3#4#5#6\@nil#7{% |
| 49 |
\begingroup |
| 50 |
\leavevmode |
| 51 |
\sw@slant |
| 52 |
\toks0{\hyper@@link{#5}{#4}}% |
| 53 |
\toks1\@xp{#7{\printref{#1}\hbox{}}{#2}{#3}{#4}{#5}}% |
| 54 |
\edef\x{\endgroup\the\toks0{\the\toks1}}\x |
| 55 |
}% |
| 56 |
\def\@setref#1#2#3{% |
| 57 |
\ifx#1\relax |
| 58 |
\@xp\protect\@noref{#3}% |
| 59 |
\else |
| 60 |
\@xp\Hy@setref@link#1\@empty\@empty\@nil{#2}% |
| 61 |
\fi |
| 62 |
}% |
| 63 |
}{% |
| 64 |
\def\@setref#1#2#3{\ifx#1\relax |
| 65 |
\protect\@noref{#3}% |
| 66 |
\else |
| 67 |
\protect\printref{\@xp#2#1\hbox{}}% |
| 68 |
\fi |
| 69 |
}% |
| 70 |
}% |
| 71 |
} |
| 72 |
\providecommand\@upn{\textup} |
| 73 |
\endinput |
| 74 |
%% |
| 75 |
%% End of file `upref.sty'. |