-
Notifications
You must be signed in to change notification settings - Fork 0
/
NAMED.sty
98 lines (74 loc) · 3.51 KB
/
NAMED.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
\def\@biblabel#1{}
% FILE NAMED.STY
%
% This file implements citations for the ``named'' bibliography style.
% Place it in a file called named.sty in the TeX search path. (Placing it
% in the same directory as the LaTeX document should also work.)
% Prepared by Peter F. Patel-Schneider, with the assistance of several,
% since forgotten, LaTeX hackers.
% This style is NOT guaranteed to work. It is provided in the hope
% that it will make the preparation of papers easier.
%
% There are undoubtably bugs in this style. If you make bug fixes,
% improvements, etc. please let me know. My e-mail address is:
% pfps@research.att.com
% The preparation of this file was supported by Schlumberger Palo Alto
% Research and AT\&T Bell Laboratories.
% This file can be modified and used in other conferences as long
% as credit to the authors and supporting agencies is retained, this notice
% is not changed, and further modification or reuse is not restricted.
% The ``named'' bibliography style creates citations with labels like
% \citeauthoryear{author-info}{year}
% these labels are processed by the following commands:
% \cite{key}
% which produces citations with both author and year,
% enclosed in square brackets
% \shortcite{key}
% which produces citations with year only,
% enclosed in square brackets
% \citeauthor{key}
% which produces the author information only
% \citeyear{key}
% which produces the year information only
% Changes Sept 90, [rmjw]:
% \raisebox instead of \raise in Definition of \@up
% Lots of \rm's within \citeathoryear-definitons
%\def\@up#1{\raise.2ex\hbox{#1}}
\def\@up#1{\raisebox{.2ex}{#1}}%[rmjw]
\let\@internalcite\cite
% SQUARE BRACKETS IN \def\cite OMITTED
% SQUARE BRACKETS IN \def\shortcite CHANGED TO PARENTHESES
\def\cite{\def\@citeseppen{-1000}%
\def\@cite##1##2{({##1\if@tempswa , ##2\fi})}%
\def\citeauthoryear##1##2{\rm ##1, ##2}\@internalcite}
\def\shortcite{\def\@citeseppen{1000}%
\def\@cite##1##2{({##1\if@tempswa , ##2\fi})}%
\def\citeauthoryear##1##2{\rm ##2}\@internalcite}
\def\citeauthor#1{\def\@citeseppen{1000}%
\def\@cite##1##2{{##1\if@tempswa , ##2\fi}}%
\def\citeauthoryear##1##2{\rm ##1}\@citedata{#1}}
\def\citeyear#1{\def\@citeseppen{1000}%
\def\@cite##1##2{{##1\if@tempswa , ##2\fi}}%
\def\citeauthoryear##1##2{\rm ##2}\@citedata{#1}}
\def\@citedata#1{\@tempswafalse%
\if@filesw\immediate\write\@auxout{\string\citation{#1}}\fi
\def\@citea{}\@cite{\@for\@citeb:=#1\do
{\@citea\def\@citea{,\penalty\@citeseppen\ }\@ifundefined
{b@\@citeb}{{\bf ?}\@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{}}
% don't box citations, separate with ; and a space
% also, make the penalty between citations negative: a good place to break
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
\def\@citea{}\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{;\penalty\@citeseppen\ }\@ifundefined
{b@\@citeb}{{\bf ?}\@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}
% raise the brackets in bibliography labels
% \def\@biblabel#1{\def\citeauthoryear##1##2{\rm ##1, ##2}%
% \raise.2ex\hbox{[}#1\raise.2ex\hbox{]}\hfill}
% \def\kluwer@cite#1#2{}
% \def\@bibitem#1{\item\if@filesw\immediate\write\@auxout
% {\string\bibcite{#1}{\the\value{\@listctr}}}\fi\ignorespaces}
% END OF FILE NAMED.STY