Debian Codegraph @

test/testbib4.bib

raw
1 % /u/sy/beebe/tex/bibclean/testbib4.org, Mon Jan 18 09:52:55 1993
2 % Edit by Nelson H. F. Beebe <[email protected]>
3
4 % This file stress-tests bibclean and biblex by
5 % presenting them with input that has spaces
6 % liberally sprinkled throughout, especially
7 % between tokens. It is designed as a useful test
8 % of a proposed grammar for BibTeX.
9
10 %=================================================
11 % Test 1: simple case without extra spaces
12
13 @preamble{"anythinggoes"}
14
15 @include{a-file-name-goes-here}
16
17 @string{abb="abbreviation"}
18
19 @Article{the-key,
20 author="A. U. Thor",
21 title="The Title",
22 journal="The Journal",
23 year="1993",
24 volume="23",
25 number="1",
26 pages="17--21",
27 month=jan,
28 bibdate="Mon Jan 18 09:59:44 1993",
29 }
30
31 %=================================================
32 % Test 2: simple one-line cases with intervening
33 % spaces
34
35 @ preamble { "anything goes" }
36
37 @ include { a-file-name-goes-here }
38
39 @ string { abb = "abbreviation" }
40
41 @ Article {the-key ,
42 author = "A. U. Thor" ,
43 title = "The Title" ,
44 journal = "The Journal" ,
45 year = "1993" ,
46 volume = "23" ,
47 number = "1" ,
48 pages = "17--21" ,
49 month = jan ,
50 bibdate = "Mon Jan 18 09:59:44 1993" ,
51 }
52
53 %=================================================
54 % Test 3: change blanks to newlines in previous
55 % test
56
57 @
58 preamble
59 {
60 "anything
61 goes"
62 }
63
64 @
65 include
66 {
67 a-file-name-goes-here
68 }
69
70
71 @
72 string
73 {
74 abb
75 =
76 "abbreviation"
77 }
78
79
80 @
81 Article
82 {the-key
83 ,
84 author
85 =
86 "A. U. Thor"
87 ,
88 title
89 =
90 "The Title"
91 ,
92 journal
93 =
94 "The Journal"
95 ,
96 year
97 =
98 "1993"
99 ,
100 volume
101 =
102 "23"
103 ,
104 number
105 =
106 "1"
107 ,
108 pages
109 =
110 "17--21"
111 ,
112 month
113 =
114 jan
115 ,
116 bibdate
117 =
118 "Mon Jan 18 09:59:44 1993"
119 ,
120 }
121
122 %=================================================
123 % Test 4: change newlines to doubled newlines in
124 % previous test
125
126 @
127
128 preamble
129
130 {
131
132 "anything
133
134 goes"
135
136 }
137
138
139
140 @
141
142 include
143
144 {
145
146 a-file-name-goes-here
147
148 }
149
150
151
152 @
153
154 string
155
156 {
157
158 abb
159
160 =
161
162 "abbreviation"
163
164 }
165
166
167
168
169
170 @
171
172 Article
173
174 {the-key
175
176 ,
177
178 author
179
180 =
181
182 "A. U. Thor"
183
184 ,
185
186 title
187
188 =
189
190 "The Title"
191
192 ,
193
194 journal
195
196 =
197
198 "The Journal"
199
200 ,
201
202 year
203
204 =
205
206 "1993"
207
208 ,
209
210 volume
211
212 =
213
214 "23"
215
216 ,
217
218 number
219
220 =
221
222 "1"
223
224 ,
225
226 pages
227
228 =
229
230 "17--21"
231
232 ,
233
234 month
235
236 =
237
238 jan
239
240 ,
241
242 bibdate
243
244 =
245
246 "Mon Jan 18 09:59:44 1993"
247
248 ,
249
250 }
251
252 %=================================================
253 % Test 5: Change newline to
254 % newline-comment-newline in previous test.
255
256 @
257 % this is a comment
258 preamble
259 % this is a comment
260 {
261 % this is a comment
262 "anything" #
263 % this is a comment
264 "goes"
265 % this is a comment
266 }
267 % this is a comment
268
269 % this is a comment
270 @
271 % this is a comment
272 include
273 % this is a comment
274 {
275 % this is a comment
276 a-file-name-goes-here
277 % this is a comment
278 }
279 % this is a comment
280
281
282 % this is a comment
283 @
284 % this is a comment
285 string
286 % this is a comment
287 {
288 % this is a comment
289 abb
290 % this is a comment
291 =
292 % this is a comment
293 "abbreviation"
294 % this is a comment
295 }
296 % this is a comment
297
298 % this is a comment
299
300 % this is a comment
301 @
302 % this is a comment
303 Article
304 % this is a comment
305 {the-key
306 % this is a comment
307 ,
308 % this is a comment
309 author
310 % this is a comment
311 =
312 % this is a comment
313 "A. U. Thor"
314 % this is a comment
315 ,
316 % this is a comment
317 title
318 % this is a comment
319 =
320 % this is a comment
321 "The Title"
322 % this is a comment
323 ,
324 % this is a comment
325 journal
326 % this is a comment
327 =
328 % this is a comment
329 "The Journal"
330 % this is a comment
331 ,
332 % this is a comment
333 year
334 % this is a comment
335 =
336 % this is a comment
337 "1993"
338 % this is a comment
339 ,
340 % this is a comment
341 volume
342 % this is a comment
343 =
344 % this is a comment
345 "23"
346 % this is a comment
347 ,
348 % this is a comment
349 number
350 % this is a comment
351 =
352 % this is a comment
353 "1"
354 % this is a comment
355 ,
356 % this is a comment
357 pages
358 % this is a comment
359 =
360 % this is a comment
361 "17--21"
362 % this is a comment
363 ,
364 % this is a comment
365 month
366 % this is a comment
367 =
368 % this is a comment
369 jan
370 % this is a comment
371 ,
372 % this is a comment
373 bibdate
374 % this is a comment
375 =
376 % this is a comment
377 "Mon Jan 18 09:59:44 1993"
378 % this is a comment
379 ,
380 % this is a comment
381 }
382 % this is a comment
383
384 %=================================================
385 % Test 7: other kinds of embedded space characters
386 % We add CR before LF, and insert FF VT before
387 % each entry.
388
389 @preamble{"anythinggoes"}
390
391 @include{a-file-name-goes-here}
392
393 @string{abb="abbreviation"}
394
395 @Article{the-key,
396 author="A. U. Thor",
397 title="The Title",
398 journal="The Journal",
399 year="1993",
400 volume="23",
401 number="1",
402 pages="17--21",
403 month=jan,
404 bibdate="Mon Jan 18 09:59:44 1993",
405 }
406