Debian Codegraph @

texmf-dist/bibtex/bst/adrconv/adrbirthday.bst

raw
1 %%
2 %% This is file `adrbirthday.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% adrconv.dtx (with options: `bst,birthday')
8 %% Copyright 2006, 2010, 2018 Axel Kielhorn
9 %%
10 %% This file will generate fast loadable files from adrconv.dtx when
11 %% run through LaTeX or TeX.
12 %%
13 %% This work may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either version 1.3
15 %% of this license or (at your option) any later version.
16 %% The latest version of this license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.3 or later is part of all distributions of LaTeX
19 %% version 2003/12/01 or later.
20 %%
21 %% This file is part of the adrconv bundle.
22 %%
23 %% The adrconv bundle consists at least of the files adrconv.dtx,
24 %% adrconv.ins and adrguide.tex.
25 %%
26 %% adrguide.dtx
27 %% Copyright 2006, 2010, 2018 Axel Kielhorn
28 ENTRY
29 { name
30 sortas
31 title
32 organization
33 city
34 zip
35 country
36 street
37 phone
38 mobile
39 fax
40 url
41 email
42 note
43 key
44 birthday
45 nbirthday
46 }
47 {}
48 { b.month }
49 STRINGS { cur.month num.index alpha.index }
50 FUNCTION {get.names}
51 { name empty$
52 { organization empty$
53 { "{}{}" }
54 { organization "{}" * }
55 if$
56 }
57 { "{" name #1 "{ll}" format.name$ "}" * *
58 "{" name #1 "{ff}{ vv}" format.name$ "}" * * *
59 }
60 if$
61 }
62 FUNCTION {print.adrchr}
63 { b.month cur.month =
64 'skip$
65 { newline$ "\adrchar{\convdate{" b.month "}}" * * write$ newline$
66 b.month 'cur.month :=
67 }
68 if$
69 }
70 FUNCTION{format.phone.and.mobile}
71 { phone empty$
72 {
73 mobile empty$
74 { "" }
75 { mobile }
76 if$
77 }{
78 mobile empty$
79 { phone }
80 { phone "\\" mobile * * }
81 if$
82 }
83 if$
84 }
85 FUNCTION{address}
86 {
87 nbirthday empty$
88 'skip$
89 {
90 print.adrchr
91 "\adrentry" write$
92 get.names write$ newline$
93 "{"
94 street empty$
95 { "" * }
96 { street " \\ " * *}
97 if$
98 zip empty$
99 { "" * }
100 { zip " " * *}
101 if$
102 city empty$
103 { "" * }
104 { city * }
105 if$
106 "}{" *
107 format.phone.and.mobile
108 "}" * *
109 email empty$
110 { "{}" * }
111 { "{" email "}" * * * }
112 if$
113 organization empty$
114 { "{}" * }
115 { "{" organization "}" * * *}
116 if$
117 note empty$
118 { "{}" * }
119 { "{" note "}" * * * }
120 if$
121 "{" *
122 birthday empty$
123 { "" }
124 { birthday }
125 if$
126 "}{" * *
127 key empty$
128 { "" }
129 { key }
130 if$
131 "}" * * write$ newline$
132 }
133 if$
134 }
135 FUNCTION{presort}
136 { nbirthday empty$
137 { "" }
138 { nbirthday }
139 if$
140 duplicate$
141 'sort.key$ :=
142 #1 #2 substring$
143 'b.month :=
144 }
145 READ
146 ITERATE {presort}
147 SORT
148 FUNCTION {begin.bib}
149 {
150 "\def\convdate#1{\ifcase#1 \or 1 \or 2 \or 3 \or 4 \or 5 "
151 "\or 6 \or 7 \or 8 \or 9 \or 10 \or 11 \or 12 \fi}" * 'num.index :=
152 "\def\convdate#1{\ifcase#1 \or Januar \or Februar \or "
153 " M{^^b a}rz \or April \or Mai \or Juni \or Juli "
154 "\or August \or September \or Oktober \or November \or Dezember \fi}"
155 * * 'alpha.index :=
156 alpha.index write$
157 newline$
158 preamble$ empty$
159 'skip$
160 { preamble$ write$ newline$ }
161 if$
162 "00" 'cur.month :=
163 }
164 EXECUTE {begin.bib}
165 ITERATE {call.type$}
166 FUNCTION {end.bib}
167 { newline$ }
168 EXECUTE {end.bib}