-
Notifications
You must be signed in to change notification settings - Fork 0
/
dinat.bst
executable file
·1952 lines (1779 loc) · 43.4 KB
/
dinat.bst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%% DINAT.BST Version 2.5 2000-11-14
%% (c) Helge Baumann email:[email protected]
%%------------------------------------------------------------------------------
%% For use with BibTeX version 0.99a or later.
%%------------------------------------------------------------------------------
%% Copying of this file is authorized only if either
%% (1) you make absolutely no changes to your copy, including name, or
%% (2) if you do make changes, you name it something other than dinat.bst,
%% natdin.bst, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
%% This restriction helps ensure that all standard styles are identical.
%%------------------------------------------------------------------------------
%% This is a full author-year citation style bibliography. As such, it is
%% non-standard LaTeX, and requires the natbib-package by Patrick W. Daly,
%% version 7 or higher to function properly.
%% It should be used with the following configuration in natbib.cfg:
%% \newcommand{\bibstyle@dinat}%
%% {\bibpunct{(}{)}{;}{a}{}{,~}%
%% \gdef\NAT@biblabelnum##1{\textbf{##1}}}
%%------------------------------------------------------------------------------
%% The form of the \bibitem entries is
%% \bibitem[Jones u. a.(1990)Jones, Baker und Smith]{key}...
%% If there are more [Jones u. a. 1990], a single character is added to
%% the year like in [Jones u.a.(1990{\natexlab{a}})Jones, Baker und Smith].
%% The resulting bibliography entry is
%% \textsc{Jones}, \textsc{Baker} und \textsc{Smith} ...
%% The \cite command functions as follows:
%% \cite{key} ==>> Jones u. a. (1990)
%% \cite[chap. 2]{key} ==>> (Jones u. a. 1990, chap. 2)
%% \cite[e.g.][]{key} ==>> (e.g. Jones u. a. 1990)
%% \cite[e.g.][p. 32]{key} ==>> (e.g. Jones u. a. p. 32)
%% \citep{key} ==>> (Jones u. a. 1990)
%% \citep*{key} ==>> (Jones, Baker und Smith 1990)
%% \citet{key} ==>> Jones u. a. (1990)
%% \citet*{key} ==>> Jones, Baker und Smith (1990)
%% \citeauthor{key} ==>> Jones u. a.
%% \citeauthor*{key} ==>> Jones, Baker und Smith
%% \citeyear{key} ==>> 1990
%%------------------------------------------------------------------------------
%% This bibliography style file is intended for texts in german.
%% It draws up bibliographies in accordance with the german DIN 1505,
%% part 2 and 3, as discribed in the german text
%% http://www.fh-hamburg.de/pers/Lorenzen/tum/litverz.ps
%%------------------------------------------------------------------------------
%% This style is based on the natdin.bst style.
%% The intention for designing a new style for the same result
%% were the many bugs and the poor design of the original style.
%% So i simplified the programming and add some comments for rework.
%% The names of the functions were changed to reflect their functionality:
%% out.*: write the top of the stack to the bbl-file
%% format.*: format the top of the stack
%% push.*: put one item on top of the stack
%%------------------------------------------------------------------------------
%% There are some non standard fields for most entries:
%% isbn: international book number
%% issn: internation journal number
%% url: for electronic published documents or additional information
%% if there is no publisher and address, the url is used instead,
%% else it acts like a additional note
%% urldate: the date of the access to the url
%%------------------------------------------------------------------------------
%% Author(s):
%% HB: Helge Baumann, [email protected]
%%------------------------------------------------------------------------------
%% History:
%% (only main changes are listed, for others see the webpage)
%% 2000-04-10 (HB): Initial release
%% 2000-04-18 (HB): Version 1.1:
%% corrected some typos and oversights
%% minor changes in output
%% 2000-04-25 (HB): Version 1.2:
%% dinat only: added \natexlab
%% using full key/cite for label
%% 2000-05-02 (HB): Version 2.0:
%% added urldate for date of visit
%% added labels in bibliography, so the seperate
%% style dinnat.bst is not needed anymore
%% 2000-05-09 (HB): Version 2.1:
%% removed blanc in bibpunct
%% put text ("u.\,a." ...) in functions
%% rebuild some push functions
%% changed \cite to \citep
%% removed push.crossref.editor (not used)
%% 2000-07-12 (HB): version 2.2:
%% added push.crossref
%% changed many crossrefs
%% corrected typos
%% put \, in curly braces
%% 2000-10-03 (HB): version 2.3:
%% changed remaining "u.~a."
%% added \labelsep behind dinatlabel
%% added mastersthesis again, keeping (wrong)
%% masterthesis (sorry for that)
%% minor changes in proceedings
%% 2000-11-05 (HB): version 2.4:
%% improved inbook
%% removed extra period from proceedings
%% added missing colon in misc
%% improved name formatting
%% removed long dashes from ISBN/ISSN
%% restructured format.dashes
%% 2000-11-14 (HB): version 2.5:
%% always use key for label if present
%%------------------------------------------------------------------------------
%%------------------------------------------------------------------------------
%% push standard text items on top of the stack
%%------------------------------------------------------------------------------
FUNCTION {push.bd} { "Bd." }
FUNCTION {push.diplom} { "Diplomarbeit" }
FUNCTION {push.disser} { "Dissertation" }
FUNCTION {push.forschung} { "Forschungsbericht" }
FUNCTION {push.hrsg} { "Hrsg." }
FUNCTION {push.in} { "In:" }
FUNCTION {push.isbn} { "ISBN" }
FUNCTION {push.issn} { "ISSN" }
FUNCTION {push.kap} { "Chap." }
FUNCTION {push.nr} { "Nr." }
FUNCTION {push.sn} { "S" }
FUNCTION {push.s} { "S." }
FUNCTION {push.siehe} { "Siehe" }
FUNCTION {push.ua} { "u.\,a." }
FUNCTION {push.und} { "and" }
FUNCTION {push.url.name} { "URL" }
FUNCTION {push.veranst} { "Veranst." }
FUNCTION {push.von} { "from" }
FUNCTION {push.zugriff} { "Access date" }
FUNCTION {push.cite} { "\citep" }
%%------------------------------------------------------------------------------
%% Definitions for every bibliography entry
%%------------------------------------------------------------------------------
ENTRY
% fields (crossref is default)
{ address
author
booktitle
chapter
edition
editor
howpublished
institution
isbn
issn
journal
key
month
note
number
organization
pages
publisher
school
series
title
type
url
urldate
volume
year
}
% INTEGERS
{}
% STRINGS (sort.key$ is default)
{ label extra.label sort.label short.list dinat.label }
%%------------------------------------------------------------------------------
%% required macros for abbr. names of month
%%------------------------------------------------------------------------------
MACRO {jan} {"Januar"}
MACRO {feb} {"Februar"}
MACRO {mar} {"M\^^b{a}rz"}
MACRO {apr} {"April"}
MACRO {may} {"Mai"}
MACRO {jun} {"Juni"}
MACRO {jul} {"Juli"}
MACRO {aug} {"August"}
MACRO {sep} {"September"}
MACRO {oct} {"Oktober"}
MACRO {nov} {"November"}
MACRO {dec} {"Dezember"}
%%------------------------------------------------------------------------------
%% macros for common journals
%%------------------------------------------------------------------------------
MACRO {acmcs} {"ACM Computing Surveys"}
MACRO {acta} {"Acta Informatica"}
MACRO {cacm} {"Communications of the ACM"}
MACRO {ibmjrd} {"IBM Journal of Research and Development"}
MACRO {ibmsj} {"IBM Systems Journal"}
MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
MACRO {ieeetc} {"IEEE Transactions on Computers"}
MACRO {ieeetcad}
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
MACRO {ipl} {"Information Processing Letters"}
MACRO {jacm} {"Journal of the ACM"}
MACRO {jcss} {"Journal of Computer and System Sciences"}
MACRO {scp} {"Science of Computer Programming"}
MACRO {sicomp} {"SIAM Journal on Computing"}
MACRO {tocs} {"ACM Transactions on Computer Systems"}
MACRO {tods} {"ACM Transactions on Database Systems"}
MACRO {tog} {"ACM Transactions on Graphics"}
MACRO {toms} {"ACM Transactions on Mathematical Software"}
MACRO {toois} {"ACM Transactions on Office Information Systems"}
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
MACRO {tcs} {"Theoretical Computer Science"}
%%------------------------------------------------------------------------------
%% for debugging (not used)
%%------------------------------------------------------------------------------
FUNCTION {show}
% show quoted top of stack
{ duplicate$ ":::: `" swap$ * "'" * top$
}
FUNCTION {show.stack}
% show and clear whole stack
{ "STACK====================================================================="
top$
stack$
"ENDSTACK=================================================================="
top$
}
%%------------------------------------------------------------------------------
%% logical functions
%%------------------------------------------------------------------------------
FUNCTION {not}
{ { #0 }
{ #1 }
if$
}
FUNCTION {and}
{ { skip$ }
{ pop$ #0 }
if$
}
FUNCTION {or}
{ { pop$ #1 }
{ skip$ }
if$
}
%%------------------------------------------------------------------------------
%% variables for the recent output state
%%------------------------------------------------------------------------------
INTEGERS { output.state
before.all
mid.sentence
after.sentence
after.block
colon.after
period.dash }
FUNCTION {init.state.consts}
% initialisation of the state variables
{ #0 'before.all :=
#1 'mid.sentence :=
#2 'after.sentence :=
#3 'after.block :=
#4 'colon.after :=
#5 'period.dash :=
}
FUNCTION {set.period.dash}
% set ". -- "
{ output.state before.all =
{ skip$ }
{ period.dash 'output.state := }
if$
}
FUNCTION {set.period.dash.check}
% only if not empty
{ empty$
{ skip$ }
{ set.period.dash }
if$
}
FUNCTION {set.colon.after}
% set ": "
{ output.state before.all =
{ skip$ }
{ colon.after 'output.state := }
if$
}
FUNCTION {new.sentence}
% set ". "
{ output.state before.all =
{ skip$ }
{ after.sentence 'output.state := }
if$
}
FUNCTION {new.sentence.check}
% only if not empty
{ empty$
{ skip$ }
{ new.sentence }
if$
}
FUNCTION {part.of.sentence}
% set ", "
{ output.state before.all =
{ skip$ }
{ mid.sentence 'output.state := }
if$
}
%%------------------------------------------------------------------------------
%% output lines to bbl. file
%%------------------------------------------------------------------------------
STRINGS { h s t u v }
FUNCTION {out.block}
% writes the second but last element with seperator
{ 's :=
output.state after.block =
{ add.period$ write$
newline$
"\newblock " write$
}
{ output.state before.all =
{ write$ }
{ output.state colon.after =
{ ": " * write$
newline$
"\newblock " write$
}
{ output.state period.dash =
{ ". -- " * write$
newline$
"\newblock " write$
}
{ output.state mid.sentence =
{ ", " * write$ }
{ write$
newline$
"\newblock " write$
}
if$
}
if$
}
if$
}
if$
after.block 'output.state :=
}
if$
s
}
FUNCTION {out}
% write only if not empty
{ duplicate$ empty$
{ pop$ }
{ out.block }
if$
}
FUNCTION {out.check.required}
% write if not empty, else drop warning
{ 't :=
duplicate$ empty$
{ pop$ "empty " t * " in " * cite$ * warning$ }
{ out.block }
if$
}
FUNCTION {out.check.din}
% write if not empty, else drop note
{ 't :=
duplicate$ empty$
{ pop$ "DIN: empty " t * " in " * cite$ * top$ }
{ out.block }
if$
}
%%------------------------------------------------------------------------------
%% format entries for full author/editor citations
%%------------------------------------------------------------------------------
INTEGERS { nameptr namesleft pos len }
FUNCTION {format.full.names}
% format all names
{ 's :=
""
#1 'nameptr :=
s num.names$ 'namesleft :=
{ namesleft #0 > } % while
{ s nameptr "{vv~}{ll}" format.name$ 't :=
nameptr #1 =
{ % first name
t *
}
{ namesleft #1 =
{ % last name
t "others" =
{ " " * push.ua * }
{ " " * push.und * " " * t * }
if$
}
{ % other names
", " * t *
}
if$
}
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
while$ % { namesleft #0 > }
}
FUNCTION {key.full}
{ key empty$
{ cite$ }
{ key }
if$
}
FUNCTION {author.key.full}
{ author empty$
{ key.full }
{ author format.full.names }
if$
}
FUNCTION {editor.key.full}
{ editor empty$
{ key.full }
{ editor format.full.names }
if$
}
FUNCTION {author.editor.key.full}
{ author empty$
{ editor.key.full }
{ author format.full.names }
if$
}
FUNCTION {make.full.names}
{ type$ "book" =
type$ "inbook" =
or
{ author.editor.key.full }
{ type$ "proceedings" =
{ editor.key.full }
{ author.key.full }
if$
}
if$
}
%%------------------------------------------------------------------------------
%% write bibentry to bbl. file
%%------------------------------------------------------------------------------
FUNCTION {out.bibitem.start}
% start of entry
{ newline$
"\bibitem[" label * ")" *
make.full.names
duplicate$ short.list =
{ pop$ }
{ * }
if$
"]{" * cite$ * "}" *
write$
newline$
"\dinatlabel{" dinat.label * "} " *
write$
""
before.all 'output.state :=
}
FUNCTION {out.bibitem.end}
% end of entry
{ write$
newline$
}
%%------------------------------------------------------------------------------
%% format text
%%------------------------------------------------------------------------------
FUNCTION {format.emphasize}
% emphasize top of stack
{ duplicate$ empty$
{ pop$ "" }
{ "\emph{" swap$ * "}" * }
if$
}
FUNCTION {format.smallcaps}
% top of stack in small caps
{ duplicate$ empty$
{ pop$ "" }
{ "\textsc{" swap$ * "}" * }
if$
}
FUNCTION {format.dashes}
% replace single dashes (-) with tex-styled dashes (--)
{ 't :=
""
{ t empty$ not } % while$
{ t #1 #2 substring$ "--" =
{ { t #1 #1 substring$ "-" = }
{ "-" *
t #2 global.max$ substring$ 't :=
}
while$
}
{ t #1 #1 substring$ "-" =
{ "--" * }
{ t #1 #1 substring$ * }
if$
t #2 global.max$ substring$ 't :=
}
if$
}
while$ % { t empty$ not }
}
%%------------------------------------------------------------------------------
%% manipulte entries on the stack
%%------------------------------------------------------------------------------
FUNCTION {tie.or.space.connect}
% connect two top items with space or ~, if second is shorter than 3
{ duplicate$ text.length$ #3 <
{ "~" }
{ " " }
if$
swap$ * *
}
FUNCTION {push.field.or.null}
% push an empty item on the stack if it's a missing entry
{ duplicate$ empty$
{ pop$ "" }
{ skip$ }
if$
}
%%------------------------------------------------------------------------------
%% format text on stack
%%------------------------------------------------------------------------------
STRINGS { hrsg }
FUNCTION {format.names}
% format all names on top of stack
{ 's :=
""
#1 'nameptr :=
s num.names$ 'namesleft :=
{ namesleft #0 > } % while names left
{ % first get last name in small caps
s nameptr "{ll}" format.name$ 't :=
t format.smallcaps 't :=
% second get all first names
s nameptr "{, ff}" format.name$ 'u :=
u text.length$ 'len :=
#1 'pos :=
"" 'v :=
{ pos len < } % while
{ u pos #1 substring$ "~" =
{ v "" =
{ u #1 pos #1 - substring$ 'v := }
{ skip$ }
if$
% cut second and more first names
v u pos #2 substring$ * "." * 'v :=
}
{ skip$ }
if$
pos #1 + 'pos :=
}
while$ % { pos len < }
v "" =
{ u 'v := }
{ skip$ }
if$
% third get all "von"
s nameptr "{ vv}" format.name$ 'u :=
% put it all together
t v * u * hrsg * 't :=
nameptr #1 =
{ %first name
t *
}
{ namesleft #1 =
{ % last name
t "others" format.smallcaps =
t "others" format.smallcaps hrsg * =
or
{ " " * push.ua * }
{ "~; " * t * }
if$
}
{ % other names
"~; " * t *
}
if$
}
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
while$ % { namesleft #0 > }
"" 'hrsg :=
}
%%------------------------------------------------------------------------------
%% push formatted or empty field(s) on top of the stack
%%------------------------------------------------------------------------------
FUNCTION {push.authors}
% format author names
{ author empty$
{ "" }
{ author format.names }
if$
}
FUNCTION {push.editors}
% format editor names
{ editor empty$
{ "" }
{ " (" push.hrsg * ")" * 'hrsg :=
editor format.names
}
if$
}
FUNCTION {push.authors.editors}
% format author and/or editor names
{ author empty$
{ push.editors }
{ push.authors
editor empty$
{ skip$ }
{ "~; " * push.editors * }
if$
}
if$
}
FUNCTION {push.organization}
% format organization
{ organization empty$
{ "" }
{ organization
" (" * push.veranst * ")" *
}
if$
}
FUNCTION {push.title}
% title as in entry
{ title empty$
{ "" }
{ title }
if$
}
FUNCTION {push.url}
% prefixed with "URL" and special formatting
{ url empty$
{ "" }
{ push.url.name " \url{" * url * "}" *
urldate empty$
{ skip$ }
{ ". -- " * push.zugriff * ": " * urldate * }
if$
}
if$
}
FUNCTION {push.date}
% format: month year
{ year empty$
{ month empty$
{ "" }
{ "there's a month but no year in " cite$ * warning$
month
}
if$
}
{ month empty$
{ year }
{ month " " * year * }
if$
}
if$
}
FUNCTION {push.address.publisher.year}
% the whole imprint
{ address empty$
{ publisher empty$
{ url empty$
{ year empty$
{ "no publisher, address, url or date in " cite$ * warning$
"" }
{ push.date }
if$
}
{ "no proper publisher, using url in " cite$ * warning$
push.url
year empty$
{ skip$ }
{ ", " * push.date * }
if$
}
if$
}
{ publisher
year empty$
{ "there's a publisher but no year in " cite$ * warning$ }
{ ", " * push.date * }
if$
}
if$
}
{ address
publisher empty$
{ "there's an address but no publisher in " cite$ * warning$ }
{ "~: " * publisher * }
if$
year empty$
{ skip$ }
{ ", " * push.date * }
if$
}
if$
}
FUNCTION {push.btitle}
% the booktitle
{ title empty$
{ "" }
{ title format.emphasize }
if$
}
FUNCTION {push.btitle.vol}
% booktitle in multivolume works
{ number empty$
{ series empty$
{ push.btitle
volume empty$
{ skip$ }
{ ". " * push.bd * volume tie.or.space.connect }
if$
}
{ volume empty$
{ push.btitle }
{ series format.emphasize ". " *
push.bd * volume tie.or.space.connect
": " * push.btitle *
}
if$
}
if$
}
{ push.btitle }
if$
}
FUNCTION {push.article.in.journal}
% source of article
{ journal empty$
{ "" }
{ author missing$
title missing$
and
{ journal format.emphasize }
{ push.in " " * journal format.emphasize * }
if$
}
if$
}
FUNCTION {push.series.number}
% series and number like DIN
{ volume empty$
{ series empty$
{ number empty$
{ "" }
{ "there's a number but no series in " cite$ * warning$
"(" number * ")" * }
if$
}
{ "(" series *
number empty$
{ skip$ }
{ number tie.or.space.connect }
if$
")" *
}
if$
}
{ series empty$
{ "" }
{ type$ "proceedings" =
{ "(" series *
number empty$
{ skip$ }
{ number tie.or.space.connect }
if$
")" *
}
{ "" }
if$
}
if$
}
if$
}
FUNCTION {push.misc.series}
% series in MISC
{ series empty$
{ "" }
{ "(" series * ")" * }
if$
}
FUNCTION {push.edition}
% like in entry
{ edition empty$
{ "" }
{ edition }
if$
}
FUNCTION {push.isbn.issn}
% preceeded with ISSN/ISBN
{ isbn empty$
{ issn empty$
{ "" }
{ push.issn " " * issn * }
if$
}
{ push.isbn " " * isbn * }
if$
}
FUNCTION {push.pages.book}
% as length of a book
{ pages empty$
{ "" }
{ pages format.dashes "~" * push.sn * }
if$
}
FUNCTION {push.pages}
% as part of a book
{ pages empty$
{ "" }
{ push.s "~" * pages format.dashes * }
if$
}
FUNCTION {push.vol.year.num.pages}
% for journals etc.
{ volume push.field.or.null
year empty$
{ "there's no year in " cite$ * warning$ }
{ duplicate$ empty$
{ pop$ "(" }
{ " (" * }
if$
year * ")" *
}
if$
month empty$
{ skip$ }
{ duplicate$ empty$
{ pop$ month }
{ ", " * month * }
if$
}
if$
number empty$
{ skip$ }
{ duplicate$ empty$
{ pop$ push.nr }
{ ", " * push.nr * }
if$
"~" * number *
}
if$
pages empty$
{ skip$ }
{ duplicate$ empty$
{ skip$ }
{ ", " *
title missing$
{ push.pages.book * }
{ push.pages * }
if$
}
if$
}
if$
}
FUNCTION {push.chapter.pages}
% chapter and pages
{ chapter empty$
{ push.pages }
{ type empty$
{ push.kap }
{ type }
if$
chapter tie.or.space.connect
pages empty$
{ skip$ }
{ ", " * push.pages * }
if$
}
if$
}
FUNCTION {push.in.ed.booktitle}
% main title and volume
{ booktitle empty$
{ "" }
{ push.in " " *
editor empty$
{ skip$ }
{ push.editors * ": " * }
if$
booktitle format.emphasize *
volume empty$
{ skip$ }
{ " " * push.bd * "~" * volume * }
if$
}
if$
}
FUNCTION {push.mastersthesis.type}
% type of a mastersthesis
{ type empty$
{ push.diplom }
{ type }
if$