hekeus@51
|
1 %%%% This sty file contains all necessary bibliographic code to
|
hekeus@51
|
2 %%%% produce AAAI / AI Magazine author-year style referecnes.
|
hekeus@51
|
3 %%%% Stolen from ijcai97.sty by Dan Weld 1/27/99
|
hekeus@51
|
4
|
hekeus@51
|
5 % Lists
|
hekeus@51
|
6 \leftmargini 2em
|
hekeus@51
|
7 \leftmarginii 2em
|
hekeus@51
|
8 \leftmarginiii 1em
|
hekeus@51
|
9 \leftmarginiv 0.5em
|
hekeus@51
|
10 \leftmarginv 0.5em
|
hekeus@51
|
11 \leftmarginvi 0.5em
|
hekeus@51
|
12
|
hekeus@51
|
13 \leftmargin\leftmargini
|
hekeus@51
|
14 \labelsep 5pt
|
hekeus@51
|
15 \labelwidth\leftmargini\advance\labelwidth-\labelsep
|
hekeus@51
|
16
|
hekeus@51
|
17 \def\@listI{\leftmargin\leftmargini
|
hekeus@51
|
18 \parsep 2pt plus 1pt minus 0.5pt%
|
hekeus@51
|
19 \topsep 4pt plus 1pt minus 2pt%
|
hekeus@51
|
20 \itemsep 2pt plus 1pt minus 0.5pt%
|
hekeus@51
|
21 \partopsep 1pt plus 0.5pt minus 0.5pt}
|
hekeus@51
|
22
|
hekeus@51
|
23 \let\@listi\@listI
|
hekeus@51
|
24 \@listi
|
hekeus@51
|
25
|
hekeus@51
|
26 \def\@listii{\leftmargin\leftmarginii
|
hekeus@51
|
27 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
|
hekeus@51
|
28 \parsep 1pt plus 0.5pt minus 0.5pt
|
hekeus@51
|
29 \topsep 2pt plus 1pt minus 0.5pt
|
hekeus@51
|
30 \itemsep \parsep}
|
hekeus@51
|
31 \def\@listiii{\leftmargin\leftmarginiii
|
hekeus@51
|
32 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
|
hekeus@51
|
33 \parsep 0pt plus 1pt
|
hekeus@51
|
34 \partopsep 0.5pt plus 0pt minus 0.5pt
|
hekeus@51
|
35 \topsep 1pt plus 0.5pt minus 0.5pt
|
hekeus@51
|
36 \itemsep \topsep}
|
hekeus@51
|
37 \def\@listiv{\leftmargin\leftmarginiv
|
hekeus@51
|
38 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
|
hekeus@51
|
39 \def\@listv{\leftmargin\leftmarginv
|
hekeus@51
|
40 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
|
hekeus@51
|
41 \def\@listvi{\leftmargin\leftmarginvi
|
hekeus@51
|
42 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
|
hekeus@51
|
43
|
hekeus@51
|
44 % We're never going to need a table of contents, so just flush it to
|
hekeus@51
|
45 % save space --- suggested by drstrip@sandia-2
|
hekeus@51
|
46 %\def\addcontentsline#1#2#3{}
|
hekeus@51
|
47
|
hekeus@51
|
48 %%%% named.sty
|
hekeus@51
|
49
|
hekeus@51
|
50 \typeout{Named Citation Style, version of 30 November 1994}
|
hekeus@51
|
51
|
hekeus@51
|
52 % This file implements citations for the ``named'' bibliography style.
|
hekeus@51
|
53 % Place it in a file called named.sty in the TeX search path. (Placing it
|
hekeus@51
|
54 % in the same directory as the LaTeX document should also work.)
|
hekeus@51
|
55
|
hekeus@51
|
56 % Prepared by Peter F. Patel-Schneider, with the assistance of several,
|
hekeus@51
|
57 % since forgotten, LaTeX hackers.
|
hekeus@51
|
58 % This style is NOT guaranteed to work. It is provided in the hope
|
hekeus@51
|
59 % that it will make the preparation of papers easier.
|
hekeus@51
|
60 %
|
hekeus@51
|
61 % There are undoubtably bugs in this style. If you make bug fixes,
|
hekeus@51
|
62 % improvements, etc. please let me know. My e-mail address is:
|
hekeus@51
|
63 % pfps@research.att.com
|
hekeus@51
|
64
|
hekeus@51
|
65 % The preparation of this file was supported by Schlumberger Palo Alto
|
hekeus@51
|
66 % Research and AT\&T Bell Laboratories.
|
hekeus@51
|
67
|
hekeus@51
|
68 % This file can be modified and used in other conferences as long
|
hekeus@51
|
69 % as credit to the authors and supporting agencies is retained, this notice
|
hekeus@51
|
70 % is not changed, and further modification or reuse is not restricted.
|
hekeus@51
|
71
|
hekeus@51
|
72 % The ``named'' bibliography style creates citations with labels like
|
hekeus@51
|
73 % \citeauthoryear{author-info}{year}
|
hekeus@51
|
74 % these labels are processed by the following commands:
|
hekeus@51
|
75 % \cite{keylist}
|
hekeus@51
|
76 % which produces citations with both author and year,
|
hekeus@51
|
77 % enclosed in square brackets
|
hekeus@51
|
78 % \shortcite{keylist}
|
hekeus@51
|
79 % which produces citations with year only,
|
hekeus@51
|
80 % enclosed in square brackets
|
hekeus@51
|
81 % \citeauthor{key}
|
hekeus@51
|
82 % which produces the author information only
|
hekeus@51
|
83 % \citeyear{key}
|
hekeus@51
|
84 % which produces the year information only
|
hekeus@51
|
85
|
hekeus@51
|
86 \def\leftcite{\@up[}\def\rightcite{\@up]}
|
hekeus@51
|
87
|
hekeus@51
|
88 \def\cite{\def\citeauthoryear##1##2{\def\@thisauthor{##1}%
|
hekeus@51
|
89 \ifx \@lastauthor \@thisauthor \relax \else##1, \fi ##2}\@icite}
|
hekeus@51
|
90 \def\shortcite{\def\citeauthoryear##1##2{##2}\@icite}
|
hekeus@51
|
91
|
hekeus@51
|
92 \def\citeauthor{\def\citeauthoryear##1##2{##1}\@nbcite}
|
hekeus@51
|
93 \def\citeyear{\def\citeauthoryear##1##2{##2}\@nbcite}
|
hekeus@51
|
94
|
hekeus@51
|
95 % internal macro for citations with [] and with breaks between citations
|
hekeus@51
|
96 % used in \cite and \shortcite
|
hekeus@51
|
97 \def\@icite{\leavevmode\def\@citeseppen{-1000}%
|
hekeus@51
|
98 \def\@cite##1##2{\leftcite\nobreak\hskip 0in{##1\if@tempswa , ##2\fi}\rightcite}%
|
hekeus@51
|
99 \@ifnextchar [{\@tempswatrue\@citex}{\@tempswafalse\@citex[]}}
|
hekeus@51
|
100 % internal macro for citations without [] and with no breaks
|
hekeus@51
|
101 % used in \citeauthor and \citeyear
|
hekeus@51
|
102 \def\@nbcite{\leavevmode\def\@citeseppen{1000}%
|
hekeus@51
|
103 \def\@cite##1##2{{##1\if@tempswa , ##2\fi}}%
|
hekeus@51
|
104 \@ifnextchar [{\@tempswatrue\@citex}{\@tempswafalse\@citex[]}}
|
hekeus@51
|
105
|
hekeus@51
|
106 % don't box citations, separate with ; and a space
|
hekeus@51
|
107 % also, make the penalty between citations a parameter,
|
hekeus@51
|
108 % it may be a good place to break
|
hekeus@51
|
109 \def\@citex[#1]#2{%
|
hekeus@51
|
110 \def\@lastauthor{}\def\@citea{}%
|
hekeus@51
|
111 \@cite{\@for\@citeb:=#2\do
|
hekeus@51
|
112 {\@citea\def\@citea{;\penalty\@citeseppen\ }%
|
hekeus@51
|
113 \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
|
hekeus@51
|
114 \@ifundefined{b@\@citeb}{\def\@thisauthor{}{\bf ?}\@warning
|
hekeus@51
|
115 {Citation `\@citeb' on page \thepage \space undefined}}%
|
hekeus@51
|
116 {\csname b@\@citeb\endcsname}\let\@lastauthor\@thisauthor}}{#1}}
|
hekeus@51
|
117
|
hekeus@51
|
118 % raise the brackets in bibliography labels
|
hekeus@51
|
119 \def\@biblabel#1{\def\citeauthoryear##1##2{##1, ##2}\@up{[}#1\@up{]}\hfill}
|
hekeus@51
|
120
|
hekeus@51
|
121 \def\@up#1{\leavevmode\raise.2ex\hbox{#1}}
|
hekeus@51
|
122
|
hekeus@51
|
123 % Optional changes
|
hekeus@51
|
124
|
hekeus@51
|
125 %%%% use parentheses in the reference list and citations
|
hekeus@51
|
126 %\def\leftcite{(}\def\rightcite{)}
|
hekeus@51
|
127 %\def\@biblabel#1{\def\citeauthoryear##1##2{##1, ##2}(#1)\hfill}
|
hekeus@51
|
128
|
hekeus@51
|
129 %%%% no key in the reference list
|
hekeus@51
|
130 %\def\@lbibitem[#1]#2{\item\if@filesw
|
hekeus@51
|
131 % { \def\protect##1{\string ##1\space}\immediate
|
hekeus@51
|
132 % \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces}
|
hekeus@51
|
133 %\def\thebibliography#1{\section*{References\@mkboth
|
hekeus@51
|
134 % {REFERENCES}{REFERENCES}}\list
|
hekeus@51
|
135 % {}{\labelwidth 0pt\leftmargin\labelwidth \itemsep 0.5ex}
|
hekeus@51
|
136 % \def\newblock{\hskip .11em plus .33em minus .07em}
|
hekeus@51
|
137 % \sloppy\clubpenalty4000\widowpenalty4000
|
hekeus@51
|
138 % \sfcode`\.=1000\relax} |