Debian Codegraph @

texmf-dist/bibtex/bst/din1505/plaindin.bst

raw
1 %% PLAINDIN.BST Ausgabe [8.2] 2006-01-02
2 %% mit doi-, urn-, url-Funktionen fuer Internetressourcen
3 %% ersetzt PLAINDIN.BST Ausgabe [8.1b3] 22.2.2005
4 %%
5 %%
6 %% K.F.Lorenzen (Copyright 1994-2006) email: [email protected]
7 %% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 %% PLAINDIN.BST wurde entwickelt aus Oren Patashnik's BibTeX standard
9 %% bibliography style `plain'. Dadurch ist es moeglich, eine vorgegebene
10 %% Literaturdatenbank ohne Aenderungen beliebig nach Us- oder deutscher
11 %% Zitierkonvention zu verarbeiten.
12 %% Mit PLAINDIN.BST werden Literaturverzeichnisse gemaess der deutschen
13 %% Zitiernorm DIN 1505 Teil 2 formatiert.
14 %% Analog zu den 4 US standard styles wird ein vollstaendiger Satz von
15 %% 4 DIN-gerechten bst-style Dateien veroeffentlicht (alphadin.bst,
16 %% plaindin.bst, unsrtdin.bst, abbrvdin.bst). Die gueltige Version
17 %% ist am schnellsten aus dem WWW ueber folgende URL zu beziehen
18 %% http://www.haw-hamburg.de/pers/Lorenzen/bibtex/
19 %% Stand: 2006-01-02
20 %% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 %% WAS IST PLAINDIN.BST ?
22 %% Dieser style produziert Literaturzitate in Literaturverzeichnissen
23 %% gemaess der deutschen Norm DIN 1505, Teil 2 vom Jan. 1984.
24 %% Die Literaturzitate werden alphabetisch nach Verfassern sortiert
25 %% und fortlaufend in eckigen Klammern gezaehlt. Die vorliegenden DIN-styles
26 %% gehen ueber die bibliographischen Beschraenkungen der Originalstyles hinaus.
27 %
28 %% Es werden nun auch Elektronische Online / Offline Ressourcen wie Internet-
29 %% quellen, CD-ROM usw. verarbeitet. Dazu kommen besondere Publikationsformen
30 %% wie Patente, Normen, Karten, Fernsehaufzeichnungen, Gesetzesstellen, Spiele.
31 %
32 %% Zur Gewaehrleistung der Allgemeingueltigkeit von bib-files gelten in den
33 %% DIN-styles die in der Tex-Literatur veroeffentlichten originalen
34 %% Definitionen und Regeln fuer die Publikationstypen (entry-types) und die
35 %% bibliographischen Felder (fields).
36 %% Treten kleinere "Schoenheitsfehler" im fertig gesetzten output auf,
37 %% lassen sich diese so gut wie immer durch eine veraenderte
38 %% Erfassung im bib-inputfile beseitigen. Oren Patashnik empfiehlt, die
39 %% Definition der Felder weit auszulegen. Last but not least koennen
40 %% Sie im output-file < *.bbl > noch letzte Hand zur Korrektur ansetzen.
41 %
42 %% WARN- UND FEHLERMELDUNGEN
43 %% Ursache von Warnmeldungen sind meistens fehlende Felder oder
44 %% Erfassungs-"Fehler". Letztere haengen teilweise mit den gegenueber US-
45 %% Gepflogenheiten andersartigen bibliographischen Regeln nach DIN 1505
46 %% zusammen. Sie sind also in Wahrheit keine "Fehler" und duerfen fast immer
47 %% ignoriert werden. Dennoch pruefen Sie diese Warnungen, um heraus zu finden,
48 %% ob Publikationstyp (=entry-type) und "fields" eventuell unzulaessig
49 %% kombiniert worden sind.
50 %% Echte Fehler ("errors") treten nur noch in Verbindung mit falscher
51 %% Erfassung auf (nach meinen Tests!). Pruefen Sie die Syntax, den entry-type
52 %% und die fields.
53 %% Zu guter letzt: Qualitaetsmasstab ist einzig der DIN-konforme output!
54 %%
55 %% DANKSAGUNG
56 %% Hartmut Lueddecke, HAW Hamburg, hat viele Verbesserungsvorschlaege
57 %% in die frueheren Versionen eingebracht. Ihm danke ich herzlich.
58 %% Patrick W. Daly, dem Entwickler des Natbib-Stils, verdanke ich viele
59 %% Anregungen und den steten Ansporn, die DIN-Stile zu verbessern.
60 %% Viele an dieser Stelle ungenannt bleibende Anwender haben mich in
61 %% den vergangenen Jahren auf Fehler oder Verbesserungsmoeglichkeiten
62 %% aufmerksam gemacht und so diesen Stil mitentwickelt. Ihnen gilt mein
63 %% besonderer Dank. Ihr Feedback ist immer willkommen und eine Ermunterung.
64 %%
65 %% Klaus F. Lorenzen
66 %%
67 %%
68 %%
69 %% HINWEIS: Neben den vier bibliographischen DIN 1505 Standard-Stilen
70 %% nach den Original-styles von Oren Patashnik
71 %% gibt es zusaetzlich vier DIN 1505 Modifikationen der style
72 %% Emulationen des NATBIB-Pakets von Patrick W.Daly.
73 %% In den NATBIB-Modifikationen werden jetzt alle von P.W. Daly
74 %% implementierten Zitierweisen des Autor-Jahr-Stils unterstuetzt.
75 %% Damit erhaelt der Anwender eine weit ueber die urspruenglichen
76 %% Standardstyles hinausreichende Flexibilitaet beim Zitieren.
77 %% Naeheres unter URL http://www.haw-hamburg.de/pers/Lorenzen/bibtex/
78 %%
79 %%
80 %% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81 % version 0.99c for BibTeX versions 0.99c or later, LaTeX2e
82 % Copyright (C) 1985, all rights reserved.
83 % Copying of this file is authorized only if either
84 % (1) you make absolutely no changes to your copy, including name, or
85 % (2) if you do make changes, you name it something other than
86 % plaindin.bst, unsrtdin.bst, alphadin.bst, and abbrvdin.bst.
87 % This restriction helps ensure that all standard styles are identical.
88 % The file btxbst.doc has the original documentation for style 'alpha'.
89 %%
90 %% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91 %%
92 %% NEUE FELDER
93 %% Zur Erfassung der neuen digitalen Online-Medien z.B. Internetquellen, E-journals, E-books,
94 %% E-mail u.a. gibt es die zusaetzlichen Felder: doi, url, urn, lastchecked
95 %% Internetquellen werden vorzugsweise mit dem BOOKLET-Typ erfasst.
96 %% Normen, Patente, Schutzrechte sind mit dem MISC-Typ zu erfassen.
97 %
98 %
99 ENTRY
100 { address %% Verlagsort
101 author %% persoenlicher Urheber eines Werkes
102 booktitle %% a) Gesamttitel eines mehrbaendigen Werkes
103 % %% b) Titel des Sammelwerks, das einzelne selbstaendige
104 % %% Beitraege mit eigenem Titel enthaelt (->incollection)
105 chapter %% Kapitel in einem Buch (Monographie)
106 doi %%% Digital Object Identifier
107 edition %% Auflagevermerk; bei selbst. elektron. Dok. == Version
108 editor %% Persoenl.Herausgeber oder Koerperschaftlicher Herausgeber
109 howpublished %% beliebiger Verlegervermerk: von wem, wo
110 institution %% Institution, die e.Verlagsfreie Veroeffentlichung betreibt
111 isbn %% Standardnr fuer Buecher
112 issn %% - " - : Zeitschriften u. Serien
113 journal %% Titel einer Zeitschrift
114 key %% Zusaetzlich vergebener Sortierschluessel, mitunter notwend.
115 lastchecked %% Online Abruf einer Internetquelle ( GRAY ); 22.1.2004
116 month %% naehere Bestimmung des Erscheinungsjahres (-> macro 's)
117 note %% freies Eingabefeld fuer zusaetzliche Informationen
118 number %% Mehrfachbedeutung in Abhaengigkeit vom Eingabetyp
119 organization %% a) Name der Organisation/des Organisators e. Tagung,Konferenz
120 % %% b) Name einer Firma/Gesellschaft, die ein ->manual herausgab
121 pages %% Umfangsangaben, meist Seitenzahlen
122 publisher %% Verlag
123 school %% Hochschule/Universitaet, die eine Dipl.-Arb./Dissertation veroeff.
124 series %% Titel e.Reihe, in der ein best. Buchtitel erschienen ist
125 title %% Titel einer (namentlich gekennzeichneten) Veroeffentlichung
126 type %% Zusatzfeld z.Kennzeichnung e.besonderen Publikationstyps
127 url %%% Internet-Adresse URL ( Uniform Resource Locator )
128 urn %% Persistent Identifier URN ( Uniform Resource Name )
129 volume %% a) Zaehlung bei einem mehrbaendigen Werk (-> book)
130 % %% b) Jahrgang einer Zeitschrift (-> article
131 year %% Erscheinungsjahr
132 }
133 {}
134 { label extra.label sort.label }
135
136 %% Variablen-Vereinbarungen
137
138 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
139
140 INTEGERS { colon.after period.dash }
141
142 INTEGERS { after.firstblock }
143
144 %% fuer die Namensbehandlung
145
146 INTEGERS { zahl lang }
147
148 INTEGERS { nameptr namesleft numnames }
149
150 INTEGERS { ptr collation collrest }
151
152 %% fuer die Sortierung bei der label-Produktion
153 INTEGERS { len }
154
155 INTEGERS { number.label longest.label.width }
156 %%----------------------------------------------------------------------
157
158 STRINGS { h s t u v w }
159
160 %% bei der Behandlung der Namen-Funktionsbezeichnung (Hrsg., Redakt., usw)
161 STRINGS { fkt }
162
163 %% fuer die label-Produktion
164 STRINGS { longest.label }
165
166 %%%----------------------------------------------------------------------------
167 % Einige Standardvorgaben, die vom Benutzer veraendert werden koennen.
168 %%%----------------------------------------------------------------------------
169
170 % Abkuerzung ("... und andere") bei Mehrverfasserquellen:
171
172 FUNCTION { ua.etal } { " u.\,a." } %% evtl. auch in eckigen Klammern " [u.\,a.]"
173
174 %% oder lateinisch: FUNCTION { ua.etal } { " et~al." }
175
176 FUNCTION { und } { " u. " }
177
178 %% oder ausgeschrieben: FUNCTION { und } { " und " }
179 %
180 % Einige elektronische Medien erhalten nach DIN 1505 eine "Ergaenzende Angabe"
181 % zusaetzlich zum materiellen Typ, z.B. CD ROM oder DVD u.a.:
182
183 FUNCTION { eress } { "Elektronische Ressource" }
184
185 %%%-----------------------------------------------------------------------------------
186
187
188 FUNCTION {init.state.consts}
189 { #0 'before.all :=
190 #1 'mid.sentence :=
191 #2 'after.sentence :=
192 #3 'after.block :=
193 #4 'colon.after :=
194 #5 'period.dash :=
195 #6 'after.firstblock :=
196 }
197
198 FUNCTION {output.nonnull}
199 { 's :=
200 output.state after.block =
201 { add.period$ write$
202 newline$
203 "\newblock " write$
204 }
205 { output.state before.all =
206 { write$ }
207 { output.state colon.after =
208 { ": " * write$
209 newline$
210 "\newblock " write$
211 }
212 { output.state period.dash =
213 { ". -- " * write$
214 newline$
215 "\newblock " write$
216 }
217 { output.state mid.sentence =
218 { ", " * write$ }
219 { output.state after.sentence =
220 { " " * write$ }
221 { output.state after.firstblock =
222 { add.period$ write$
223 newline$
224 "\newblock " write$
225 }
226 { write$
227 newline$
228 "\newblock " write$
229 }
230 if$
231 }
232 if$
233 }
234 if$
235 }
236 if$
237 }
238 if$
239 }
240 if$
241 after.block 'output.state :=
242 }
243 if$
244 s
245 }
246
247 FUNCTION {output}
248 { duplicate$ empty$
249 'pop$
250 'output.nonnull
251 if$
252 }
253
254 FUNCTION {output.check}
255 { 't :=
256 duplicate$ empty$
257 { pop$ "empty " t * " in " * cite$ * warning$ }
258 'output.nonnull
259 if$
260 }
261
262 FUNCTION {new.block}
263 { output.state before.all =
264 'skip$
265 { after.block 'output.state := }
266 if$
267 }
268
269 FUNCTION {not}
270 { { #0 }
271 { #1 }
272 if$
273 }
274
275 FUNCTION {and}
276 { 'skip$
277 { pop$ #0 }
278 if$
279 }
280
281 FUNCTION {or}
282 { { pop$ #1 }
283 'skip$
284 if$
285 }
286
287
288 FUNCTION {output.bibitem}
289 { newline$
290 "\bibitem[" write$
291 label write$%
292 "]{" write$
293 cite$ write$
294 "}" write$
295 newline$
296 ""
297 before.all 'output.state :=
298 }
299
300 FUNCTION {fin.entry}
301 { write$
302 newline$
303 }
304
305 FUNCTION {set.period.dash} %% Wenn ein ". - " die Satzteile trennen soll.!
306 { output.state before.all =
307 'skip$
308 { period.dash 'output.state := }
309 if$
310 }
311
312 FUNCTION {set.period.dash.check}
313 { empty$
314 'skip$
315 'set.period.dash
316 if$
317 }
318
319 FUNCTION {set.colon.after} %%$$$ Wenn ein ": " d. Satzteile trennen soll!
320 { output.state before.all =
321 'skip$
322 { colon.after 'output.state := }
323 if$
324 }
325
326 %% Wenn ein " " die Satzteile trennen soll.!
327 FUNCTION {new.sentence}
328 { output.state before.all =
329 'skip$
330 { after.sentence 'output.state := }
331 if$
332 }
333
334 %% Wenn ein ", " die Satzteile trennen soll.!
335 FUNCTION { part.of.sentence }
336 { output.state before.all =
337 'skip$
338 { mid.sentence 'output.state := }
339 if$
340 }
341
342 FUNCTION {new.sentence.checka}
343 { empty$
344 'skip$
345 'new.sentence
346 if$
347 }
348
349 FUNCTION {field.or.null}
350 { duplicate$ empty$
351 { pop$ "" }
352 'skip$
353 if$
354 }
355
356 FUNCTION {emphasize}
357 { duplicate$ empty$
358 { pop$ "" }
359 { "\emph{" swap$ * "}" * }
360 if$
361 }
362
363 FUNCTION { capitalize }
364 { duplicate$ empty$
365 { pop$ "" }
366 { "\textsc{" swap$ * "}" * }
367 if$
368 }
369
370 FUNCTION {article.in.journal}
371 { duplicate$ empty$
372 { pop$ "" }
373 { author missing$ title missing$ and
374 { emphasize }
375 { emphasize "{In: }" swap$ * }
376 if$
377 }
378 if$
379 }
380
381 FUNCTION {format.doi}
382 { doi empty$
383 { "" }
384 { new.block "\url{http://dx.doi.org/" doi * "}" *
385 %% { new.block "\url{http://dx.medra.org/" doi * "}" *
386 }
387 if$
388 }
389
390 FUNCTION {format.url}
391 { urn missing$
392 { doi missing$
393 { url empty$
394 { "" }
395 { type empty$ NOT
396 { type #-1 #4 substring$ "mail" =
397 type #1 #4 substring$ "Mail" =
398 OR
399 { type$ "incollection" =
400 { "" }
401 { "\,Absenderadresse: \url{" url * "}" * }
402 if$
403 }
404 { "\url{" url * "}" * }%% evtl. "URL" oder "<...>"
405 if$
406 }
407 { "\url{" url * "}" * } %% evtl. "URL" oder "<...>"
408 if$
409 }
410 if$
411 }
412 { format.doi }
413 if$
414 }
415 { "\url{http://nbn-resolving.de/urn/resolver.pl?urn=" urn * "}" *
416 }
417 if$
418 }
419
420 FUNCTION {format.maillist.url}
421 { url empty$
422 { "" }
423 { type empty$
424 { "" }
425 { type #-1 #4 substring$ "mail" =
426 type #1 #4 substring$ "Mail" =
427 OR
428 { "\url{" url * "}" * }
429 { "" }
430 if$
431 }
432 if$
433 }
434 if$
435 }
436
437 %% Adelspraedikate beim Sortieren nach den(m) Vornamen auffuehren
438 %% Abweichend v. DIN !!!
439 FUNCTION {format.names}
440 { 's :=
441 "" 'u :=
442 #1 'nameptr :=
443 s num.names$ 'numnames :=
444 numnames 'namesleft :=
445 { namesleft #0 > }
446 {
447 s nameptr "{ll}" format.name$ 't :=
448 t capitalize 't :=
449 s nameptr "{ jj}" format.name$ 'w :=
450 s nameptr "{, ff}{ vv}{ jj}" format.name$ 'u :=
451 u text.length$ 'lang :=
452 #1 'zahl :=
453 "" 'v :=
454 { zahl lang < }
455 { u zahl #1 substring$ "~" =
456 { v "" =
457 { u #1 zahl #1 - substring$ 'v := }
458 'skip$
459 if$
460 v u zahl #2 substring$ * "." * w * 'v :=
461 }
462 'skip$
463 if$
464 zahl #1 + 'zahl := }
465 while$
466 v "" =
467 { u 'v := }
468 'skip$
469 if$
470 t v * fkt * 't :=
471 nameptr #1 >
472 { namesleft #1 >
473 { " ; " * t * }
474 { numnames #2 >
475 { " " * }
476 'skip$
477 if$
478 t "\textsc{others}" = t "\textsc{others} (Hrsg.)" = or
479 { ua.etal * }
480 { " ; " * t * }
481 if$
482 }
483 if$ %% Ende der namesleft-Pruefung
484 }
485 't
486 if$ %% Ende der nameptr-Pruefung
487
488 nameptr #1 + 'nameptr :=
489 namesleft #1 - 'namesleft :=
490 }
491 while$ %% Ende von { namesleft #0 > } ganz oben
492 "" 'fkt := %% fkt wird zurueckgesetzt
493 }
494
495 FUNCTION {format.authors}
496 { author empty$
497 { "" }
498 { author format.names }
499 if$
500 }
501
502 FUNCTION {format.editors}
503 { editor empty$
504 { author empty$
505 { "empty author and editor in " cite$ * warning$ "" }
506 'skip$
507 if$
508 }
509 { author empty$
510 { " (Hrsg.)" 'fkt :=
511 editor format.names
512 }
513 { " (Hrsg.)" 'fkt :=
514 " ; " * editor format.names *
515 }
516 if$
517 }
518 if$
519 }
520
521 FUNCTION { format.authors.organization }
522 { type$ "misc" =
523 { organization empty$
524 { author empty$
525 { "" }
526 { author format.names " (Erfinder)" * }
527 if$
528 }
529 { author empty$
530 { organization }
531 { author format.names " (Erfinder); " *
532 organization * " (Anmelder)" *
533 }
534 if$
535 }
536 if$
537 }
538 { type$ "manual" =
539 { organization empty$
540 { format.authors }
541 { author empty$
542 { organization capitalize " (Hrsg.)" * }
543 { author format.names }
544 if$
545 }
546 if$
547 }
548 'skip$
549 if$
550 }
551 if$
552 }
553
554
555
556 FUNCTION { format.editors.organization }
557 { organization empty$
558 'skip$
559 { type$ "misc" =
560 { organization }
561 { * " ; " * organization " (Veranst.)" *}
562 if$
563 }
564 if$
565 }
566
567 FUNCTION { format.tr.institution }
568 { institution empty$
569 'skip$
570 { institution capitalize }
571 if$
572 }
573
574 FUNCTION {format.ed.incoll}
575 { editor empty$
576 { "" }
577 { " (Hrsg.)" 'fkt :=
578 editor format.names
579 format.editors.organization
580 }
581 if$
582 }
583
584
585 FUNCTION {format.title}
586 { title empty$
587 { "" }
588 { title } %% Text so wie er dasteht im Feld title
589 if$
590 }
591
592 FUNCTION {format.number}
593 { number empty$
594 { "" }
595 { number " " * } %% Text so wie er im Feld number steht plus " "
596 if$
597 }
598
599 FUNCTION {format.digital.type}%% nur in booklet
600 { type empty$
601 { "" }
602 { type #-1 #4 substring$ "mail" =
603 type #1 #4 substring$ "Mail" =
604 OR
605 { "" }
606 { type } %% Typ einer digitalen Ressource in Form einer
607 %% "Ergaenzenden Angabe", so wie er dasteht;
608 %% Alternativ kann dieser Text auch in NOTE erfasst werden.
609 if$
610 }
611 if$
612 }
613
614 FUNCTION {n.dashify}
615 { 't :=
616 ""
617 { t empty$ not }
618 { t #1 #1 substring$ "-" =
619 { t #1 #2 substring$ "--" = not
620 { "--" *
621 t #2 global.max$ substring$ 't :=
622 }
623 { { t #1 #1 substring$ "-" = }
624 { "-" *
625 t #2 global.max$ substring$ 't :=
626 }
627 while$
628 }
629 if$
630 }
631 { t #1 #1 substring$ *
632 t #2 global.max$ substring$ 't :=
633 }
634 if$
635 }
636 while$
637 }
638
639 %% Auflagenvermerke gibt man komplett, einschliesslich Abkuerzungen in
640 %% das Feld edition ein: ---> EDITION= { 3., erw. und verb. Aufl. }
641 %% oder fremdsprachlich: EDITION= { 2nd edition }
642
643 FUNCTION {format.edition}
644 { edition empty$
645 { "" }
646 { edition }
647 if$
648 }
649
650 FUNCTION {format.date}
651 { year duplicate$ empty$
652 { "empty year in " cite$ * warning$
653 pop$ "" }
654 'skip$
655 if$
656 month empty$
657 'skip$
658 { type$ "book" =
659 type$ "inbook" =
660 OR
661 'skip$
662 { month " " * swap$ * }
663 if$
664 }
665 if$
666 }
667
668 FUNCTION {format.edition.or.date}
669 { edition empty$ year empty$ and
670 { "" }
671 { edition empty$
672 { type empty$ NOT
673 { type #-1 #4 substring$ "mail" =
674 type #1 #4 substring$ "Mail" =
675 OR
676 { " gesendet: " "-- " type * swap$ *
677 format.date *
678 }
679 { "\,Version:\,"
680 format.date *
681 }
682 if$
683 }
684 { "\,Version:\,"
685 format.date *
686 }
687 if$
688 }
689 { year empty$
690 { "\,Version:\," edition * }
691 { "\,Version:\," edition * ", " *
692 format.date *
693 }
694 if$
695 }
696 if$
697 }
698 if$
699 }
700
701 FUNCTION {format.version.url}
702 { url empty$ doi empty$ urn empty$ and and
703 { type$ "techreport" =
704 { format.edition }
705 { "" }
706 if$
707 }
708 { format.edition.or.date output format.url }
709 if$
710 }
711
712 FUNCTION {format.edition.or.version}
713 { url empty$ doi empty$ urn empty$ and and
714 { format.edition }
715 { format.edition.or.date }
716 if$
717 }
718
719 FUNCTION {format.address.publisher.year}
720 { publisher empty$
721 { address empty$
722 { year empty$
723 { "" }
724 { year }
725 if$
726 }
727 { "there's an address but no publisher in " cite$ * warning$
728 address ", " * format.date *
729 }
730 if$
731 }
732 { address empty$
733 { year empty$
734 { "neither address nor publication date in " cite$ * warning$
735 publisher
736 }
737 { publisher ", " * format.date * }
738 if$
739 }
740 { year empty$
741 { address " : " * publisher * }
742 { address " : " * publisher * ", " * format.date * }
743 if$
744 }
745 if$
746 }
747 if$
748 }
749
750 FUNCTION {format.address.publisher.year.alt}
751 { publisher empty$
752 { address empty$
753 { year empty$
754 { "" }
755 { url empty$
756 { year }
757 { "" }
758 if$
759 }
760 if$
761 }
762 { "there's an address but no publisher in " cite$ * warning$
763 address ", " * format.date *
764 }
765 if$
766 }
767 { url empty$%%%% wenn es URL gibt wird nur die service-provider Adresse
768 %%% ausgegeben, die im publisher-Feld steht
769 { address empty$
770 { year empty$
771 { "neither address nor publication date in " cite$ * warning$
772 publisher
773 }
774 { publisher ", " * format.date * }
775 if$
776 }
777 { year empty$
778 { address " : " * publisher * }
779 { address " : " * publisher * ", " * format.date * }
780 if$
781 }
782 if$
783 }
784 { publisher }
785 if$
786 }
787 if$
788 }
789
790 FUNCTION {format.howpublished}
791 { url missing$ urn missing$ doi missing$ AND AND
792 { howpublished empty$
793 { address empty$
794 { type empty$
795 { "" }
796 { type #-1 #4 substring$ "mail" =
797 { "(gesendet: " new.sentence
798 format.date * ")" *
799 }
800 { "" }
801 if$
802 }
803 if$
804 format.date *
805 }
806 { address ", " * format.date * }
807 if$
808 }
809 { address empty$
810 { howpublished ", " * format.date * }
811 { address " : " * howpublished * ", " * format.date * }
812 if$
813 }
814 if$
815 }
816 { howpublished empty$
817 { "" }
818 { howpublished }
819 if$
820 }
821 if$
822 }
823
824 FUNCTION {format.lastchecked.or.type}%% nur in misc-Funktion
825 { lastchecked empty$
826 { url empty$ doi empty$ urn empty$ and and
827 { type empty$
828 { skip$ }
829 { type set.period.dash.check
830 type output
831 }
832 if$
833 }
834 { type empty$
835 { skip$ }
836 { type #-1 #4 substring$ "mail" =
837 type #1 #4 substring$ "Mail" =
838 OR
839 { skip$ }
840 { type set.period.dash.check
841 type output }
842 if$
843 }
844 if$
845 }
846 if$
847 }
848 { url empty$ doi empty$ urn empty$ and and
849 { "there's a lastchecked date but no url, urn or doi in "
850 cite$ * warning$
851 }
852 { type empty$
853 { "there's a URL and a lastchecked date but no type in "
854 cite$ * warning$
855 }
856 { type set.period.dash.check
857 type output
858 part.of.sentence
859 lastchecked "Abruf: " swap$ * output
860 }
861 if$
862 }
863 if$
864 }
865 if$
866 }
867
868
869 FUNCTION {format.btitle}
870 { title emphasize
871 }
872
873 FUNCTION {tie.or.space.connect}
874 { duplicate$ text.length$ #3 <
875 { "~" }
876 { " " }
877 if$
878 swap$ * *
879 }
880
881 FUNCTION {format.btitle.vol}
882 { number empty$
883 { series empty$
884 { volume empty$
885 { title emphasize }
886 { title emphasize ". Bd." * volume tie.or.space.connect }
887 if$
888 }
889 { volume empty$
890 { title emphasize }%% ein Buch, das zusaetzl. SERIES=Reihentitel besitzt
891 %% jetzt kommt d. Fall des mehrbaendigen Werkes mit Gesamttitel=SERIES
892 %% Zaehlung=VOLUME und Bandtitel=TITLE;
893 { series emphasize ". Bd." * volume tie.or.space.connect
894 ": " * "{\emph{" * title * "}}" * }
895 if$
896 }
897 if$%% series-test
898 }
899 { title emphasize }%% wenn number ex., dann immer title-Feld
900 if$%% Ende number-test
901 }
902
903 FUNCTION {format.series.number.din}
904 { volume empty$
905 { number empty$
906 { series empty$
907 { "" }
908 { "(" series * ")" * } %% d. Seriennr koennte auch gleich hier
909 %% im SERIES-Feld miterfasst werden
910 if$
911 }
912 { series empty$
913 { "(" number * ")" *
914 "there's a number but no series in " cite$ * warning$
915 }
916 { "(" series * number tie.or.space.connect ")" * }
917 if$
918 }
919 if$
920 }
921 { series empty$
922 { "" }
923 { type$ "proceedings" = %% Sonderfall, es darf VOLUME und NUMBER ex. !
924 type$ "inproceedings" = OR
925 { number empty$
926 { "(" series * ")" * }
927 { "(" series * number tie.or.space.connect ")" * }
928 if$
929 }
930 { "" }%% Ausstieg mit Nullstring, s. Kommentar
931 if$
932 }%% bei gezaehlten Reihen MUSS die Reihennr. im Feld NUMBER stehen!
933 if$ %% wenn also d. Feld VOLUME nicht leer ist, dann liegt ausser bei
934 %% Typ PROCEEDINGS falsche
935 } %% Erfassung vor und es erfolgt d. Ausstieg mit d. Nullstring!
936 if$
937 }
938
939 FUNCTION {format.tr.series.or.number}
940 { number empty$
941 { series empty$
942 { "" }
943 { "(" series * ")" * }
944 if$
945 }
946 { series empty$
947 { "(" number * ")" * }
948 { "(" series * number tie.or.space.connect ")" * }
949 if$
950 }
951 if$
952 }
953
954 FUNCTION {format.misc.series}
955 { series empty$
956 { "" }
957 { "(" series * ")" * }
958 if$
959 }
960
961 FUNCTION { format.doi.urn }
962 { urn empty$
963 { doi empty$
964 { "" }
965 { "DOI" doi n.dashify tie.or.space.connect }
966 if$
967 }
968 { "URN" urn n.dashify tie.or.space.connect }
969 if$
970 }
971
972 FUNCTION { format.isbn.issn }
973 { isbn empty$
974 { issn empty$
975 { "" }
976 { "ISSN" issn n.dashify tie.or.space.connect }
977 if$
978 }
979 { "ISBN" isbn n.dashify tie.or.space.connect }
980 if$
981 }
982
983 FUNCTION {format.pages}
984 { pages empty$
985 { "" }
986 { url empty$
987 { "S." pages n.dashify tie.or.space.connect }
988 { pages }
989 if$
990 }
991 if$
992 }
993
994 FUNCTION {format.pages.book}
995 { pages empty$
996 { "" }
997 { note empty$ isbn empty$ AND
998 { "" pages n.dashify tie.or.space.connect " S" *
999 add.period$ }
1000 { "" pages n.dashify tie.or.space.connect " S" * }
1001 if$
1002 }
1003 if$
1004 }
1005
1006 FUNCTION {format.pages.bkcollation}
1007 { pages empty$
1008 { "" }
1009 { "" pages n.dashify tie.or.space.connect }
1010 if$
1011 }
1012
1013 FUNCTION {format.bkpages.collat.check}
1014 { 's :=
1015 #1 'ptr :=
1016 s text.length$ 'collation :=
1017 collation #1 =
1018 { format.pages.book }
1019 {
1020 collation 'collrest :=
1021 { collrest #0 > }
1022 { s ptr #2 substring$ 't :=
1023 t "S." =
1024 { format.pages.bkcollation
1025 #0 'collrest := }
1026 { ptr #1 + 'ptr :=
1027 collrest #1 - 'collrest :=
1028 #1 collrest =
1029 { format.pages.book }
1030 { skip$ }
1031 if$
1032 }
1033 if$
1034 }
1035 while$
1036 }
1037 if$
1038 }
1039
1040 FUNCTION {format.vol.year.num.pages}
1041 { volume field.or.null
1042 year empty$
1043 { "there's no year in " cite$ * warning$ }
1044 { " (" year * ")" * * }
1045 if$
1046 month empty$
1047 'skip$
1048 { ", " month * * }
1049 if$
1050 number empty$
1051 'skip$
1052 { ", Nr. " number * * }
1053 if$
1054 pages empty$
1055 'skip$
1056 { duplicate$ empty$
1057 { pop$ "" }
1058 { title missing$
1059 { ", " pages format.bkpages.collat.check * *}
1060 { ", " format.pages * *}
1061 if$
1062 }
1063 if$
1064 }
1065 if$
1066 }
1067
1068 FUNCTION {format.chapter.inbook}
1069 { duplicate$ empty$
1070 { pop$ "empty chapter in " cite$ * warning$ }
1071 { type empty$
1072 { "\emph{Kapitel\/} " swap$ tie.or.space.connect }
1073 { type " " * swap$ * }%% wenn keine bes. Abschnittsform gen. werden soll,
1074 %% koennte e. kl. Zwischenraum gewaehlt werden, z.B. " \, "
1075 if$
1076 }
1077 if$
1078 }
1079
1080 FUNCTION {format.chapter.pages}
1081 { chapter empty$
1082 'format.pages
1083 { type empty$
1084 { "Kapitel " }
1085 { url empty$
1086 { type }
1087 { "Kapitel " }
1088 if$
1089 }
1090 if$
1091 chapter tie.or.space.connect
1092 pages empty$
1093 'skip$
1094 { ", " * format.pages * }
1095 if$
1096 }
1097 if$
1098 }
1099
1100 FUNCTION {format.in.ed.booktitle.din}
1101 { booktitle empty$
1102 { "" }
1103 { editor empty$
1104 { volume empty$
1105 { "{In: }" booktitle emphasize * }
1106 { "{In: }" booktitle emphasize *
1107 " Bd." volume tie.or.space.connect *
1108 }
1109 if$
1110 }
1111 { volume empty$
1112 { "{In: }" format.ed.incoll * ": " * booktitle emphasize * }
1113 { "{In: }" format.ed.incoll * ": " * booktitle emphasize *
1114 " Bd." volume tie.or.space.connect *
1115 }
1116 if$
1117 }
1118 if$
1119 }
1120 if$
1121 }
1122
1123 FUNCTION {format.thesis.tr.type}
1124 { type empty$
1125 'skip$
1126 { pop$
1127 type
1128 }
1129 if$
1130 }
1131
1132 FUNCTION {format.online.lastcheck}
1133 { lastchecked empty$
1134 { url empty$ doi empty$ urn empty$ and and
1135 { skip$ }
1136 { "" output }
1137 if$
1138 }
1139 { url empty$ doi empty$ urn empty$ and and
1140 { "there's a lastchecked date but no url, urn or doi in "
1141 cite$ * warning$
1142 }
1143 { part.of.sentence
1144 lastchecked "Abruf: " swap$ * output
1145 }
1146 if$
1147 }
1148 if$
1149 }
1150
1151 FUNCTION {format.maillist.lastcheck}
1152 { type empty$ NOT
1153 { type #-1 #4 substring$ "mail" =
1154 type #1 #4 substring$ "Mail" =
1155 OR
1156 { format.online.lastcheck }
1157 'skip$
1158 if$
1159 }
1160 'skip$
1161 if$
1162 }
1163
1164
1165
1166 FUNCTION {format.article.crossref}
1167 { key empty$
1168 { journal empty$
1169 { "need key or journal for " cite$ * " to crossref " * crossref *
1170 warning$
1171 ""
1172 }
1173 { "{In: }{\emph " journal * "}" * }
1174 if$
1175 }
1176 { "{In: }" key * }
1177 if$
1178 "\cite{" * crossref * "}" * ", " * format.pages *
1179 }
1180
1181 FUNCTION {format.crossref.editor}
1182 { editor #1 "{ll}" format.name$ " (Hrsg.)" *
1183 editor num.names$ duplicate$
1184 #2 >
1185 { pop$ ua.etal * }%% --->u. a.
1186 { #2 <
1187 'skip$
1188 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1189 { ua.etal }
1190 { " ; " * editor #2 "{vv~}{ll}" format.name$ * " (Hrsg.)" * }
1191 if$
1192 }
1193 if$
1194 }
1195 if$
1196 }
1197
1198 FUNCTION {format.inbk.vol.title}
1199 { volume empty$
1200 { " In: " }
1201 { title empty$
1202 { " In: Bd." volume tie.or.space.connect
1203 " von " *
1204 }
1205 { "In: Bd." volume tie.or.space.connect ": " * title emphasize *
1206 " (" * year * ") in " *
1207 }
1208 if$
1209 }
1210 if$
1211 }
1212
1213
1214 FUNCTION {format.book.crossref}
1215 { type$ "inbook" =
1216 { format.inbk.vol.title }
1217 { volume empty$
1218 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1219 " "
1220 }
1221 { ". -- Bd." volume tie.or.space.connect
1222 " von " *
1223 }
1224 if$
1225 }
1226 if$
1227 editor empty$
1228 editor field.or.null author field.or.null =
1229 or
1230 { key empty$
1231 { series empty$
1232 { "need editor, key, or series for " cite$ * " to crossref " *
1233 crossref * warning$
1234 "" *
1235 }
1236 { "" * }
1237 if$
1238 }
1239 { key * }
1240 if$
1241 }
1242 { "" * }
1243 if$
1244 "\cite{" * crossref * "}" *
1245 }
1246
1247 FUNCTION {format.incoll.inproc.crossref}
1248 { editor empty$
1249 editor field.or.null author field.or.null =
1250 or
1251 { key empty$
1252 { booktitle empty$
1253 { "need editor, key, or booktitle for " cite$ * " to crossref " *
1254 crossref * warning$
1255 ""
1256 }
1257 { "{In: }{\emph " booktitle * "}" * }%%
1258 if$
1259 }
1260 { "{In: }" }
1261 if$
1262 }
1263 { "{In: }" }
1264 if$
1265 "\cite{" * crossref * "}" * %% ", " * format.pages * 5.12.2005
1266 }
1267
1268
1269 FUNCTION {article}
1270 { output.bibitem
1271 format.authors "author" output.check
1272 set.colon.after
1273 format.title "title" output.check
1274 crossref missing$
1275 { journal article.in.journal output.nonnull
1276 new.sentence
1277 format.vol.year.num.pages output
1278 format.url output
1279 }
1280 { format.article.crossref output.nonnull }
1281 if$
1282 format.online.lastcheck
1283 doi set.period.dash.check
1284 urn set.period.dash.check
1285 format.doi.urn output
1286 issn set.period.dash.check
1287 format.isbn.issn output
1288 note set.period.dash.check
1289 note output
1290 fin.entry
1291 }
1292
1293 FUNCTION {book}
1294 { output.bibitem
1295 author empty$
1296 { format.editors "author and editor" output.check }
1297 { format.authors format.editors output.nonnull }
1298 if$
1299 set.colon.after
1300 crossref missing$
1301 { format.btitle.vol "title" output.check }
1302 { format.btitle "title" output.check }
1303 if$
1304 format.edition output
1305 format.address.publisher.year "publisher" output.check
1306 new.sentence
1307 crossref missing$
1308 { format.series.number.din output }
1309 { format.book.crossref output.nonnull }
1310 if$
1311 pages empty$
1312 { skip$ }
1313 { pages set.period.dash.check
1314 pages format.bkpages.collat.check output
1315 }
1316 if$
1317 format.doi output
1318 format.url output
1319 new.block
1320 isbn set.period.dash.check
1321 format.isbn.issn output
1322 note set.period.dash.check
1323 note output
1324 fin.entry
1325 }
1326
1327 FUNCTION {booklet}
1328 { output.bibitem
1329 author empty$
1330 { format.editors "author and editor" output.check }
1331 { format.authors format.editors output.nonnull }
1332 if$
1333 set.colon.after
1334 format.btitle "title" output.check
1335 format.edition.or.version output
1336 format.url output
1337 format.online.lastcheck
1338 format.howpublished output
1339 series new.sentence.checka
1340 format.series.number.din output
1341 pages empty$
1342 { skip$ }
1343 { pages set.period.dash.check
1344 pages format.bkpages.collat.check output
1345 }
1346 if$
1347 type set.period.dash.check
1348 format.digital.type output
1349 doi set.period.dash.check
1350 urn set.period.dash.check
1351 format.doi.urn output
1352 note set.period.dash.check
1353 note output
1354 format.isbn.issn output
1355 fin.entry
1356 }
1357
1358
1359 FUNCTION {inbook}
1360 { output.bibitem
1361 chapter format.chapter.inbook output.nonnull
1362 crossref missing$
1363 { author empty$
1364 { format.editors "\,{In:\,}" swap$ * "author and editor" output.check }
1365 { format.authors "\,{In:\,}" swap$ * output.nonnull }
1366 if$
1367 author empty$ editor empty$ AND
1368 { before.all 'output.state := }
1369 { set.colon.after }
1370 if$
1371 format.btitle.vol "title" output.check
1372 format.edition output
1373 format.address.publisher.year "publisher" output.check
1374 new.sentence
1375 format.series.number.din output
1376 isbn set.period.dash.check
1377 format.isbn.issn output
1378 }
1379 { format.book.crossref output.nonnull }
1380 if$
1381 part.of.sentence
1382 format.pages output
1383 note set.period.dash.check
1384 note output
1385 fin.entry
1386 }
1387
1388 FUNCTION {incollection}
1389 { output.bibitem
1390 format.authors "author" output.check
1391 set.colon.after
1392 format.title "title" output.check
1393 format.version.url output
1394 type empty$ NOT
1395 { type #-1 #4 substring$ "mail" =
1396 type #1 #4 substring$ "Mail" =
1397 OR
1398 'skip$
1399 { format.online.lastcheck }
1400 if$
1401 }
1402 { format.online.lastcheck }
1403 if$
1404 crossref missing$
1405 { format.in.ed.booktitle.din "booktitle" output.check
1406 format.edition output
1407 format.address.publisher.year "publisher" output.check
1408 format.maillist.url output
1409 format.maillist.lastcheck
1410 new.sentence
1411 format.series.number.din output
1412 doi set.period.dash.check
1413 urn set.period.dash.check
1414 format.doi.urn output
1415 isbn set.period.dash.check
1416 issn set.period.dash.check
1417 format.isbn.issn output
1418 }
1419 { format.incoll.inproc.crossref output.nonnull }
1420 if$
1421 part.of.sentence
1422 format.chapter.pages "pages" output.check
1423 note set.period.dash.check
1424 note output
1425 fin.entry
1426 }
1427
1428
1429 FUNCTION {inproceedings}
1430 { output.bibitem
1431 format.authors "author" output.check
1432 set.colon.after
1433 format.title "title" output.check
1434 crossref missing$
1435 { format.in.ed.booktitle.din "booktitle" output.check
1436 address empty$
1437 { organization new.sentence.checka
1438 organization output
1439 part.of.sentence
1440 format.address.publisher.year output
1441 }
1442 { format.address.publisher.year "publisher" output.check }
1443 if$
1444 new.sentence
1445 series empty$
1446 'skip$
1447 { format.series.number.din output }
1448 if$
1449 isbn set.period.dash.check
1450 issn set.period.dash.check
1451 format.isbn.issn output
1452 }
1453 { format.incoll.inproc.crossref output.nonnull }
1454 if$
1455 part.of.sentence
1456 format.pages "pages" output.check
1457 note set.period.dash.check
1458 note output
1459 fin.entry
1460 }
1461
1462 FUNCTION {conference} { inproceedings }%% nach Patashnik, wg US-Kompatibilitaet
1463
1464 FUNCTION {manual}
1465 { output.bibitem
1466 author empty$
1467 { organization empty$
1468 { title empty$
1469 'skip$
1470 {format.btitle "title" output.check }
1471 if$
1472 }
1473 'skip$
1474 if$
1475 }
1476 'skip$
1477 if$
1478 format.authors.organization output.nonnull
1479 set.colon.after
1480 format.btitle "title" output.check
1481 format.edition "edition" output.check
1482 author empty$ organization empty$ AND
1483 { address "address" output.check
1484 part.of.sentence
1485 }
1486 { organization empty$
1487 { address "address" output.check
1488 part.of.sentence
1489 }
1490 { address ": " * organization * output
1491 part.of.sentence
1492 }
1493 if$
1494 }
1495 if$
1496 format.date output
1497 number empty$
1498 'skip$
1499 { "(" number * ") " * output }
1500 if$
1501 pages empty$
1502 { skip$ }
1503 { pages set.period.dash.check
1504 pages format.bkpages.collat.check output
1505 }
1506 if$
1507 format.doi output
1508 format.url output
1509 format.online.lastcheck
1510 note set.period.dash.check
1511 note output
1512 fin.entry
1513 }
1514
1515 %% Standard ist "Diplomarbeit", anderes mit TYPE="anderer Typ" erfassen!
1516 %% z.B. TYPE={Hausarbeit}, TYPE={Diss.}, TYPE={Habil.}, TYPE={Magisterarb.}
1517 FUNCTION {mastersthesis}
1518 { output.bibitem
1519 format.authors "author" output.check
1520 set.colon.after
1521 format.btitle "title" output.check
1522 address output
1523 part.of.sentence
1524 school "school" output.check
1525 part.of.sentence
1526 "Diplomarbeit" format.thesis.tr.type output.nonnull
1527 part.of.sentence
1528 format.date "year" output.check
1529 format.url output
1530 format.online.lastcheck
1531 %% format.digital.resource.type
1532 doi set.period.dash.check
1533 urn set.period.dash.check
1534 format.doi.urn output
1535 %% pages set.period.dash.check
1536 %% format.pages.book output
1537 pages empty$
1538 { skip$ }
1539 { pages set.period.dash.check
1540 pages format.bkpages.collat.check output
1541 }
1542 if$
1543 note set.period.dash.check
1544 note output
1545 fin.entry
1546 }
1547
1548 FUNCTION {phdthesis} %% {mastersthesis}% ist identisch bis auf Standardwert, s.o.
1549 { output.bibitem
1550 format.authors "author" output.check
1551 set.colon.after
1552 format.btitle "title" output.check
1553 address output
1554 part.of.sentence
1555 school "school" output.check
1556 part.of.sentence
1557 "Diss." format.thesis.tr.type output.nonnull % koennte auch `Dissertation' sein
1558 part.of.sentence
1559 format.date "year" output.check
1560 format.url output
1561 format.online.lastcheck
1562 %% format.digital.resource.type
1563 doi set.period.dash.check
1564 urn set.period.dash.check
1565 format.doi.urn output
1566 pages empty$
1567 { skip$ }
1568 { pages set.period.dash.check
1569 pages format.bkpages.collat.check output
1570 }
1571 if$
1572 %% pages set.period.dash.check
1573 %% format.pages.book output
1574 note set.period.dash.check
1575 note output
1576 fin.entry
1577 }
1578
1579
1580 %% Normen, Vornormen, Schutzrechte (Patente) werden hiermit erfasst;
1581 %% (z.Zt. auch noch Internetressourcen)
1582 %% das type-Feld uebernimmt eine wichtige Steuerfunktion:
1583 FUNCTION {misc}
1584 { output.bibitem
1585 type missing$ not
1586 { type duplicate$ #1 #4 substring$ "Norm" =
1587 type #1 #4 substring$ "Vorn" = OR
1588 { " " *
1589 format.number * output
1590 new.sentence
1591 format.date output
1592 title empty$
1593 { skip$ }
1594 { add.period$ new.sentence }
1595 if$
1596 format.btitle "title" output.check
1597 note set.period.dash.check
1598 note output
1599 }
1600 { duplicate$ #1 #6 substring$ "Schutz" =
1601 { " " * format.number * output
1602 new.sentence
1603 "(" * format.date ")" * output
1604 add.period$ new.sentence
1605 format.authors.organization add.period$ output
1606 note output
1607 }
1608 %% wenn irgendein anderer Typ eingetragen ist
1609 { pop$ pop$ ""
1610 title empty$
1611 { note empty$
1612 { url empty$
1613 { "there's no relevant field in " cite$ warning$
1614 pop$ ""
1615 }
1616 { format.url output }%%%
1617 if$
1618 }
1619 { note " " * output.nonnull }
1620 if$
1621 }
1622 { author empty$
1623 { editor empty$
1624 { organization empty$
1625 { skip$ }
1626 { format.editors.organization output.nonnull
1627 set.colon.after
1628 }
1629 if$
1630 }
1631 { format.editors format.editors.organization
1632 output.nonnull set.colon.after
1633 }
1634 if$
1635 }
1636 { format.authors format.editors output.nonnull
1637 set.colon.after
1638 }
1639 if$
1640 format.btitle output.nonnull
1641 url empty$
1642 { format.edition output
1643 format.howpublished output}
1644 { format.howpublished output
1645 format.edition.or.date output
1646 format.url output
1647 }
1648 if$
1649 format.online.lastcheck
1650 new.sentence
1651 format.misc.series output
1652 %% note set.period.dash.check
1653 note output
1654 }
1655 if$
1656 }
1657 if$
1658 }
1659 if$
1660 }
1661 %% wenn es keinen type gibt
1662 { title empty$
1663 { note empty$
1664 { url empty$
1665 { "there's no relevant field in " cite$ warning$
1666 pop$ ""
1667 }
1668 { format.url output }%%% das waere e. reine URL
1669 if$
1670 }
1671 { note " " * output.nonnull
1672 %% format.url format.date output
1673 }
1674 if$
1675 }
1676 { author empty$
1677 { editor empty$
1678 { organization empty$
1679 { skip$ }
1680 { format.editors.organization output.nonnull
1681 set.colon.after
1682 }
1683 if$
1684 }
1685 { format.editors format.editors.organization
1686 output.nonnull set.colon.after
1687 }
1688 if$
1689 }
1690 { format.authors format.editors output.nonnull
1691 set.colon.after
1692 }
1693 if$
1694 format.btitle output.nonnull
1695 url empty$
1696 { format.edition output
1697 format.howpublished output}
1698 { format.howpublished output
1699 format.url output
1700 format.edition.or.date output
1701 format.online.lastcheck
1702 }
1703 if$
1704 new.sentence
1705 format.misc.series output
1706 note set.period.dash.check
1707 note output
1708 }
1709 if$
1710 }
1711 if$
1712 fin.entry
1713 }
1714
1715 FUNCTION {proceedings}
1716 { output.bibitem
1717 editor empty$
1718 { organization empty$
1719 { "empty organization and editor in " cite$ * warning$ }
1720 { organization " (Veranst.)" * output }
1721 if$
1722 }
1723 { format.editors format.editors.organization output.nonnull }
1724 if$
1725 set.colon.after
1726 format.btitle "title" output.check
1727 volume empty$
1728 { skip$ }
1729 { "{\textnormal{Bd.}}" volume tie.or.space.connect emphasize "volume" output.check }
1730 if$
1731 format.address.publisher.year "publisher" output.check
1732 new.sentence
1733 format.series.number.din output.nonnull
1734 pages empty$
1735 { skip$ }
1736 { pages set.period.dash.check
1737 pages format.bkpages.collat.check output
1738 }
1739 if$
1740 isbn set.period.dash.check
1741 issn set.period.dash.check
1742 format.isbn.issn output
1743 note set.period.dash.check
1744 note output
1745 fin.entry
1746 }
1747
1748 FUNCTION {techreport}
1749 { output.bibitem
1750 author empty$
1751 { format.editors "author and editor" output.check
1752 format.tr.institution output.nonnull }
1753 { format.authors format.editors output.nonnull }
1754 if$
1755 set.colon.after
1756 format.title "title" output.check
1757 institution empty$
1758 'skip$
1759 { author empty$ editor empty$ AND
1760 'skip$
1761 { institution new.sentence.checka
1762 "/ " institution * output.nonnull
1763 }
1764 if$
1765 }
1766 if$
1767 format.version.url output
1768 format.online.lastcheck
1769 format.address.publisher.year output
1770 number new.sentence.checka
1771 format.tr.series.or.number "number" output.check
1772 "Forschungsbericht" format.thesis.tr.type set.period.dash.check
1773 "Forschungsbericht" format.thesis.tr.type output
1774 %% format.digital.resource.type
1775 pages empty$
1776 { skip$ }
1777 { pages set.period.dash.check
1778 pages format.bkpages.collat.check output
1779 }
1780 if$
1781 isbn set.period.dash.check
1782 issn set.period.dash.check
1783 format.isbn.issn output
1784 note set.period.dash.check
1785 note "note" output.check
1786 fin.entry
1787 }
1788
1789
1790 FUNCTION {unpublished} {misc}%% AUTHOR, TITLE, NOTE muessen sein!
1791 %% andere Felder sind optional
1792
1793 FUNCTION {default.type} { misc }
1794
1795
1796 MACRO {jan} {"Januar"}
1797
1798 MACRO {feb} {"Februar"}
1799
1800 MACRO {mar} {"M{\^^b a}rz"}
1801
1802 MACRO {apr} {"April"}
1803
1804 MACRO {mai} {"Mai"}
1805
1806 MACRO {may} {"Mai"}
1807
1808 MACRO {jun} {"Juni"}
1809
1810 MACRO {jul} {"Juli"}
1811
1812 MACRO {aug} {"August"}
1813
1814 MACRO {sep} {"September"}
1815
1816 MACRO {okt} {"Oktober"}
1817
1818 MACRO {oct} {"Oktober"}
1819
1820 MACRO {nov} {"November"}
1821
1822 MACRO {dez} {"Dezember"}
1823
1824 MACRO {dec} {"Dezember"}
1825
1826 %%$$$ stillgelegte Beispiele fuer den Gebrauch von Kuerzeln (hier Zs-Titel).
1827
1828 %%MACRO {acmcs} {"ACM Computing Surveys"}
1829
1830 %%MACRO {acta} {"Acta Informatica"}
1831
1832 READ
1833
1834 FUNCTION {sortify}
1835 { purify$
1836 "l" change.case$
1837 }
1838
1839 FUNCTION {chop.word}
1840 { 's :=
1841 'len :=
1842 s #1 len substring$ =
1843 { s len #1 + global.max$ substring$ }
1844 's
1845 if$
1846 }
1847
1848 FUNCTION {sort.format.names}
1849 { 's :=
1850 #1 'nameptr :=
1851 ""
1852 s num.names$ 'numnames :=
1853 numnames 'namesleft :=
1854 { namesleft #0 > }
1855 { nameptr #1 >
1856 { " " * }
1857 'skip$
1858 if$
1859 s nameptr "{ll{ }}{ ff{ }}{ vv{ }}{ jj{ }}" format.name$ 't :=
1860 nameptr numnames = t "others" = and
1861 { ua.etal * }
1862 { t sortify * }
1863 if$
1864 nameptr #1 + 'nameptr :=
1865 namesleft #1 - 'namesleft :=
1866 }
1867 while$
1868 }
1869
1870 FUNCTION {sort.format.title}
1871 { 't :=
1872 "A " #2
1873 "An " #3
1874 "Der " #4
1875 "Die " #4
1876 "Das " #4
1877 "Ein " #4
1878 "Eine " #5
1879 "The " #4 t chop.word
1880 chop.word
1881 chop.word
1882 chop.word
1883 chop.word
1884 chop.word
1885 chop.word
1886 chop.word
1887 sortify
1888 #1 global.max$ substring$
1889 }
1890
1891 FUNCTION {author.sort}
1892 { author empty$
1893 { key empty$
1894 { "to sort, need author or key in " cite$ * warning$
1895 ""
1896 }
1897 { key sortify }
1898 if$
1899 }
1900 { author sort.format.names }
1901 if$
1902 }
1903
1904 FUNCTION {author.editor.sort}
1905 { author empty$
1906 { editor empty$
1907 { key empty$
1908 { "to sort, need author, editor, or key in " cite$ * warning$
1909 ""
1910 }
1911 { key sortify }
1912 if$
1913 }
1914 { editor sort.format.names }
1915 if$
1916 }
1917 { author sort.format.names }
1918 if$
1919 }
1920
1921 FUNCTION {author.organization.sort}
1922 { author empty$
1923 { organization empty$
1924 { key empty$
1925 { "to sort, need author, organization, or key in " cite$ * warning$
1926 ""
1927 }
1928 { key sortify }
1929 if$
1930 }
1931 { "The " #4 organization chop.word sortify }
1932 if$
1933 }
1934 { author sort.format.names }
1935 if$
1936 }
1937
1938 FUNCTION {editor.organization.sort}
1939 { editor empty$
1940 { organization empty$
1941 { key empty$
1942 { "to sort, need editor, organization, or key in " cite$ * warning$
1943 ""
1944 }
1945 { key sortify }
1946 if$
1947 }
1948 { "The " #4 organization chop.word sortify }
1949 if$
1950 }
1951 { editor sort.format.names }
1952 if$
1953 }
1954
1955 FUNCTION {presort}
1956 { type$ "book" =
1957 type$ "inbook" =
1958 or
1959 'author.editor.sort
1960 { type$ "proceedings" =
1961 'editor.organization.sort
1962 { type$ "manual" =
1963 'author.organization.sort
1964 'author.sort
1965 if$
1966 }
1967 if$
1968 }
1969 if$
1970 " "
1971 *
1972 year field.or.null sortify
1973 *
1974 " "
1975 *
1976 title field.or.null
1977 sort.format.title
1978 *
1979 #1 entry.max$ substring$
1980 'sort.key$ :=
1981 }
1982
1983 ITERATE {presort}
1984
1985 SORT
1986
1987 FUNCTION {initialize.longest.label}%% nicht identisch mit der Fkt.im ALPHA-Stil
1988 { "" 'longest.label :=
1989 #1 'number.label :=
1990 #0 'longest.label.width :=
1991 }
1992
1993 FUNCTION {longest.label.pass}
1994 { number.label int.to.str$ 'label :=
1995 number.label #1 + 'number.label :=
1996 label width$ longest.label.width >
1997 { label 'longest.label :=
1998 label width$ 'longest.label.width :=
1999 }
2000 'skip$
2001 if$
2002 }
2003
2004 EXECUTE { initialize.longest.label }
2005
2006 ITERATE { longest.label.pass }
2007
2008 FUNCTION {begin.bib}
2009 { preamble$ empty$
2010 'skip$
2011 { preamble$ write$ newline$ }
2012 if$
2013 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
2014 newline$
2015 "% this bibliography is generated by plaindin.bst [8.2] from 2005-12-21"
2016 write$ newline$ newline$
2017 "\providecommand{\url}[1]{\texttt{#1}}"
2018 write$ newline$
2019 "\expandafter\ifx\csname urlstyle\endcsname\relax"
2020 write$ newline$
2021 " \providecommand{\doi}[1]{doi: #1}\else"
2022 write$ newline$
2023 " \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi"
2024 write$ newline$
2025 }
2026
2027 EXECUTE {begin.bib}
2028
2029 EXECUTE {init.state.consts}
2030
2031 ITERATE {call.type$}
2032
2033 FUNCTION {end.bib}
2034 { newline$
2035 "\end{thebibliography}" write$ newline$
2036 }
2037
2038 EXECUTE {end.bib}