Debian Codegraph @

texmf-dist/bibtex/bst/bestpapers/bestpapers-export.bst

raw
1 %% besstpapers-export.bst
2 %%
3 %% This file is in the public domain, see
4 %% https://creativecommons.org/publicdomain/zero/1.0/legalcode
5 %%
6 %%
7 %% Based on export.bst
8 %%
9 %% EXPORT.BST COPYRIGHT STATEMENT
10 %% [Not applicable here since the name is changed but preserved
11 %% for completeness]
12 %%
13 %% This is file `export.bst',
14 %% generated with the docstrip utility.
15 %%
16 %% The original source files were:
17 %%
18 %% bibexport.dtx (with options: `export')
19 %%
20 %% (c) 2011/11/28 Nicolas Markey <markey at lsv dot ens-cachan dot fr>
21 %%
22 %% This work may be distributed and/or modified under the conditions of
23 %% the LaTeX Project Public License, either version 1.3 of this license
24 %% or (at your option) any later version. The latest version of this
25 %% license is in
26 %%
27 %% http://www.latex-project.org/lppl.txt
28 %%
29 %% and version 1.3 or later is part of all distributions of LaTeX version
30 %% 2005/12/01 or later.
31 %%
32 %% This work has the LPPL maintenance status `maintained'.
33 %% The Current Maintainer of this work is Nicolas Markey.
34 %%
35 %% END EXPORT.BST COPYRIGHT STATEMENT
36 %%
37 %% \CharacterTable
38 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
39 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
40 %% Digits \0\1\2\3\4\5\6\7\8\9
41 %% Exclamation \! Double quote \" Hash (number) \#
42 %% Dollar \$ Percent \% Ampersand \&
43 %% Acute accent \' Left paren \( Right paren \)
44 %% Asterisk \* Plus \+ Comma \,
45 %% Minus \- Point \. Solidus \/
46 %% Colon \: Semicolon \; Less than \<
47 %% Equals \= Greater than \> Question mark \?
48 %% Commercial at \@ Left bracket \[ Backslash \\
49 %% Right bracket \] Circumflex \^ Underscore \_
50 %% Grave accent \` Left brace \{ Vertical bar \|
51 %% Right brace \} Tilde \~}
52 %%
53 FUNCTION{left.width}{#18}
54 FUNCTION{right.width}{#55}
55 FUNCTION{url.right.width}{#61}
56 FUNCTION{left.short.width}{#10} %% for @preamble
57 FUNCTION{right.long.width}{#63}
58 FUNCTION{left.delim}{"{"}
59 FUNCTION{right.delim}{"}"}
60 ENTRY{
61 address
62 author
63 booktitle
64 chapter
65 edition
66 editor
67 howpublished
68 institution
69 journal
70 key
71 month
72 note
73 number
74 organization
75 pages
76 publisher
77 school
78 series
79 title
80 type
81 volume
82 year
83 abstract
84 doi
85 eid
86 isbn
87 issn
88 language
89 url
90 score
91 max.best.papers
92 }{}{}
93 FUNCTION{not}
94 {
95 {#0}
96 {#1}
97 if$
98 }
99 FUNCTION{and}
100 {
101 'skip$
102 {pop$ #0}
103 if$
104 }
105 FUNCTION{or}
106 {
107 {pop$ #1}
108 'skip$
109 if$
110 }
111
112 INTEGERS{left.length right.length}
113 STRINGS{ s t }
114 STRINGS { final.max.best.papers }
115 INTEGERS {num.seq printed.all }
116
117 FUNCTION{space.complete}
118 {
119 'left.length :=
120 duplicate$ text.length$ left.length swap$ -
121 {duplicate$ #0 >}
122 {
123 swap$ " " * swap$ #1 -
124 }
125 while$
126 pop$
127 }
128 FUNCTION{split.string}
129 {
130 'right.length :=
131 duplicate$ right.length #1 + #1 substring$ "" =
132 {""}
133 {
134 's :=
135 right.length
136 {duplicate$ duplicate$ s swap$ #1 substring$ " " = not and}
137 {#1 -}
138 while$
139 duplicate$ #2 <
140 {
141 pop$ " " s * ""
142 }
143 {
144 duplicate$ s swap$ #1 swap$ substring$
145 swap$
146 s swap$ global.max$ substring$
147 }
148 if$
149 }
150 if$
151 }
152 FUNCTION{split.url}
153 {
154 'right.length :=
155 duplicate$ right.length #1 + #1 substring$ "" =
156 {""}
157 {
158 's :=
159 right.length
160 {duplicate$ duplicate$ s swap$ #1 substring$ "/" = not and}
161 {#1 -}
162 while$
163 duplicate$ #2 <
164 {
165 pop$ " " s * ""
166 }
167 {
168 duplicate$ s swap$ #1 swap$ substring$
169 swap$ #1 +
170 s swap$ global.max$ substring$
171 }
172 if$
173 }
174 if$
175 }
176 FUNCTION{split.name}
177 {
178 'right.length :=
179 duplicate$ right.length #1 + #1 substring$ "" =
180 {""}
181 {
182 's :=
183 right.length
184 {duplicate$ duplicate$ s swap$ #5 substring$ " and " = not and}
185 {#1 -}
186 while$
187 duplicate$ #2 <
188 {
189 pop$ " " s * ""
190 }
191 {
192 #4 + duplicate$ s swap$ #1 swap$ substring$
193 swap$
194 s swap$ global.max$ substring$
195 }
196 if$
197 }
198 if$
199 }
200 FUNCTION{field.export}
201 {
202 duplicate$ missing$
203 'skip$
204 {
205 left.delim swap$ * right.delim *
206 swap$
207 " " swap$ * " = " * left.width space.complete
208 swap$ "," *
209 {duplicate$ "" = not}
210 {
211 right.width split.string 't :=
212 *
213 write$ newline$
214 "" left.width space.complete t
215 }
216 while$
217 }
218 if$
219 pop$ pop$
220 }
221 FUNCTION{abbrv.export}
222 {
223 duplicate$ missing$
224 'skip$
225 {
226 swap$
227 " " swap$ * " = " * left.width space.complete
228 swap$ "," *
229 {duplicate$ "" = not}
230 {
231 right.width split.string 't :=
232 *
233 write$ newline$
234 "" left.width space.complete t
235 }
236 while$
237 }
238 if$
239 pop$ pop$
240 }
241 FUNCTION{name.export}
242 {
243 duplicate$ missing$
244 'skip$
245 {
246 left.delim swap$ * right.delim *
247 swap$
248 " " swap$ * " = " * left.width space.complete
249 swap$ "," *
250 {duplicate$ "" = not}
251 {
252 right.width split.name 't :=
253 *
254 write$ newline$
255 "" left.width space.complete t
256 }
257 while$
258 }
259 if$
260 pop$ pop$
261 }
262 FUNCTION{url.export}
263 {
264 duplicate$ missing$
265 'skip$
266 {
267 left.delim swap$ * right.delim *
268 swap$
269 " " swap$ * " = " * left.width space.complete
270 swap$ "," *
271 {duplicate$ "" = not}
272 {
273 url.right.width split.url 't :=
274 *
275 write$ newline$
276 "" left.width space.complete t
277 }
278 while$
279 }
280 if$
281 pop$ pop$
282 }
283 MACRO{jan}{"export-jan"}
284 MACRO{feb}{"export-feb"}
285 MACRO{mar}{"export-mar"}
286 MACRO{apr}{"export-apr"}
287 MACRO{may}{"export-may"}
288 MACRO{jun}{"export-jun"}
289 MACRO{jul}{"export-jul"}
290 MACRO{aug}{"export-aug"}
291 MACRO{sep}{"export-sep"}
292 MACRO{oct}{"export-oct"}
293 MACRO{nov}{"export-nov"}
294 MACRO{dec}{"export-dec"}
295 MACRO{acmcs}{"export-acmcs"}
296 MACRO{acta}{"export-acta"}
297 MACRO{cacm}{"export-cacm"}
298 MACRO{ibmjrd}{"export-ibmjrd"}
299 MACRO{ibmsj}{"export-ibmsj"}
300 MACRO{ieeese}{"export-ieeese"}
301 MACRO{ieeetc}{"export-ieeetc"}
302 MACRO{ieeetcad}{"export-ieeetcad"}
303 MACRO{ipl}{"export-ipl"}
304 MACRO{jacm}{"export-jacm"}
305 MACRO{jcss}{"export-jcss"}
306 MACRO{scp}{"export-scp"}
307 MACRO{sicomp}{"export-sicomp"}
308 MACRO{tocs}{"export-tocs"}
309 MACRO{tods}{"export-tods"}
310 MACRO{tog}{"export-tog"}
311 MACRO{toms}{"export-toms"}
312 MACRO{toois}{"export-poois"}
313 MACRO{toplas}{"export-toplas"}
314 MACRO{tcs}{"export-tcs"}
315 INTEGERS{ intxt }
316 FUNCTION{remove.exports.from.months}
317 {
318 #0 'intxt :=
319 duplicate$ missing$
320 'skip$
321 {'t :=
322 ""
323 {t #1 #1 substring$ "" = not}
324 {
325 t #1 #7 substring$ "export-" =
326 {intxt
327 {right.delim * #0 'intxt :=}
328 'skip$
329 if$
330 duplicate$ "" =
331 'skip$
332 {" # " *}
333 if$
334 t #8 #3 substring$ *
335 t #11 global.max$ substring$ 't :=}
336 {intxt
337 'skip$
338 {duplicate$ "" =
339 {}
340 {" # " *}
341 if$
342 left.delim * #1 'intxt :=}
343 if$
344 t #1 #1 substring$ *
345 t #2 global.max$ substring$ 't :=}
346 if$
347 }
348 while$
349 intxt
350 {right.delim *}
351 'skip$
352 if$
353 }
354 if$
355 }
356 FUNCTION{remove.export.from.journals}
357 {
358 duplicate$ missing$
359 'skip$
360 {
361 duplicate$ #1 #7 substring$ "export-" =
362 {#8 global.max$ substring$}
363 {left.delim swap$
364 right.delim * *}
365 if$
366 }
367 if$
368 }
369 FUNCTION{entry.export.standard}
370 {
371 "address" address field.export
372 "author" author name.export
373 "booktitle" booktitle field.export
374 "chapter" chapter field.export
375 "crossref" crossref field.export
376 "edition" edition field.export
377 "editor" editor name.export
378 "howpublished" howpublished field.export
379 "institution" institution field.export
380 "journal" journal remove.export.from.journals abbrv.export
381 "key" key field.export
382 "month" month remove.exports.from.months abbrv.export
383 "note" note field.export
384 "number" number field.export
385 "organization" organization field.export
386 "pages" pages field.export
387 "publisher" publisher field.export
388 "school" school field.export
389 "series" series field.export
390 "type" type field.export
391 "title" title field.export
392 "volume" volume field.export
393 "year" year field.export
394 }
395 FUNCTION{entry.export.extra}
396 {
397 "abstract" abstract field.export
398 "doi" doi field.export
399 "eid" eid field.export
400 "isbn" isbn field.export
401 "issn" issn field.export
402 "language" language field.export
403 "url" url url.export
404 "score" score field.export
405 "max.best.papers" max.best.papers field.export
406 }
407 FUNCTION{entry.export}
408 {
409 entry.export.standard
410 entry.export.extra
411 }
412 FUNCTION{export}
413 {
414 "@" type$ * "{" * cite$ * "," * write$ newline$
415 entry.export
416 "}" write$ newline$ newline$
417 }
418 FUNCTION{preamble}
419 {
420 preamble$ duplicate$ "" =
421 'pop$
422 {
423 ",-------------------." write$ newline$
424 "| PREAMBLE |" write$ newline$
425 "`-------------------'" write$ newline$ newline$
426 "@preamble{ " swap$
427 quote$ swap$ * quote$ *
428 {duplicate$ "" = not}
429 {
430 right.long.width split.string 't :=
431 *
432 write$ newline$
433 "" left.short.width space.complete t
434 }
435 while$
436 "}" write$ newline$ newline$
437 pop$ pop$
438 }
439 if$
440 }
441 FUNCTION{header}
442 {
443 final.max.best.papers "" =
444 {"5" 'final.max.best.papers :=}
445 'skip$
446 if$
447 #0 'printed.all :=
448 newline$
449 }
450 FUNCTION{entries.header}
451 {
452 preamble$ "" =
453 'skip$
454 {
455 ",-------------------." write$ newline$
456 "| BIBTEX ENTRIES |" write$ newline$
457 "`-------------------'" write$ newline$ newline$
458 }
459 if$
460 }
461 FUNCTION{article}{export}
462 FUNCTION{book}{export}
463 FUNCTION{booklet}{export}
464 FUNCTION{conference}{export}
465 FUNCTION{habthesis}{export}
466 FUNCTION{inbook}{export}
467 FUNCTION{incollection}{export}
468 FUNCTION{inproceedings}{export}
469 FUNCTION{journals}{export}
470 FUNCTION{manual}{export}
471 FUNCTION{mastersthesis}{export}
472 FUNCTION{misc}{export}
473 FUNCTION{phdthesis}{export}
474 FUNCTION{proceedings}{export}
475 FUNCTION{techreport}{export}
476 FUNCTION{unpublished}{export}
477 FUNCTION{setup}{export}
478
479 FUNCTION {str.to.fix}
480 { "000000000" swap$ *
481 #-1 #10 substring$
482 }
483
484 FUNCTION {int.to.fix}
485 { "000000000" swap$ int.to.str$ *
486 #-1 #10 substring$
487 }
488
489
490 FUNCTION {presort}
491 { max.best.papers missing$
492 'skip$
493 {max.best.papers 'final.max.best.papers :=}
494 if$
495 score missing$
496 {"0"}
497 {score}
498 if$
499 str.to.fix
500 'sort.key$ :=
501 }
502
503
504
505 READ
506 ITERATE {presort}
507 SORT
508
509 EXECUTE{header}
510 EXECUTE{preamble}
511 EXECUTE{entries.header}
512
513 FUNCTION {print.entry}
514 { type$ "setup" =
515 'call.type$
516 { printed.all
517 'skip$
518 { num.seq #1 + 'num.seq :=
519 num.seq int.to.fix final.max.best.papers str.to.fix =
520 {#1 'printed.all :=}
521 'skip$
522 if$
523 call.type$
524 }
525 if$}
526 if$
527 }
528
529
530 REVERSE {print.entry}
531
532
533 %%
534 %%
535 %% End of file `export.bst'.