Mercurial > ift6266
annotate writeup/mlapa.sty @ 617:820764689d2f
Experiment to test the performance of shallower networks.
author | Salah Rifai <salahmeister@gmail.com> |
---|---|
date | Sun, 09 Jan 2011 12:45:44 -0500 |
parents | a11274742088 |
children |
rev | line source |
---|---|
406
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
1 % mlapa.sty style, used in conjunction with mlapa.bst, will produce |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
2 % an APA-like bibliography style. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
3 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
4 % 1) Bibliography entries formatted alphabetically, last name |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
5 % first, each entry having a hanging indentation and no label. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
6 % 2) References in the following formats: |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
7 % (Author, 1986) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
8 % (Author & Author, 1986) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
9 % (Author et al., 1986). |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
10 % 3) Multiple references in the form (Author1, 1986; Author2, 1987) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
11 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
12 % To be used as an optional argument to the \documentstyle command; for example |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
13 % \documentstyle[11pt,apalike]{book} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
14 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
15 % 16-Sep-86, original version by Susan King and Oren Patashnik. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
16 % 13-Oct-87 changes: |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
17 % Fixed bug in last line by adding the {} that disappeard when |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
18 % the \hbox{} was removed from the pre-APALIKE definition; |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
19 % added club and widow penalties; |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
20 % patched the \newblock LaTeX bug from `-.07em' to simply `.07em'; |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
21 % and made this work for document styles that don't define `chapter'. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
22 % Use brackets for \cite, and no label in the bibliography |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
23 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
24 % 12/11/89 Use parenthesis () for \cite, (Risto Miikkulainen) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
25 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
26 % --------------------------------------------------------------------------- |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
27 % The following major changes by Risto Miikkulainen 4/8/92: |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
28 % new style name: myapalike.sty |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
29 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
30 % The new commands below generate various embedded citations and multiple |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
31 % years for one authorname and citations without the enclosing parenthesis. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
32 % They are enough to generate the standard apa style refs; however, |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
33 % there is a lot of room for improvement. For example: |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
34 % - the macros should alphabetize the entries automatically (maybe); |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
35 % - they should generate multiple years automatically, i.e. if the |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
36 % current author is the same as previous one, do not repeat it. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
37 % This would make \single macros unnecessary. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
38 % - with multiple emcites, it should add commas and the word ``and'' |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
39 % automatically between cites. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
40 % - Bug: in book style sometimes all the bib entries are dumped on an |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
41 % extra page in the end. (Just throw that page away if it ever appears.) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
42 % - Another bug: for some reason, latex adds extra space after et al. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
43 % with emcites and singlecites. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
44 % If you have a chance to fix any of these things, let me know. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
45 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
46 % You have to use this style with myapalike.bst; it generates bibitems |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
47 % of the form |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
48 % \bibitem[Elman, 1989a][Elman][1989a]{elman:representation} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
49 % that this file expects to find in the bbl file. |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
50 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
51 % Examples of commands and what they generate: |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
52 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
53 %\cite{foobar:1990,doesmith:1991} -- (Foo and Bar 1990; Doe and Smith 1991) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
54 %\aucite -- (Foo and Bar; Doe and Smith) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
55 %\aunpcite -- Foo and Bar; Doe and Smith |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
56 %\yrcite -- (1990; 1991) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
57 %\yrnpcite -- 1990; 1991 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
58 %\npcite -- Foo and Bar 1990; Doe and Smith 1991 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
59 %\emcite -- Foo and Bar (1990); Doe and Smith (1991) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
60 %\singlecite -- (Foo and Bar 1990, 1991) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
61 %\singlenpcite -- Foo and Bar 1990, 1991 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
62 %\singleemcite -- Foo and Bar (1990, 1991) |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
63 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
64 % Additional changes made by Pat Langley (1/20/2000). |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
65 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
66 \def\@biblabel#1{} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
67 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
68 % Set length of hanging indentation for bibliography entries |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
69 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
70 \newlength{\bibhang} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
71 % \setlength{\bibhang}{2em} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
72 % Reduce the handing indent for two-column format |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
73 \setlength{\bibhang}{10pt} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
74 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
75 % \thebibliography environment depends on whether or not `chapter's can exist |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
76 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
77 \@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
78 {REFERENCES}{REFERENCES}}\list |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
79 {\relax}{\setlength{\labelsep}{0em} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
80 \setlength{\itemindent}{-\bibhang} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
81 \setlength{\leftmargin}{\bibhang}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
82 \def\newblock{\hskip .11em plus .33em minus .07em} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
83 \sloppy\clubpenalty4000\widowpenalty4000 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
84 \sfcode`\.=1000\relax}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
85 {\def\thebibliography#1{\chapter*{Bibliography\@mkboth |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
86 {BIBLIOGRAPHY}{BIBLIOGRAPHY}}\list |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
87 {\relax}{\setlength{\labelsep}{0em} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
88 \setlength{\itemindent}{-\bibhang} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
89 \setlength{\leftmargin}{\bibhang}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
90 \def\newblock{\hskip .11em plus .33em minus .07em} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
91 \sloppy\clubpenalty4000\widowpenalty4000 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
92 \sfcode`\.=1000\relax}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
93 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
94 % `; ' goes between cites, and there's no \hbox around individual cites |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
95 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
96 \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
97 \def\@citea{}\@cite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
98 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
99 {b@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
100 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
101 {\csname b@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
102 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
103 \def\aucite{\@ifnextchar [{\@tempswatrue\@aucitex}{\@tempswafalse\@aucitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
104 \def\aunpcite{\@ifnextchar [{\@tempswatrue\@aunpcitex}{\@tempswafalse\@aunpcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
105 \def\yrcite{\@ifnextchar [{\@tempswatrue\@yrcitex}{\@tempswafalse\@yrcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
106 \def\yrnpcite{\@ifnextchar [{\@tempswatrue\@yrnpcitex}{\@tempswafalse\@yrnpcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
107 \def\npcite{\@ifnextchar [{\@tempswatrue\@npcitex}{\@tempswafalse\@npcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
108 \def\emcite{\@ifnextchar [{\@tempswatrue\@emcitex}{\@tempswafalse\@emcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
109 \def\singlecite{\@ifnextchar [{\@tempswatrue\@singlecitex}{\@tempswafalse\@singlecitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
110 \def\singlenpcite{\@ifnextchar [{\@tempswatrue\@singlenpcitex}{\@tempswafalse\@singlenpcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
111 \def\singleemcite{\@ifnextchar [{\@tempswatrue\@singleemcitex}{\@tempswafalse\@singleemcitex[]}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
112 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
113 % use ``,'' between author labels |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
114 \def\@aucitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
115 \def\@citea{}\@aucite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
116 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
117 {aub@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
118 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
119 {\csname aub@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
120 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
121 % use ``,'' between author labels |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
122 \def\@aunpcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
123 \def\@citea{}\@aunpcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
124 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
125 {aub@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
126 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
127 {\csname aub@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
128 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
129 % use ``,'' between year-only-labels, |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
130 \def\@yrcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
131 \def\@citea{}\@yrcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
132 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
133 {yrb@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
134 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
135 {\csname yrb@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
136 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
137 % use ``,'' between year-only-labels, |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
138 \def\@yrnpcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
139 \def\@citea{}\@yrnpcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
140 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
141 {yrb@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
142 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
143 {\csname yrb@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
144 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
145 % use `; ' between parenthesisless cites |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
146 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
147 \def\@npcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
148 \def\@citea{}\@npcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
149 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
150 {b@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
151 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
152 {\csname b@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
153 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
154 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
155 \newcounter{myfoo} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
156 \def\@singleemcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
157 \setcounter{myfoo}{0}\@for\@citeb:=#2\do{\ifnum\c@myfoo=0{\csname aub@\@citeb\endcsname}\addtocounter{myfoo}{1}\fi} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
158 \def\@citea{}\@yrcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
159 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
160 {yrb@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
161 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
162 {\csname yrb@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
163 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
164 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
165 \def\@singlecitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
166 \def\@citea{(}\@citea\setcounter{myfoo}{0}\@for\@citeb:=#2\do{\ifnum\c@myfoo=0{\csname aub@\@citeb\endcsname}\addtocounter{myfoo}{1}\fi} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
167 \def\@citea{}\@yrnpcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
168 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
169 {yrb@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
170 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
171 {\csname yrb@\@citeb\endcsname}}}{#1}\def\@citea{)}\@citea} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
172 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
173 % |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
174 \def\@singlenpcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
175 \setcounter{myfoo}{0}\@for\@citeb:=#2\do{\ifnum\c@myfoo=0{\csname aub@\@citeb\endcsname}\addtocounter{myfoo}{1}\fi} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
176 \def\@citea{}\@yrnpcite{\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
177 {\@citea\def\@citea{; }\@ifundefined |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
178 {yrb@\@citeb}{{\bf ?}\@warning |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
179 {Citation `\@citeb' on page \thepage \space undefined}}% |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
180 {\csname yrb@\@citeb\endcsname}}}{#1}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
181 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
182 % use ``,'' between embedded cites |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
183 \def\@emcitex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
184 \def\@citea{}\@for\@citeb:=#2\do |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
185 {\@citea\def\@citea{; }\@aunpcite{\@ifundefined {aub@\@citeb} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
186 {{\bf ?}\@warning{Citation `\@citeb' on page \thepage \space undefined}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
187 {\csname aub@\@citeb\endcsname}}{} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
188 \@yrcite{\@ifundefined {yrb@\@citeb} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
189 {{\bf ?}\@warning{Citation `\@citeb' on page \thepage \space undefined}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
190 {\csname yrb@\@citeb\endcsname}}{#1}}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
191 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
192 % define b@CITENAME as the full label and aub@CITENAME as the |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
193 % authors-only-label and yrb@CITENAME as the year-only-label |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
194 \def\bibcite#1#2#3#4{\global\@namedef{b@#1}{#2} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
195 \global\@namedef{aub@#1}{#3} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
196 \global\@namedef{yrb@#1}{#4}} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
197 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
198 % parenthesis/no parenthesis around the label |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
199 \def\@cite#1#2{(#1\if@tempswa , #2\fi)} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
200 \def\@aucite#1#2{(#1\if@tempswa , #2\fi)} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
201 \def\@yrcite#1#2{(#1\if@tempswa , #2\fi)} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
202 \def\@npcite#1#2{#1\if@tempswa , #2\fi} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
203 \def\@aunpcite#1#2{#1\if@tempswa , #2\fi} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
204 \def\@yrnpcite#1#2{#1\if@tempswa , #2\fi} |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
205 |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
206 \def\@lbibitem[#1][#2][#3]#4{\item[\@biblabel{#1}]\if@filesw |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
207 { \def\protect##1{\string ##1\space}\immediate |
a11274742088
Add bibliography style files.
Arnaud Bergeron <abergeron@gmail.com>
parents:
diff
changeset
|
208 \write\@auxout{\string\bibcite{#4}{#1}{#2}{#3}}}\fi\ignorespaces} |