summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/amscls/amsrefs.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/amscls/amsrefs.sty')
-rw-r--r--Master/texmf-dist/tex/latex/amscls/amsrefs.sty115
1 files changed, 79 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/amscls/amsrefs.sty b/Master/texmf-dist/tex/latex/amscls/amsrefs.sty
index 8fcd754b2e9..8d22263269a 100644
--- a/Master/texmf-dist/tex/latex/amscls/amsrefs.sty
+++ b/Master/texmf-dist/tex/latex/amscls/amsrefs.sty
@@ -9,9 +9,9 @@
%%% ====================================================================
%%% @LaTeX-doc-source-file{
%%% filename = "amsrefs.dtx",
-%%% version = "2.0",
-%%% date = "2004/06/30",
-%%% time = "11:24:39 EDT",
+%%% version = "2.02",
+%%% date = "2006/10/25",
+%%% time = "11:13:05 EDT",
%%% author = "Michael J Downes and David M. Jones",
%%% address = "American Mathematical Society,
%%% Publications Technical Group,
@@ -24,7 +24,14 @@
%%% to be controlled completely from the LaTeX side
%%% instead of being determined chiefly by the BibTeX
%%% style file.",
-%%% checksum = "09127 8030 25325 242081",
+%%% copyright = "Copyright 2001, 2004, 2006, 2007 American
+%%% Mathematical Society.",
+%%% license = "Unlimited copying and redistribution of this file
+%%% are permitted as long as this file is not
+%%% modified. Modifications, and distribution of
+%%% modified versions, are permitted, but only if
+%%% the resulting file is renamed.",
+%%% checksum = "24451 8100 25457 244022",
%%% docstring = "The checksum field, produced by Robert Solovay's
%%% checksum utility, gives CRC-16 checksum, lines,
%%% words, and characters.",
@@ -33,19 +40,14 @@
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{amsrefs}[2006/10/25 v2.02]
\def\amsrefs@warning@nl{\PackageWarningNoLine{amsrefs}}
\@ifpackagewith{amsrefs}{beta}{%
- \amsrefs@warning@nl{The beta option is deprecated^^J%
- and will be removed in a future release of amsrefs}
- \expandafter\edef\csname opt@amsrbeta.sty\endcsname
- {\@ptionlist{amsrefs.sty}}%
- \def\@currname{amsrbeta}%
- \expandafter\let\csname amsrbeta.sty-h@@k\endcsname\@empty
- \def\@tempa{\input{amsrbeta.sty}\endinput}%
-}{%
- \let\@tempa\@empty
-}
-\@tempa
+ \amsrefs@warning@nl{The beta option is obsolete}%
+}{}
+\@ifpackagewith{amsrefs}{jpa}{%
+ \amsrefs@warning@nl{The jpa option is obsolete}%
+}{}
\IfFileExists{url.sty}{%
\RequirePackage{url}\relax
\@gobble
@@ -73,7 +75,6 @@
}
\@ifundefined{NormalCatcodes}{\RequirePackage{pcatcode}\relax}{}
\PushCatcodes\NormalCatcodes
-\ProvidesPackage{amsrefs}[2004/06/07 v1.71]
%% WARNING WARNING WARNING: Catcode of apostrophe ' is letter
%% throughout this file.
\catcode`\'=11 % letter
@@ -182,7 +183,6 @@
\DeclareBooleanOption{?}
\DeclareBooleanOption{lite}
\DeclareBooleanOption{beta}
-\DeclareBooleanOption{jpa}
\DeclareBooleanOption{bibtex-style}
\ExecuteOptions{numeric,traditional-quotes,sorted-cites,compressed-cites}
@@ -656,6 +656,11 @@
\let\set:bib'journal\output@xref@a
\let\set:bib'publisher\output@xref@a
\def\set:bib'xref##1##2{\output@xref@{##1}\@empty}%
+ \def\set:bib'book##1##2{\output@inner@xref@{##1}\@empty}%
+ \let\set:bib'conference\set:bib'book
+ \let\set:bib'partial\set:bib'book
+ \let\set:bib'reprint\set:bib'book
+ \let\set:bib'translation\set:bib'book
}
\catcode`\:=12
@@ -685,6 +690,13 @@
\@xp\g@undef\csname bi@#1\endcsname
}%
}
+
+\def\output@inner@xref@#1{%
+ \in@={#1}%
+ \ifin@\else
+ \output@xref@{#1}%
+ \fi
+}
\def\bbl@copy#1\endcsname#2{%
\begingroup
\def\@tempa{#1}%
@@ -760,6 +772,7 @@
\def\bib@print@inner#1#2{%
\begingroup
#2\relax % execute definitions locally
+ \bib@resolve@xrefs
\bib@field@patches
\bib'setup
#1%
@@ -860,6 +873,8 @@
\ifx#1\@empty
\else
\begingroup
+ \@apply\auto@protect\amsrefs@textsymbols
+ \@apply\auto@protect\amsrefs@textaccents
\let\DSK@def\xref@add@toks
\let\DSK@append\xref@append
\toks@\@emptytoks
@@ -1592,7 +1607,17 @@
\let\cite@cj\cite@compress
}%
}
-\def\bibcite#1{\@xp\bibcite@a\csname b@#1\endcsname}
+\def\amsrefs@bibcite#1{\@xp\bibcite@a\csname b@#1\endcsname}
+\AtBeginDocument{%
+ \if@filesw
+ \immediate\write\@auxout{%
+ \string\@ifundefined{amsrefs@bibcite}{}{%
+ \string\let\string\bibcite\string\amsrefs@bibcite
+ }%
+ }%
+ \fi
+ \let\bibcite\amsrefs@bibcite
+}
\def\bibcite@a#1#2{%
\ifx\relax#1%
\gdef#1{\citesel 00#2{}}%
@@ -1629,19 +1654,25 @@
\space\SentenceSpace$\uparrow$\csname br@#1\endcsname
}
\let\PrintBackRefs\@gobble
-\def\ar@hyperlink#1{\hyper@@link [cite]{}{cite.\extr@cite#1}{#1}}
+\newcommand{\shade@cite}{\overshadebox{shaderef-gray}}
+\def\ar@hyperlink#1{%
+ \hyper@@link [cite]{}{cite.\extr@cite#1}{\shade@cite{#1}}%
+}
\def\ar@SK@cite#1{\@bsphack\@xp\SK@\@xp\SK@@ref\@xp{\extr@cite#1}\@esphack}
\AtBeginDocument{%
- \@ifundefined{hyper@@link}{%
- \let\ar@hyperlink\@firstofone
+ \@ifpackageloaded{shaderef}{}{%
+ \let\shade@cite\@empty
+ }%
+ \@ifpackageloaded{hyperref}{}{%
+ \let\ar@hyperlink\shade@cite
\let\hyper@anchorstart\@gobble
\let\hyper@anchorend\relax
- }{}%
- \@ifundefined{SK@@label}{%
+ }%
+ \@ifpackageloaded{showlabels}{}{%
\let\ar@SK@cite\@gobble
\let\SK@@label\@gobble
\let\SK@\@gobbletwo
- }{}%
+ }%
}
\let\amsrefs@textaccents\@empty
\def\DeclareNameAccent{%
@@ -2409,6 +2440,7 @@
\def\bib@reprint#1{%
\begingroup
#1\relax % execute definitions locally
+ \bib@resolve@xrefs
\bib@field@patches
\bib'setup
\IfEmptyBibField{copula}{reprinted in}{\bib'copula} \nopunct
@@ -2422,6 +2454,7 @@
\def\bib@translation#1{%
\begingroup
#1\relax % execute definitions locally
+ \bib@resolve@xrefs
\bib@field@patches
\bib'setup
\let\PrintPrimary\@empty
@@ -2483,14 +2516,23 @@
}
\providecommand{\mdash}{\textemdash}
\providecommand{\ndash}{\textendash}
+\def\@scanforMR#1#2#3#4\@nil{%
+ \def\@tempa{#1#2#3#4}%
+ \if#1M%
+ \if#2R%
+ \def\@tempa{#3#4}%
+ \fi
+ \fi
+}
\def\MR#1{%
\relax\ifhmode\unskip\spacefactor3000 \space\fi
- \def\@tempa##1:##2:##3\@nil{%
- \ifx @##2\@empty##1\else\textbf{##1:}##2\fi
- }%
- \MRhref{#1}{MR \@tempa#1:@:\@nil}%
+ \begingroup
+ \@scanforMR#1\@nil
+ \edef\@tempa{MR\@nx\MRhref{\@tempa}{\@tempa}}%
+ \@xp\endgroup
+ \@tempa
}
-\providecommand{\MRhref}[1]{}
+\providecommand{\MRhref}[2]{#1}
\newcommand{\PrintReviews}[1]{%
\PrintSeries{\fld@elt}{}{,}{ }{,}{ }{,}{ }{}{#1}{}%
}
@@ -2658,7 +2700,11 @@
\amsrefs@warning{backref option requires hyperref package}%
}{%
\let\BackCite\back@cite
- \AtBeginDocument{\@starttoc{brf}{}}%
+ \AtBeginDocument{%
+ \let\ams@saved@toc\tableofcontents
+ \@starttoc{brf}{}%
+ \let\tableofcontents\ams@saved@toc
+ }%
}%
}{%
}
@@ -2692,11 +2738,6 @@
}
}{% initials? FALSE:
} % end conditional code for initials option
-\IfOption{jpa}{%
- \amsrefs@warning{The 'jpa' option is obsolete}%
- \typeout{Trying \string\usepackage{amsjpa} instead ...}%
- \RequirePackage{amsjpa}[2000/02/02]
-}{}
\let\deferredquotes\@empty
\IfOption{logical-quotes}{%
\def\deferredquoteslogical{\deferredquotes}%
@@ -2784,7 +2825,9 @@
\def\citeright{)}%
\def\@citeleft{\ifx\citesel\citesel@object\else\citeleft\fi}%
\def\citepunct{; }
-\let\BibLabel\@empty
+\def\BibLabel{%
+ \hyper@anchorstart{cite.\CurrentBib}\relax\hyper@anchorend
+}
\let\process@citelist\process@citelist@unsorted
\DeclareRobustCommand{\ycite}[1]{%
\star@{\cite@a\citesel@year{#1}}{}%