comparison mume2012/fixbib.sty @ 51:3d4469f9e172

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