Debian Codegraph @

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

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