Debian Codegraph @

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

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