doc/jnsao.bst

Fri, 28 Mar 2025 10:34:40 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 28 Mar 2025 10:34:40 -0500
changeset 61
dee25743b84a
parent 59
743984f4664e
permissions
-rw-r--r--

Added tag v0.1.0 for changeset 680e7ec7c7f8

59
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1 %% jnsao.bst
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
2 %% Copyright (c) Christian Clason and Tuomo Valkonen, 2019.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
3 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
4 % BibTeX style corresponding to the LaTeX class for the
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
6 % Journal of Nonsmooth Analysis and Optimization
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
7 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
8 % Web: http://jnsao.episciences.org
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
9 % E-mail: jnsao@episciences.org
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
10 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
11 % This work may be distributed and/or modified under the
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
12 % conditions of the LaTeX Project Public License, either version 1.3c
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
13 % of this license or (at your option) any later version.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
14 % The latest version of this license is in the file
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
15 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
16 % http://www.latex-project.org/lppl.txt
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
17 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
18 % This file is part of the "JNSAO journal template" (The work in LPPL)
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
19 % and all files in that bundle must be distributed together.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
20 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
22 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
23 % Version 0.8 (2019-06-19).
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
24 % Based on BibTeX standard bibliography style `abbrv'.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
25 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
27
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
28
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
29 ENTRY
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
30 { address
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
31 author
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
32 booktitle
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
33 chapter
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
34 edition
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
35 editor
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
36 howpublished
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
37 institution
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
38 journal
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
39 key
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
40 month
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
41 note
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
42 number
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
43 organization
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
44 pages
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
45 publisher
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
46 school
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
47 series
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
48 title
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
49 type
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
50 volume
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
51 year
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
52 doi % only doi; https://dx.doi.org is added later
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
53 eprinttype % repository: currently, arxiv or hal are supported
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
54 eprint % eprint ID as in repository URL
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
55 version % eprint version, appended as, e.g., `v1` to URL
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
56 url % external URL if neither doi nor eprint is available
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
57 urldate % date visited (for web pages etc.)
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
58 date % futureproof: biblatex uses date over year
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
59 journaltitle % futureproof: biblatex uses journaltitle over journal
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
60 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
61 {}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
62 { label }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
63
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
64 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
65
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
66 FUNCTION {init.state.consts}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
67 { #0 'before.all :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
68 #1 'mid.sentence :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
69 #2 'after.sentence :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
70 #3 'after.block :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
71 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
72
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
73 STRINGS { s t }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
74
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
75 FUNCTION {output.nonnull}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
76 { 's :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
77 output.state mid.sentence =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
78 { ", " * write$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
79 { output.state after.block =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
80 { add.period$ write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
81 newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
82 "\newblock " write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
83 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
84 { output.state before.all =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
85 'write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
86 { add.period$ " " * write$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
87 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
88 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
89 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
90 mid.sentence 'output.state :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
91 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
92 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
93 s
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
94 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
95
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
96 FUNCTION {output}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
97 { duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
98 'pop$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
99 'output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
100 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
101 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
102
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
103 FUNCTION {output.check}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
104 { 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
105 duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
106 { pop$ "empty " t * " in " * cite$ * warning$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
107 'output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
108 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
109 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
110
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
111 FUNCTION {add.blank}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
112 { " " * before.all 'output.state :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
113 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
114
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
115 FUNCTION {output.bibitem}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
116 { newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
117 "\bibitem{" write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
118 cite$ write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
119 "}" write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
120 newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
121 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
122 before.all 'output.state :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
123 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
124
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
125 FUNCTION {fin.entry}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
126 { add.period$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
127 write$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
128 newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
129 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
130
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
131 FUNCTION {new.block}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
132 { output.state before.all =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
133 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
134 { after.block 'output.state := }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
135 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
136 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
137
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
138 FUNCTION {new.sentence}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
139 { output.state after.block =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
140 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
141 { output.state before.all =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
142 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
143 { after.sentence 'output.state := }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
144 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
145 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
146 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
147 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
148
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
149 FUNCTION {not}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
150 { { #0 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
151 { #1 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
152 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
153 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
154
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
155 FUNCTION {and}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
156 { 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
157 { pop$ #0 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
158 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
159 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
160
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
161 FUNCTION {or}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
162 { { pop$ #1 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
163 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
164 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
165 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
166
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
167 FUNCTION {new.block.checka}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
168 { empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
169 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
170 'new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
171 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
172 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
173
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
174 FUNCTION {new.block.checkb}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
175 { empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
176 swap$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
177 and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
178 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
179 'new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
180 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
181 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
182
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
183 FUNCTION {new.sentence.checka}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
184 { empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
185 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
186 'new.sentence
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
187 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
188 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
189
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
190 FUNCTION {new.sentence.checkb}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
191 { empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
192 swap$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
193 and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
194 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
195 'new.sentence
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
196 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
197 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
198
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
199 FUNCTION {field.or.null}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
200 { duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
201 { pop$ "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
202 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
203 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
204 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
205
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
206 FUNCTION {smallcaps}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
207 { duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
208 { pop$ "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
209 { "\textsc{" swap$ * "}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
210 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
211 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
212
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
213 FUNCTION {emphasize}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
214 { duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
215 { pop$ "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
216 { "\emph{" swap$ * "}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
217 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
218 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
219
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
220 INTEGERS { nameptr namesleft numnames }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
221
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
222 FUNCTION {format.names}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
223 { 's :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
224 #1 'nameptr :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
225 s num.names$ 'numnames :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
226 numnames 'namesleft :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
227 { namesleft #0 > }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
228 { s nameptr "{f{.\,}{.\nobreak\kern 0.33333em}}{vv~}{ll}{, jj}" format.name$ 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
229 nameptr #1 >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
230 { namesleft #1 >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
231 { ", " * t * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
232 { numnames #2 >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
233 { "," * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
234 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
235 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
236 t "others" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
237 { " et~al." * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
238 { " and " * t * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
239 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
240 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
241 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
242 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
243 't
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
244 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
245 nameptr #1 + 'nameptr :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
246 namesleft #1 - 'namesleft :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
247 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
248 while$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
249 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
250
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
251 FUNCTION {format.authors}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
252 { author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
253 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
254 { author format.names }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
255 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
256 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
257
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
258 FUNCTION {format.editors}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
259 { editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
260 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
261 { editor format.names
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
262 editor num.names$ #1 >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
263 { " (eds.)" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
264 { " (ed.)" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
265 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
266 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
267 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
268 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
269
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
270 FUNCTION {format.title}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
271 { title empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
272 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
273 { title}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
274 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
275 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
276
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
277 FUNCTION {n.dashify}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
278 { 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
279 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
280 { t empty$ not }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
281 { t #1 #1 substring$ "-" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
282 { t #1 #2 substring$ "--" = not
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
283 { "--" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
284 t #2 global.max$ substring$ 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
285 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
286 { { t #1 #1 substring$ "-" = }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
287 { "-" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
288 t #2 global.max$ substring$ 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
289 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
290 while$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
291 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
292 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
293 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
294 { t #1 #1 substring$ *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
295 t #2 global.max$ substring$ 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
296 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
297 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
298 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
299 while$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
300 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
301
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
302 FUNCTION {year.or.date}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
303 {
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
304 year empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
305 {date}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
306 {year}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
307 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
308 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
309
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
310 FUNCTION {format.journal}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
311 {
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
312 journal empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
313 {journaltitle}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
314 {journal}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
315 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
316 emphasize
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
317 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
318
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
319 FUNCTION {format.date}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
320 {
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
321 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
322 duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
323 year.or.date duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
324 { swap$ 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
325 { "there's a month but no year in " cite$ * warning$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
326 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
327 *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
328 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
329 { swap$ 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
330 {
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
331 swap$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
332 " " * swap$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
333 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
334 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
335 *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
336 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
337 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
338 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
339
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
340 FUNCTION {format.vol.year}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
341 { volume field.or.null
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
342 " (" format.date * ")" * *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
343 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
344
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
345
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
346 FUNCTION {format.btitle}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
347 { title emphasize
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
348 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
349
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
350 FUNCTION {tie.or.space.connect}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
351 { duplicate$ text.length$ #3 <
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
352 { "~" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
353 { " " }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
354 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
355 swap$ * *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
356 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
357
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
358 FUNCTION {either.or.check}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
359 { empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
360 'pop$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
361 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
362 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
363 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
364
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
365 FUNCTION {format.bvolume}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
366 { volume empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
367 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
368 { "volume" volume tie.or.space.connect
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
369 series empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
370 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
371 { " of " * series * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
372 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
373 "volume and number" number either.or.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
374 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
375 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
376 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
377
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
378 FUNCTION {format.number.series}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
379 { volume empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
380 { number empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
381 { series field.or.null }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
382 { output.state mid.sentence =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
383 { "number" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
384 { "Number" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
385 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
386 number tie.or.space.connect
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
387 series empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
388 { "there's a number but no series in " cite$ * warning$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
389 { " in " * series * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
390 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
391 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
392 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
393 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
394 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
395 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
396 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
397
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
398 FUNCTION {format.edition}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
399 { edition empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
400 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
401 { output.state mid.sentence =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
402 { edition "l" change.case$ " edition" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
403 { edition "t" change.case$ " edition" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
404 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
405 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
406 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
407 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
408
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
409 INTEGERS { multiresult }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
410
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
411 FUNCTION {multi.page.check}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
412 { 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
413 #0 'multiresult :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
414 { multiresult not
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
415 t empty$ not
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
416 and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
417 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
418 { t #1 #1 substring$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
419 duplicate$ "-" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
420 swap$ duplicate$ "," =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
421 swap$ "+" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
422 or or
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
423 { #1 'multiresult := }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
424 { t #2 global.max$ substring$ 't := }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
425 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
426 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
427 while$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
428 multiresult
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
429 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
430
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
431 FUNCTION {format.pages}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
432 { pages empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
433 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
434 { pages multi.page.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
435 { "" pages n.dashify tie.or.space.connect }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
436 { "" pages tie.or.space.connect }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
437 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
438 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
439 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
440 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
441
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
442 FUNCTION {format.vol.num.pages}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
443 { volume field.or.null
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
444 number empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
445 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
446 { "(" number * ")" * *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
447 volume empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
448 { "there's a number but no volume in " cite$ * warning$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
449 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
450 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
451 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
452 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
453 pages empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
454 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
455 { duplicate$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
456 { pop$ format.pages }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
457 { ":" * pages n.dashify * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
458 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
459 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
460 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
461 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
462
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
463 FUNCTION {format.chapter.pages}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
464 { chapter empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
465 'format.pages
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
466 { type empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
467 { "chapter" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
468 { type "l" change.case$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
469 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
470 chapter tie.or.space.connect
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
471 pages empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
472 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
473 { ", " * format.pages * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
474 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
475 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
476 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
477 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
478
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
479 FUNCTION {format.in.ed.booktitle}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
480 { booktitle empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
481 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
482 { editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
483 { "in " booktitle emphasize * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
484 { "in " booktitle emphasize * ", " * format.editors * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
485 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
486 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
487 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
488 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
489
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
490 FUNCTION {empty.misc.check}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
491 { author empty$ title empty$ howpublished empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
492 month empty$ year empty$ note empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
493 and and and and and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
494 key empty$ not and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
495 { "all relevant fields are empty in " cite$ * warning$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
496 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
497 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
498 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
499
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
500 FUNCTION {format.thesis.type}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
501 { type empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
502 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
503 { pop$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
504 type "t" change.case$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
505 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
506 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
507 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
508
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
509 FUNCTION {format.tr.number}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
510 { type empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
511 { "Technical Report" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
512 'type
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
513 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
514 number empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
515 { "t" change.case$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
516 { number tie.or.space.connect }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
517 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
518 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
519
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
520 FUNCTION {format.article.crossref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
521 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
522 { journal empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
523 { "need key or journal for " cite$ * " to crossref " * crossref *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
524 warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
525 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
526 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
527 { "in \emph{" journal * "\/}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
528 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
529 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
530 { "in " key * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
531 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
532 " \cite{" * crossref * "}" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
533 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
534
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
535 FUNCTION {format.crossref.editor}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
536 { editor #1 "{vv~}{ll}" format.name$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
537 editor num.names$ duplicate$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
538 #2 >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
539 { pop$ " et~al." * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
540 { #2 <
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
541 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
542 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
543 { " et~al." * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
544 { " and " * editor #2 "{vv~}{ll}" format.name$ * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
545 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
546 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
547 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
548 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
549 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
550 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
551
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
552 FUNCTION {format.book.crossref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
553 { volume empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
554 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
555 "in "
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
556 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
557 { "Volume" volume tie.or.space.connect
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
558 " of " *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
559 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
560 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
561 editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
562 editor field.or.null author field.or.null =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
563 or
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
564 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
565 { series empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
566 { "need editor, key, or series for " cite$ * " to crossref " *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
567 crossref * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
568 "" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
569 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
570 { "\emph{" * series * "\/}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
571 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
572 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
573 { key * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
574 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
575 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
576 { format.crossref.editor * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
577 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
578 " \cite{" * crossref * "}" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
579 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
580
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
581 FUNCTION {format.incoll.inproc.crossref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
582 { editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
583 editor field.or.null author field.or.null =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
584 or
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
585 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
586 { booktitle empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
587 { "need editor, key, or booktitle for " cite$ * " to crossref " *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
588 crossref * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
589 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
590 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
591 { "in \emph{" booktitle * "\/}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
592 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
593 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
594 { "in " key * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
595 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
596 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
597 { "in " format.crossref.editor * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
598 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
599 " \cite{" * crossref * "}" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
600 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
601
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
602 FUNCTION {eprint.version}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
603 {
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
604 eprint empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
605 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
606 { version empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
607 { eprint }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
608 { eprint "v" * version * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
609 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
610 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
611 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
612 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
613
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
614 FUNCTION {format.hal}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
615 { eprint empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
616 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
617 { "\href{https://hal.archives-ouvertes.fr/" eprint.version *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
618 "}{\nolinkurl{hal-" * eprint.version "L" change.case$ * "}}" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
619 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
620 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
621 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
622
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
623 FUNCTION {format.arxiv}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
624 { eprint empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
625 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
626 { "\href{https://arxiv.org/abs/" eprint.version *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
627 "}{\nolinkurl{arXiv:" * eprint.version * "}}" *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
628 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
629 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
630 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
631
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
632 FUNCTION {format.eprint}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
633 { eprinttype empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
634 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
635 { eprinttype "l" change.case$ "hal" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
636 { format.hal }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
637 { format.arxiv }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
638 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
639 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
640 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
641 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
642
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
643 FUNCTION {format.doi}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
644 { doi empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
645 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
646 { "\href{https://dx.doi.org/" doi * "}{\nolinkurl{doi:" * doi "l" change.case$ * "}}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
647 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
648 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
649
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
650 FUNCTION {format.url}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
651 { url empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
652 { "" }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
653 { urldate empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
654 { "\url{" url * "}" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
655 { "\url{" url * "} (visited " * urldate * ")" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
656 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
657 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
658 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
659 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
660
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
661 FUNCTION {article}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
662 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
663 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
664 format.title "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
665 format.journal "journal" output.check add.blank
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
666 format.vol.year output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
667 format.pages output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
668 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
669 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
670 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
671 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
672 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
673 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
674 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
675
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
676 FUNCTION {book}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
677 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
678 author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
679 { format.editors "author and editor" output.check }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
680 { format.authors output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
681 "author and editor" editor either.or.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
682 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
683 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
684 format.btitle "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
685 format.bvolume output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
686 format.number.series output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
687 publisher "publisher" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
688 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
689 format.edition output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
690 format.date output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
691 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
692 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
693 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
694 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
695 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
696
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
697 FUNCTION {booklet}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
698 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
699 format.authors output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
700 format.title "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
701 howpublished address new.block.checkb
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
702 howpublished output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
703 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
704 format.date output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
705 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
706 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
707 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
708 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
709 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
710 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
711
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
712 FUNCTION {inbook}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
713 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
714 author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
715 { format.editors "author and editor" output.check }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
716 { format.authors output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
717 crossref missing$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
718 { "author and editor" editor either.or.check }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
719 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
720 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
721 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
722 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
723 format.title "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
724 crossref missing$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
725 { format.in.ed.booktitle "booktitle" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
726 format.bvolume output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
727 format.number.series output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
728 publisher "publisher" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
729 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
730 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
731 { format.book.crossref output.nonnull }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
732 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
733 format.edition output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
734 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
735 format.chapter.pages "chapter and pages" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
736 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
737 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
738 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
739 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
740 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
741 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
742 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
743
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
744 FUNCTION {incollection}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
745 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
746 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
747 format.title "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
748 crossref missing$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
749 { format.in.ed.booktitle "booktitle" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
750 format.bvolume output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
751 format.number.series output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
752 publisher "publisher" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
753 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
754 format.edition output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
755 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
756 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
757 { format.incoll.inproc.crossref output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
758 format.chapter.pages output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
759 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
760 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
761 format.chapter.pages output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
762 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
763 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
764 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
765 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
766 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
767 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
768 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
769
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
770 FUNCTION {proceedings}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
771 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
772 editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
773 { organization output }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
774 { format.editors output.nonnull }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
775 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
776 format.btitle "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
777 format.bvolume output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
778 format.number.series output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
779 address empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
780 { editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
781 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
782 { organization output }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
783 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
784 publisher output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
785 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
786 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
787 { address output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
788 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
789 editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
790 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
791 { organization output }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
792 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
793 publisher output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
794 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
795 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
796 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
797 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
798 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
799 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
800 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
801 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
802 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
803
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
804 FUNCTION {inproceedings}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
805 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
806 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
807 format.title "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
808 crossref missing$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
809 { format.in.ed.booktitle "booktitle" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
810 format.bvolume output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
811 format.number.series output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
812 publisher "publisher" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
813 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
814 format.edition output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
815 format.date output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
816 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
817 { format.incoll.inproc.crossref output.nonnull }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
818 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
819 format.pages output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
820 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
821 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
822 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
823 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
824 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
825 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
826 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
827
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
828 FUNCTION {conference} { inproceedings }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
829
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
830 FUNCTION {manual}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
831 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
832 author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
833 { organization empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
834 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
835 { organization output.nonnull }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
836 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
837 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
838 { format.authors output.nonnull }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
839 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
840 format.btitle "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
841 author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
842 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
843 { organization output }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
844 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
845 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
846 format.edition output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
847 format.date output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
848 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
849 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
850 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
851 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
852 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
853 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
854 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
855
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
856 FUNCTION {mastersthesis}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
857 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
858 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
859 format.btitle "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
860 "Master's thesis" format.thesis.type output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
861 school "school" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
862 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
863 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
864 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
865 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
866 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
867 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
868 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
869 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
870 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
871
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
872 FUNCTION {phdthesis}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
873 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
874 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
875 format.btitle "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
876 "PhD thesis" format.thesis.type output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
877 school "school" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
878 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
879 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
880 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
881 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
882 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
883 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
884 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
885 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
886 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
887
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
888 FUNCTION {techreport}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
889 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
890 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
891 format.title "title" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
892 format.tr.number output.nonnull
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
893 institution "institution" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
894 address output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
895 format.date "year" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
896 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
897 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
898 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
899 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
900 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
901
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
902 FUNCTION {unpublished}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
903 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
904 format.authors "author" output.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
905 format.title "title" output.check add.blank
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
906 format.vol.year output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
907 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
908 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
909 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
910 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
911 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
912 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
913
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
914 FUNCTION {misc}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
915 { output.bibitem
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
916 format.authors output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
917 format.title output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
918 howpublished output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
919 format.date output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
920 format.doi output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
921 format.eprint output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
922 format.url output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
923 new.block
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
924 note output
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
925 fin.entry
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
926 empty.misc.check
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
927 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
928
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
929 FUNCTION {default.type} { misc }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
930
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
931 MACRO {jan} {"Jan."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
932
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
933 MACRO {feb} {"Feb."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
934
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
935 MACRO {mar} {"Mar."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
936
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
937 MACRO {apr} {"Apr."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
938
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
939 MACRO {may} {"May"}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
940
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
941 MACRO {jun} {"June"}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
942
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
943 MACRO {jul} {"July"}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
944
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
945 MACRO {aug} {"Aug."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
946
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
947 MACRO {sep} {"Sept."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
948
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
949 MACRO {oct} {"Oct."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
950
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
951 MACRO {nov} {"Nov."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
952
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
953 MACRO {dec} {"Dec."}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
954
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
955 READ
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
956
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
957 FUNCTION {sortify}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
958 { purify$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
959 "l" change.case$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
960 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
961
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
962 INTEGERS { len }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
963
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
964 FUNCTION {chop.word}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
965 { 's :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
966 'len :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
967 s #1 len substring$ =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
968 { s len #1 + global.max$ substring$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
969 's
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
970 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
971 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
972
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
973 FUNCTION {sort.format.names}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
974 { 's :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
975 #1 'nameptr :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
976 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
977 s num.names$ 'numnames :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
978 numnames 'namesleft :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
979 { namesleft #0 > }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
980 { nameptr #1 >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
981 { " " * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
982 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
983 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
984 s nameptr "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}" format.name$ 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
985 nameptr numnames = t "others" = and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
986 { "et al" * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
987 { t sortify * }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
988 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
989 nameptr #1 + 'nameptr :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
990 namesleft #1 - 'namesleft :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
991 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
992 while$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
993 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
994
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
995 FUNCTION {sort.format.title}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
996 { 't :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
997 "A " #2
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
998 "An " #3
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
999 "The " #4 t chop.word
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1000 chop.word
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1001 chop.word
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1002 sortify
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1003 #1 global.max$ substring$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1004 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1005
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1006 FUNCTION {author.sort}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1007 { author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1008 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1009 { "to sort, need author or key in " cite$ * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1010 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1011 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1012 { key sortify }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1013 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1014 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1015 { author sort.format.names }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1016 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1017 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1018
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1019 FUNCTION {author.editor.sort}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1020 { author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1021 { editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1022 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1023 { "to sort, need author, editor, or key in " cite$ * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1024 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1025 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1026 { key sortify }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1027 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1028 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1029 { editor sort.format.names }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1030 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1031 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1032 { author sort.format.names }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1033 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1034 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1035
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1036 FUNCTION {author.organization.sort}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1037 { author empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1038 { organization empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1039 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1040 { "to sort, need author, organization, or key in " cite$ * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1041 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1042 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1043 { key sortify }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1044 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1045 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1046 { "The " #4 organization chop.word sortify }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1047 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1048 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1049 { author sort.format.names }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1050 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1051 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1052
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1053 FUNCTION {editor.organization.sort}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1054 { editor empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1055 { organization empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1056 { key empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1057 { "to sort, need editor, organization, or key in " cite$ * warning$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1058 ""
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1059 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1060 { key sortify }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1061 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1062 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1063 { "The " #4 organization chop.word sortify }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1064 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1065 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1066 { editor sort.format.names }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1067 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1068 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1069
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1070 FUNCTION {presort}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1071 { type$ "book" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1072 type$ "inbook" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1073 or
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1074 'author.editor.sort
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1075 { type$ "proceedings" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1076 'editor.organization.sort
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1077 { type$ "manual" =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1078 'author.organization.sort
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1079 'author.sort
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1080 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1081 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1082 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1083 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1084 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1085 " "
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1086 *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1087 year field.or.null sortify
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1088 *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1089 " "
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1090 *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1091 title field.or.null
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1092 sort.format.title
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1093 *
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1094 #1 entry.max$ substring$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1095 'sort.key$ :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1096 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1097
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1098 ITERATE {presort}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1099
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1100 SORT
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1101
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1102 STRINGS { longest.label }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1103
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1104 INTEGERS { number.label longest.label.width }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1105
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1106 FUNCTION {initialize.longest.label}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1107 { "" 'longest.label :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1108 #1 'number.label :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1109 #0 'longest.label.width :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1110 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1111
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1112 FUNCTION {longest.label.pass}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1113 { number.label int.to.str$ 'label :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1114 number.label #1 + 'number.label :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1115 label width$ longest.label.width >
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1116 { label 'longest.label :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1117 label width$ 'longest.label.width :=
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1118 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1119 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1120 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1121 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1122
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1123 EXECUTE {initialize.longest.label}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1124
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1125 ITERATE {longest.label.pass}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1126
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1127 FUNCTION {begin.bib}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1128 { preamble$ empty$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1129 'skip$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1130 { preamble$ write$ newline$ }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1131 if$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1132 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1133 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1134
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1135 EXECUTE {begin.bib}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1136
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1137 EXECUTE {init.state.consts}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1138
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1139 ITERATE {call.type$}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1140
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1141 FUNCTION {end.bib}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1142 { newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1143 "\end{thebibliography}" write$ newline$
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1144 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1145
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1146 EXECUTE {end.bib}

mercurial