Debian Codegraph @

texmf-dist/bibtex/bst/phfnote/naturemagdoi.bst

raw
1 %%
2 %% PhF: I've shamelessly hacked & patched this file manually (2015). ABSOLUTELY
3 %% NO GUARANTEES!!!!!!!
4 %%
5 %% Original header:
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7 %%
8 %% This is file `naturemag.bst',
9 %% generated with the docstrip utility.
10 %%
11 %% The original source files were:
12 %%
13 %% merlin.mbs (with options: `head,seq-no,nm-rev,ed-rev,jnrlst,nmlm,x5,m1,yr-par,xmth,vol-bf,vnum-x,volp-com,num-xser,jnm-x,bkpg-x,pub-date,edparxc,ppx,ed,abr,xedn,jabr,amper,and-xcom,etal-it,eprint,url,url-blk,bibinfo,nfss,{}')
14 %% physjour.mbs (with options: `seq-no,nm-rev,ed-rev,jnrlst,nmlm,x5,m1,yr-par,xmth,vol-bf,vnum-x,volp-com,num-xser,jnm-x,bkpg-x,pub-date,edparxc,ppx,ed,abr,xedn,jabr,amper,and-xcom,etal-it,eprint,url,url-blk,bibinfo,nfss,{}')
15 %% geojour.mbs (with options: `seq-no,nm-rev,ed-rev,jnrlst,nmlm,x5,m1,yr-par,xmth,vol-bf,vnum-x,volp-com,num-xser,jnm-x,bkpg-x,pub-date,edparxc,ppx,ed,abr,xedn,jabr,amper,and-xcom,etal-it,eprint,url,url-blk,bibinfo,nfss,{}')
16 %% photjour.mbs (with options: `seq-no,nm-rev,ed-rev,jnrlst,nmlm,x5,m1,yr-par,xmth,vol-bf,vnum-x,volp-com,num-xser,jnm-x,bkpg-x,pub-date,edparxc,ppx,ed,abr,xedn,jabr,amper,and-xcom,etal-it,eprint,url,url-blk,bibinfo,nfss,{}')
17 %% merlin.mbs (with options: `tail,seq-no,nm-rev,ed-rev,jnrlst,nmlm,x5,m1,yr-par,xmth,vol-bf,vnum-x,volp-com,num-xser,jnm-x,bkpg-x,pub-date,edparxc,ppx,ed,abr,xedn,jabr,amper,and-xcom,etal-it,eprint,url,url-blk,bibinfo,nfss,{}')
18 %% ----------------------------------------
19 %% *** Style for the journal Nature (created by Peter Czoschke) ***
20 %%
21 %% Copyright 1994-2002 Patrick W Daly
22 % ===============================================================
23 % IMPORTANT NOTICE:
24 % This bibliographic style (bst) file has been generated from one or
25 % more master bibliographic style (mbs) files, listed above.
26 %
27 % This generated file can be redistributed and/or modified under the terms
28 % of the LaTeX Project Public License Distributed from CTAN
29 % archives in directory macros/latex/base/lppl.txt; either
30 % version 1 of the License, or any later version.
31 % ===============================================================
32 % Name and version information of the main mbs file:
33 % \ProvidesFile{merlin.mbs}[2002/10/21 4.05 (PWD, AO, DPC)]
34 % For use with BibTeX version 0.99a or later
35 %-------------------------------------------------------------------
36 % This bibliography style file is intended for texts in ENGLISH
37 % This is a numerical citation style, and as such is standard LaTeX.
38 % It requires no extra package to interface to the main text.
39 % The form of the \bibitem entries is
40 % \bibitem{key}...
41 % Usage of \cite is as follows:
42 % \cite{key} ==>> [#]
43 % \cite[chap. 2]{key} ==>> [#, chap. 2]
44 % where # is a number determined by the ordering in the reference list.
45 % The order in the reference list is that by which the works were originally
46 % cited in the text, or that in the database.
47 %---------------------------------------------------------------------
48
49 ENTRY
50 { address
51 archive
52 author
53 booktitle
54 chapter
55 edition
56 editor
57 eprint
58 howpublished
59 institution
60 journal
61 key
62 month
63 note
64 number
65 organization
66 pages
67 publisher
68 school
69 series
70 title
71 type
72 doi
73 url
74 volume
75 year
76 }
77 {}
78 { label }
79 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
80 FUNCTION {init.state.consts}
81 { #0 'before.all :=
82 #1 'mid.sentence :=
83 #2 'after.sentence :=
84 #3 'after.block :=
85 }
86 STRINGS { s t}
87 FUNCTION {output.nonnull}
88 { 's :=
89 output.state mid.sentence =
90 { ", " * write$ }
91 { output.state after.block =
92 { add.period$ write$
93 newline$
94 "\newblock " write$
95 }
96 { output.state before.all =
97 'write$
98 { add.period$ " " * write$ }
99 if$
100 }
101 if$
102 mid.sentence 'output.state :=
103 }
104 if$
105 s
106 }
107 FUNCTION {output}
108 { duplicate$ empty$
109 'pop$
110 'output.nonnull
111 if$
112 }
113 FUNCTION {output.check}
114 { 't :=
115 duplicate$ empty$
116 { pop$ "empty " t * " in " * cite$ * warning$ }
117 'output.nonnull
118 if$
119 }
120 FUNCTION {fin.entry}
121 { add.period$
122 write$
123 newline$
124 }
125
126 FUNCTION {new.block}
127 { output.state before.all =
128 'skip$
129 { after.block 'output.state := }
130 if$
131 }
132 FUNCTION {new.sentence}
133 { output.state after.block =
134 'skip$
135 { output.state before.all =
136 'skip$
137 { after.sentence 'output.state := }
138 if$
139 }
140 if$
141 }
142 FUNCTION {add.blank}
143 { " " * before.all 'output.state :=
144 }
145
146 FUNCTION {date.block}
147 {
148 new.block
149 }
150
151 FUNCTION {not}
152 { { #0 }
153 { #1 }
154 if$
155 }
156 FUNCTION {and}
157 { 'skip$
158 { pop$ #0 }
159 if$
160 }
161 FUNCTION {or}
162 { { pop$ #1 }
163 'skip$
164 if$
165 }
166 FUNCTION {new.block.checka}
167 { empty$
168 'skip$
169 'new.block
170 if$
171 }
172 FUNCTION {new.block.checkb}
173 { empty$
174 swap$ empty$
175 and
176 'skip$
177 'new.block
178 if$
179 }
180 FUNCTION {new.sentence.checka}
181 { empty$
182 'skip$
183 'new.sentence
184 if$
185 }
186 FUNCTION {new.sentence.checkb}
187 { empty$
188 swap$ empty$
189 and
190 'skip$
191 'new.sentence
192 if$
193 }
194 FUNCTION {field.or.null}
195 { duplicate$ empty$
196 { pop$ "" }
197 'skip$
198 if$
199 }
200 FUNCTION {emphasize}
201 { duplicate$ empty$
202 { pop$ "" }
203 { "\emph{" swap$ * "}" * }
204 if$
205 }
206 FUNCTION {bolden}
207 { duplicate$ empty$
208 { pop$ "" }
209 { "\textbf{" swap$ * "}" * }
210 if$
211 }
212 FUNCTION {tie.or.space.prefix}
213 { duplicate$ text.length$ #3 <
214 { "~" }
215 { " " }
216 if$
217 swap$
218 }
219
220 FUNCTION {capitalize}
221 { "u" change.case$ "t" change.case$ }
222
223 FUNCTION {space.word}
224 { " " swap$ * " " * }
225 % Here are the language-specific definitions for explicit words.
226 % Each function has a name bbl.xxx where xxx is the English word.
227 % The language selected here is ENGLISH
228 FUNCTION {bbl.and}
229 { "and"}
230
231 FUNCTION {bbl.etal}
232 { "et~al." }
233
234 FUNCTION {bbl.editors}
235 { "eds." }
236
237 FUNCTION {bbl.editor}
238 { "ed." }
239
240 FUNCTION {bbl.edby}
241 { "edited by" }
242
243 FUNCTION {bbl.edition}
244 { "edn." }
245
246 FUNCTION {bbl.volume}
247 { "vol." }
248
249 FUNCTION {bbl.of}
250 { "of" }
251
252 FUNCTION {bbl.number}
253 { "no." }
254
255 FUNCTION {bbl.nr}
256 { "no." }
257
258 FUNCTION {bbl.in}
259 { "in" }
260
261 FUNCTION {bbl.pages}
262 { "" }
263
264 FUNCTION {bbl.page}
265 { "" }
266
267 FUNCTION {bbl.chapter}
268 { "chap." }
269
270 FUNCTION {bbl.techrep}
271 { "Tech. Rep." }
272
273 FUNCTION {bbl.mthesis}
274 { "Master's thesis" }
275
276 FUNCTION {bbl.phdthesis}
277 { "Ph.D. thesis" }
278
279 MACRO {jan} {"Jan."}
280
281 MACRO {feb} {"Feb."}
282
283 MACRO {mar} {"Mar."}
284
285 MACRO {apr} {"Apr."}
286
287 MACRO {may} {"May"}
288
289 MACRO {jun} {"Jun."}
290
291 MACRO {jul} {"Jul."}
292
293 MACRO {aug} {"Aug."}
294
295 MACRO {sep} {"Sep."}
296
297 MACRO {oct} {"Oct."}
298
299 MACRO {nov} {"Nov."}
300
301 MACRO {dec} {"Dec."}
302
303 %-------------------------------------------------------------------
304 % Begin module:
305 % \ProvidesFile{physjour.mbs}[2002/01/14 2.2 (PWD)]
306 MACRO {aa}{"Astron. \& Astrophys."}
307 MACRO {aasup}{"Astron. \& Astrophys. Suppl. Ser."}
308 MACRO {aj} {"Astron. J."}
309 MACRO {aph} {"Acta Phys."}
310 MACRO {advp} {"Adv. Phys."}
311 MACRO {ajp} {"Amer. J. Phys."}
312 MACRO {ajm} {"Amer. J. Math."}
313 MACRO {amsci} {"Amer. Sci."}
314 MACRO {anofd} {"Ann. Fluid Dyn."}
315 MACRO {am} {"Ann. Math."}
316 MACRO {ap} {"Ann. Phys. (NY)"}
317 MACRO {adp} {"Ann. Phys. (Leipzig)"}
318 MACRO {ao} {"Appl. Opt."}
319 MACRO {apl} {"Appl. Phys. Lett."}
320 MACRO {app} {"Astroparticle Phys."}
321 MACRO {apj} {"Astrophys. J."}
322 MACRO {apjsup} {"Astrophys. J. Suppl."}
323 MACRO {apss} {"Astrophys. Space Sci."}
324 MACRO {araa} {"Ann. Rev. Astron. Astrophys."}
325 MACRO {baas} {"Bull. Amer. Astron. Soc."}
326 MACRO {baps} {"Bull. Amer. Phys. Soc."}
327 MACRO {cmp} {"Comm. Math. Phys."}
328 MACRO {cpam} {"Commun. Pure Appl. Math."}
329 MACRO {cppcf} {"Comm. Plasma Phys. \& Controlled Fusion"}
330 MACRO {cpc} {"Comp. Phys. Comm."}
331 MACRO {cqg} {"Class. Quant. Grav."}
332 MACRO {cra} {"C. R. Acad. Sci. A"}
333 MACRO {fed} {"Fusion Eng. \& Design"}
334 MACRO {ft} {"Fusion Tech."}
335 MACRO {grg} {"Gen. Relativ. Gravit."}
336 MACRO {ieeens} {"IEEE Trans. Nucl. Sci."}
337 MACRO {ieeeps} {"IEEE Trans. Plasma Sci."}
338 MACRO {ijimw} {"Interntl. J. Infrared \& Millimeter Waves"}
339 MACRO {ip} {"Infrared Phys."}
340 MACRO {irp} {"Infrared Phys."}
341 MACRO {jap} {"J. Appl. Phys."}
342 MACRO {jasa} {"J. Acoust. Soc. America"}
343 MACRO {jcp} {"J. Comp. Phys."}
344 MACRO {jetp} {"Sov. Phys.--JETP"}
345 MACRO {jfe} {"J. Fusion Energy"}
346 MACRO {jfm} {"J. Fluid Mech."}
347 MACRO {jmp} {"J. Math. Phys."}
348 MACRO {jne} {"J. Nucl. Energy"}
349 MACRO {jnec} {"J. Nucl. Energy, C: Plasma Phys., Accelerators, Thermonucl. Res."}
350 MACRO {jnm} {"J. Nucl. Mat."}
351 MACRO {jpc} {"J. Phys. Chem."}
352 MACRO {jpp} {"J. Plasma Phys."}
353 MACRO {jpsj} {"J. Phys. Soc. Japan"}
354 MACRO {jsi} {"J. Sci. Instrum."}
355 MACRO {jvst} {"J. Vac. Sci. \& Tech."}
356 MACRO {nat} {"Nature"}
357 MACRO {nature} {"Nature"}
358 MACRO {nedf} {"Nucl. Eng. \& Design/Fusion"}
359 MACRO {nf} {"Nucl. Fusion"}
360 MACRO {nim} {"Nucl. Inst. \& Meth."}
361 MACRO {nimpr} {"Nucl. Inst. \& Meth. in Phys. Res."}
362 MACRO {np} {"Nucl. Phys."}
363 MACRO {npb} {"Nucl. Phys. B"}
364 MACRO {nt/f} {"Nucl. Tech./Fusion"}
365 MACRO {npbpc} {"Nucl. Phys. B (Proc. Suppl.)"}
366 MACRO {inc} {"Nuovo Cimento"}
367 MACRO {nc} {"Nuovo Cimento"}
368 MACRO {pf} {"Phys. Fluids"}
369 MACRO {pfa} {"Phys. Fluids A: Fluid Dyn."}
370 MACRO {pfb} {"Phys. Fluids B: Plasma Phys."}
371 MACRO {pl} {"Phys. Lett."}
372 MACRO {pla} {"Phys. Lett. A"}
373 MACRO {plb} {"Phys. Lett. B"}
374 MACRO {prep} {"Phys. Rep."}
375 MACRO {pnas} {"Proc. Nat. Acad. Sci. USA"}
376 MACRO {pp} {"Phys. Plasmas"}
377 MACRO {ppcf} {"Plasma Phys. \& Controlled Fusion"}
378 MACRO {phitrsl} {"Philos. Trans. Roy. Soc. London"}
379 MACRO {prl} {"Phys. Rev. Lett."}
380 MACRO {pr} {"Phys. Rev."}
381 MACRO {physrev} {"Phys. Rev."}
382 MACRO {pra} {"Phys. Rev. A"}
383 MACRO {prb} {"Phys. Rev. B"}
384 MACRO {prc} {"Phys. Rev. C"}
385 MACRO {prd} {"Phys. Rev. D"}
386 MACRO {pre} {"Phys. Rev. E"}
387 MACRO {ps} {"Phys. Scripta"}
388 MACRO {procrsl} {"Proc. Roy. Soc. London"}
389 MACRO {rmp} {"Rev. Mod. Phys."}
390 MACRO {rsi} {"Rev. Sci. Inst."}
391 MACRO {science} {"Science"}
392 MACRO {sciam} {"Sci. Am."}
393 MACRO {sam} {"Stud. Appl. Math."}
394 MACRO {sjpp} {"Sov. J. Plasma Phys."}
395 MACRO {spd} {"Sov. Phys.--Doklady"}
396 MACRO {sptp} {"Sov. Phys.--Tech. Phys."}
397 MACRO {spu} {"Sov. Phys.--Uspeki"}
398 MACRO {st} {"Sky and Telesc."}
399 % End module: physjour.mbs
400 %-------------------------------------------------------------------
401 % Begin module:
402 % \ProvidesFile{geojour.mbs}[2002/07/10 2.0h (PWD)]
403 MACRO {aisr} {"Adv. Space Res."}
404 MACRO {ag} {"Ann. Geophys."}
405 MACRO {anigeo} {"Ann. Geofis."}
406 MACRO {angl} {"Ann. Glaciol."}
407 MACRO {andmet} {"Ann. d. Meteor."}
408 MACRO {andgeo} {"Ann. d. Geophys."}
409 MACRO {andphy} {"Ann. Phys.-Paris"}
410 MACRO {afmgb} {"Arch. Meteor. Geophys. Bioklimatol."}
411 MACRO {atph} {"Atm\'osphera"}
412 MACRO {aao} {"Atmos. Ocean"}
413 MACRO {ass}{"Astrophys. Space Sci."}
414 MACRO {atenv} {"Atmos. Environ."}
415 MACRO {aujag} {"Aust. J. Agr. Res."}
416 MACRO {aumet} {"Aust. Meteorol. Mag."}
417 MACRO {blmet} {"Bound.-Lay. Meteorol."}
418 MACRO {bams} {"Bull. Amer. Meteorol. Soc."}
419 MACRO {cch} {"Clim. Change"}
420 MACRO {cdyn} {"Clim. Dynam."}
421 MACRO {cbul} {"Climatol. Bull."}
422 MACRO {cap} {"Contrib. Atmos. Phys."}
423 MACRO {dsr} {"Deep-Sea Res."}
424 MACRO {dhz} {"Dtsch. Hydrogr. Z."}
425 MACRO {dao} {"Dynam. Atmos. Oceans"}
426 MACRO {eco} {"Ecology"}
427 MACRO {empl}{"Earth, Moon and Planets"}
428 MACRO {envres} {"Environ. Res."}
429 MACRO {envst} {"Environ. Sci. Technol."}
430 MACRO {ecms} {"Estuarine Coastal Mar. Sci."}
431 MACRO {expa}{"Exper. Astron."}
432 MACRO {geoint} {"Geofis. Int."}
433 MACRO {geopub} {"Geofys. Publ."}
434 MACRO {geogeo} {"Geol. Geofiz."}
435 MACRO {gafd} {"Geophys. Astrophys. Fluid Dyn."}
436 MACRO {gfd} {"Geophys. Fluid Dyn."}
437 MACRO {geomag} {"Geophys. Mag."}
438 MACRO {georl} {"Geophys. Res. Lett."}
439 MACRO {grl} {"Geophys. Res. Lett."}
440 MACRO {ga} {"Geophysica"}
441 MACRO {gs} {"Geophysics"}
442 MACRO {ieeetap} {"IEEE Trans. Antenn. Propag."}
443 MACRO {ijawp} {"Int. J. Air Water Pollut."}
444 MACRO {ijc} {"Int. J. Climatol."}
445 MACRO {ijrs} {"Int. J. Remote Sens."}
446 MACRO {jam} {"J. Appl. Meteorol."}
447 MACRO {jaot} {"J. Atmos. Ocean. Technol."}
448 MACRO {jatp} {"J. Atmos. Terr. Phys."}
449 MACRO {jastp} {"J. Atmos. Solar-Terr. Phys."}
450 MACRO {jce} {"J. Climate"}
451 MACRO {jcam} {"J. Climate Appl. Meteor."}
452 MACRO {jcm} {"J. Climate Meteor."}
453 MACRO {jcy} {"J. Climatol."}
454 MACRO {jgr} {"J. Geophys. Res."}
455 MACRO {jga} {"J. Glaciol."}
456 MACRO {jh} {"J. Hydrol."}
457 MACRO {jmr} {"J. Mar. Res."}
458 MACRO {jmrj} {"J. Meteor. Res. Japan"}
459 MACRO {jm} {"J. Meteor."}
460 MACRO {jpo} {"J. Phys. Oceanogr."}
461 MACRO {jra} {"J. Rech. Atmos."}
462 MACRO {jaes} {"J. Aeronaut. Sci."}
463 MACRO {japca} {"J. Air Pollut. Control Assoc."}
464 MACRO {jas} {"J. Atmos. Sci."}
465 MACRO {jmts} {"J. Mar. Technol. Soc."}
466 MACRO {jmsj} {"J. Meteorol. Soc. Japan"}
467 MACRO {josj} {"J. Oceanogr. Soc. Japan"}
468 MACRO {jwm} {"J. Wea. Mod."}
469 MACRO {lao} {"Limnol. Oceanogr."}
470 MACRO {mwl} {"Mar. Wea. Log"}
471 MACRO {mau} {"Mausam"}
472 MACRO {meteor} {"``Meteor'' Forschungsergeb."}
473 MACRO {map} {"Meteorol. Atmos. Phys."}
474 MACRO {metmag} {"Meteor. Mag."}
475 MACRO {metmon} {"Meteor. Monogr."}
476 MACRO {metrun} {"Meteor. Rundsch."}
477 MACRO {metzeit} {"Meteor. Z."}
478 MACRO {metgid} {"Meteor. Gidrol."}
479 MACRO {mwr} {"Mon. Weather Rev."}
480 MACRO {nwd} {"Natl. Weather Dig."}
481 MACRO {nzjmfr} {"New Zeal. J. Mar. Freshwater Res."}
482 MACRO {npg} {"Nonlin. Proc. Geophys."}
483 MACRO {om} {"Oceanogr. Meteorol."}
484 MACRO {ocac} {"Oceanol. Acta"}
485 MACRO {oceanus} {"Oceanus"}
486 MACRO {paleoc} {"Paleoceanography"}
487 MACRO {pce} {"Phys. Chem. Earth"}
488 MACRO {pmg} {"Pap. Meteor. Geophys."}
489 MACRO {ppom} {"Pap. Phys. Oceanogr. Meteor."}
490 MACRO {physzeit} {"Phys. Z."}
491 MACRO {pps} {"Planet. Space Sci."}
492 MACRO {pss} {"Planet. Space Sci."}
493 MACRO {pag} {"Pure Appl. Geophys."}
494 MACRO {qjrms} {"Quart. J. Roy. Meteorol. Soc."}
495 MACRO {quatres} {"Quat. Res."}
496 MACRO {rsci} {"Radio Sci."}
497 MACRO {rse} {"Remote Sens. Environ."}
498 MACRO {rgeo} {"Rev. Geophys."}
499 MACRO {rgsp} {"Rev. Geophys. Space Phys."}
500 MACRO {rdgeo} {"Rev. Geofis."}
501 MACRO {revmeta} {"Rev. Meteorol."}
502 MACRO {sgp}{"Surveys in Geophys."}
503 MACRO {sp} {"Solar Phys."}
504 MACRO {ssr} {"Space Sci. Rev."}
505 MACRO {tellus} {"Tellus"}
506 MACRO {tac} {"Theor. Appl. Climatol."}
507 MACRO {tagu} {"Trans. Am. Geophys. Union (EOS)"}
508 MACRO {wrr} {"Water Resour. Res."}
509 MACRO {weather} {"Weather"}
510 MACRO {wafc} {"Weather Forecast."}
511 MACRO {ww} {"Weatherwise"}
512 MACRO {wmob} {"WMO Bull."}
513 MACRO {zeitmet} {"Z. Meteorol."}
514 % End module: geojour.mbs
515 %-------------------------------------------------------------------
516 % Begin module:
517 % \ProvidesFile{photjour.mbs}[1999/02/24 2.0b (PWD)]
518
519 MACRO {appopt} {"Appl. Opt."}
520 MACRO {bell} {"Bell Syst. Tech. J."}
521 MACRO {ell} {"Electron. Lett."}
522 MACRO {jasp} {"J. Appl. Spectr."}
523 MACRO {jqe} {"IEEE J. Quantum Electron."}
524 MACRO {jlwt} {"J. Lightwave Technol."}
525 MACRO {jmo} {"J. Mod. Opt."}
526 MACRO {josa} {"J. Opt. Soc. America"}
527 MACRO {josaa} {"J. Opt. Soc. Amer.~A"}
528 MACRO {josab} {"J. Opt. Soc. Amer.~B"}
529 MACRO {jdp} {"J. Phys. (Paris)"}
530 MACRO {oc} {"Opt. Commun."}
531 MACRO {ol} {"Opt. Lett."}
532 MACRO {phtl} {"IEEE Photon. Technol. Lett."}
533 MACRO {pspie} {"Proc. Soc. Photo-Opt. Instrum. Eng."}
534 MACRO {sse} {"Solid-State Electron."}
535 MACRO {sjot} {"Sov. J. Opt. Technol."}
536 MACRO {sjqe} {"Sov. J. Quantum Electron."}
537 MACRO {sleb} {"Sov. Phys.--Leb. Inst. Rep."}
538 MACRO {stph} {"Sov. Phys.--Techn. Phys."}
539 MACRO {stphl} {"Sov. Techn. Phys. Lett."}
540 MACRO {vr} {"Vision Res."}
541 MACRO {zph} {"Z. f. Physik"}
542 MACRO {zphb} {"Z. f. Physik~B"}
543 MACRO {zphd} {"Z. f. Physik~D"}
544
545 MACRO {CLEO} {"CLEO"}
546 MACRO {ASSL} {"Adv. Sol.-State Lasers"}
547 MACRO {OSA} {"OSA"}
548 % End module: photjour.mbs
549 %% Copyright 1994-2002 Patrick W Daly
550 MACRO {acmcs} {"ACM Comput. Surv."}
551
552 MACRO {acta} {"Acta Inf."}
553
554 MACRO {cacm} {"Commun. ACM"}
555
556 MACRO {ibmjrd} {"IBM J. Res. Dev."}
557
558 MACRO {ibmsj} {"IBM Syst.~J."}
559
560 MACRO {ieeese} {"IEEE Trans. Software Eng."}
561
562 MACRO {ieeetc} {"IEEE Trans. Comput."}
563
564 MACRO {ieeetcad}
565 {"IEEE Trans. Comput. Aid. Des."}
566
567 MACRO {ipl} {"Inf. Process. Lett."}
568
569 MACRO {jacm} {"J.~ACM"}
570
571 MACRO {jcss} {"J.~Comput. Syst. Sci."}
572
573 MACRO {scp} {"Sci. Comput. Program."}
574
575 MACRO {sicomp} {"SIAM J. Comput."}
576
577 MACRO {tocs} {"ACM Trans. Comput. Syst."}
578
579 MACRO {tods} {"ACM Trans. Database Syst."}
580
581 MACRO {tog} {"ACM Trans. Graphic."}
582
583 MACRO {toms} {"ACM Trans. Math. Software"}
584
585 MACRO {toois} {"ACM Trans. Office Inf. Syst."}
586
587 MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."}
588
589 MACRO {tcs} {"Theor. Comput. Sci."}
590
591
592 % Phf: adding support for DOI, code pasted from apsrev4-1.bst
593 FUNCTION {doi.command.href}
594 {
595 "\Doi "
596 }
597 FUNCTION {noop.command}
598 {
599 "\myhrefnoop "
600 }
601 FUNCTION {href.command}
602 {
603 "\myhref "
604 }
605 FUNCTION {link.tag.open}
606 {
607 doi duplicate$ empty$
608 {
609 pop$
610 url duplicate$ empty$
611 {
612 pop$ "" noop.command
613 }{
614 href.command
615 }
616 if$
617 }
618 {
619 doi.command.href
620 }
621 if$
622 "{" * swap$ * "} {" *
623 }
624
625 FUNCTION {link.tag.shut}
626 {
627 "}"
628 }
629 FUNCTION {link.open}
630 {
631 link.tag.open
632 }
633 FUNCTION {link.shut}
634 {
635 link.tag.shut *
636 }
637 FUNCTION {add.doi}
638 {
639 link.tag.open swap$ * link.tag.shut *
640 }
641
642
643
644 FUNCTION {bibinfo.check}
645 { swap$
646 duplicate$ missing$
647 {
648 pop$ pop$
649 ""
650 }
651 { duplicate$ empty$
652 {
653 swap$ pop$
654 }
655 { swap$
656 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
657 }
658 if$
659 }
660 if$
661 }
662 FUNCTION {bibinfo.warn}
663 { swap$
664 duplicate$ missing$
665 {
666 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
667 ""
668 }
669 { duplicate$ empty$
670 {
671 swap$ "empty " swap$ * " in " * cite$ * warning$
672 }
673 { swap$
674 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
675 }
676 if$
677 }
678 if$
679 }
680 FUNCTION {format.eprint}
681 { eprint duplicate$ empty$
682 'skip$
683 { "\eprint"
684 archive empty$
685 'skip$
686 { "[" * archive * "]" * }
687 if$
688 "{" * swap$ * "}" *
689 }
690 if$
691 }
692 FUNCTION {format.url}
693 { url empty$
694 { "" }
695 { "\urlprefix\url{" url * "}" * }
696 if$
697 }
698
699 STRINGS { bibinfo}
700 INTEGERS { nameptr namesleft numnames }
701
702 FUNCTION {format.names}
703 { 'bibinfo :=
704 duplicate$ empty$ 'skip$ {
705 's :=
706 "" 't :=
707 #1 'nameptr :=
708 s num.names$ 'numnames :=
709 numnames 'namesleft :=
710 { namesleft #0 > }
711 { s nameptr
712 "{vv~}{ll}{, f.}{, jj}"
713 format.name$
714 bibinfo bibinfo.check
715 't :=
716 nameptr #1 >
717 {
718 nameptr #1
719 #1 + =
720 numnames #5
721 > and
722 { "others" 't :=
723 #1 'namesleft := }
724 'skip$
725 if$
726 namesleft #1 >
727 { ", " * t * }
728 {
729 s nameptr "{ll}" format.name$ duplicate$ "others" =
730 { 't := }
731 { pop$ }
732 if$
733 t "others" =
734 {
735 " " * bbl.etal emphasize *
736 }
737 {
738 "\&"
739 space.word * t *
740 }
741 if$
742 }
743 if$
744 }
745 't
746 if$
747 nameptr #1 + 'nameptr :=
748 namesleft #1 - 'namesleft :=
749 }
750 while$
751 } if$
752 }
753 FUNCTION {format.names.ed}
754 {
755 format.names
756 }
757 FUNCTION {format.authors}
758 { author "author" format.names
759 }
760 FUNCTION {get.bbl.editor}
761 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
762
763 FUNCTION {format.editors}
764 { editor "editor" format.names duplicate$ empty$ 'skip$
765 {
766 " " *
767 get.bbl.editor
768 "(" swap$ * ")" *
769 *
770 }
771 if$
772 }
773 FUNCTION {format.note}
774 {
775 note empty$
776 { "" }
777 { note #1 #1 substring$
778 duplicate$ "{" =
779 'skip$
780 { output.state mid.sentence =
781 { "l" }
782 { "u" }
783 if$
784 change.case$
785 }
786 if$
787 note #2 global.max$ substring$ * "note" bibinfo.check
788 }
789 if$
790 }
791
792 FUNCTION {format.title}
793 { title
794 duplicate$ empty$ 'skip$
795 { "t" change.case$ }
796 if$
797 "title" bibinfo.check
798 }
799 FUNCTION {output.bibitem}
800 { newline$
801 "\bibitem{" write$
802 cite$ write$
803 "}" write$
804 newline$
805 ""
806 before.all 'output.state :=
807 }
808
809 FUNCTION {n.dashify}
810 {
811 't :=
812 ""
813 { t empty$ not }
814 { t #1 #1 substring$ "-" =
815 { t #1 #2 substring$ "--" = not
816 { "--" *
817 t #2 global.max$ substring$ 't :=
818 }
819 { { t #1 #1 substring$ "-" = }
820 { "-" *
821 t #2 global.max$ substring$ 't :=
822 }
823 while$
824 }
825 if$
826 }
827 { t #1 #1 substring$ *
828 t #2 global.max$ substring$ 't :=
829 }
830 if$
831 }
832 while$
833 }
834
835 FUNCTION {word.in}
836 { bbl.in capitalize
837 " " * }
838
839 FUNCTION {format.date}
840 {
841 ""
842 duplicate$ empty$
843 year "year" bibinfo.check duplicate$ empty$
844 { swap$ 'skip$
845 { "there's a month but no year in " cite$ * warning$ }
846 if$
847 *
848 }
849 { swap$ 'skip$
850 {
851 swap$
852 " " * swap$
853 }
854 if$
855 *
856 }
857 if$
858 duplicate$ empty$
859 'skip$
860 {
861 before.all 'output.state :=
862 " (" swap$ * ")" *
863 }
864 if$
865 }
866 FUNCTION {format.btitle}
867 { title "title" bibinfo.check
868 duplicate$ empty$ 'skip$
869 {
870 emphasize
871 }
872 if$
873 }
874 FUNCTION {either.or.check}
875 { empty$
876 'pop$
877 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
878 if$
879 }
880 FUNCTION {format.bvolume}
881 { volume empty$
882 { "" }
883 { bbl.volume volume tie.or.space.prefix
884 "volume" bibinfo.check * *
885 series "series" bibinfo.check
886 duplicate$ empty$ 'pop$
887 { swap$ bbl.of space.word * swap$
888 emphasize * }
889 if$
890 "volume and number" number either.or.check
891 }
892 if$
893 }
894 FUNCTION {format.number.series}
895 { volume empty$
896 { number empty$
897 { series field.or.null }
898 { series empty$
899 { number "number" bibinfo.check }
900 { output.state mid.sentence =
901 { bbl.number }
902 { bbl.number capitalize }
903 if$
904 number tie.or.space.prefix "number" bibinfo.check * *
905 bbl.in space.word *
906 series "series" bibinfo.check *
907 }
908 if$
909 }
910 if$
911 }
912 { "" }
913 if$
914 }
915
916 FUNCTION {format.edition}
917 { edition duplicate$ empty$ 'skip$
918 {
919 output.state mid.sentence =
920 { "l" }
921 { "t" }
922 if$ change.case$
923 "edition" bibinfo.check
924 " " * bbl.edition *
925 }
926 if$
927 }
928 INTEGERS { multiresult }
929 FUNCTION {multi.page.check}
930 { 't :=
931 #0 'multiresult :=
932 { multiresult not
933 t empty$ not
934 and
935 }
936 { t #1 #1 substring$
937 duplicate$ "-" =
938 swap$ duplicate$ "," =
939 swap$ "+" =
940 or or
941 { #1 'multiresult := }
942 { t #2 global.max$ substring$ 't := }
943 if$
944 }
945 while$
946 multiresult
947 }
948 FUNCTION {format.pages}
949 { pages duplicate$ empty$ 'skip$
950 { duplicate$ multi.page.check
951 {
952 n.dashify
953 }
954 {
955 }
956 if$
957 "pages" bibinfo.check
958 }
959 if$
960 }
961 FUNCTION {format.journal.pages}
962 { pages duplicate$ empty$ 'pop$
963 { swap$ duplicate$ empty$
964 { pop$ pop$ format.pages }
965 {
966 ", " *
967 swap$
968 n.dashify
969 "pages" bibinfo.check
970 *
971 }
972 if$
973 }
974 if$
975 }
976 FUNCTION {format.vol.num.pages}
977 { volume field.or.null
978 duplicate$ empty$ 'skip$
979 {
980 "volume" bibinfo.check
981 }
982 if$
983 bolden
984 format.journal.pages
985 }
986
987 FUNCTION {format.chapter.pages}
988 { chapter empty$
989 'format.pages
990 { type empty$
991 { bbl.chapter }
992 { type "l" change.case$
993 "type" bibinfo.check
994 }
995 if$
996 chapter tie.or.space.prefix
997 "chapter" bibinfo.check
998 * *
999 pages empty$
1000 'skip$
1001 { ", " * format.pages * }
1002 if$
1003 }
1004 if$
1005 }
1006
1007 FUNCTION {format.booktitle}
1008 {
1009 booktitle "booktitle" bibinfo.check
1010 emphasize
1011 }
1012 FUNCTION {format.in.ed.booktitle}
1013 { format.booktitle duplicate$ empty$ 'skip$
1014 {
1015 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1016 {
1017 " " *
1018 get.bbl.editor
1019 "(" swap$ * ") " *
1020 * swap$
1021 * }
1022 if$
1023 word.in swap$ *
1024 }
1025 if$
1026 }
1027 FUNCTION {empty.misc.check}
1028 { author empty$ title empty$ howpublished empty$
1029 month empty$ year empty$ note empty$
1030 and and and and and
1031 { "all relevant fields are empty in " cite$ * warning$ }
1032 'skip$
1033 if$
1034 }
1035 FUNCTION {format.thesis.type}
1036 { type duplicate$ empty$
1037 'pop$
1038 { swap$ pop$
1039 "t" change.case$ "type" bibinfo.check
1040 }
1041 if$
1042 }
1043 FUNCTION {format.tr.number}
1044 { number "number" bibinfo.check
1045 type duplicate$ empty$
1046 { pop$ bbl.techrep }
1047 'skip$
1048 if$
1049 "type" bibinfo.check
1050 swap$ duplicate$ empty$
1051 { pop$ "t" change.case$ }
1052 { tie.or.space.prefix * * }
1053 if$
1054 }
1055 FUNCTION {format.article.crossref}
1056 {
1057 key duplicate$ empty$
1058 { pop$
1059 journal duplicate$ empty$
1060 { "need key or journal for " cite$ * " to crossref " * crossref * warning$ }
1061 { "journal" bibinfo.check emphasize word.in swap$ * }
1062 if$
1063 }
1064 { word.in swap$ * " " *}
1065 if$
1066 " \cite{" * crossref * "}" *
1067 }
1068 FUNCTION {format.crossref.editor}
1069 { editor #1 "{vv~}{ll}" format.name$
1070 "editor" bibinfo.check
1071 editor num.names$ duplicate$
1072 #2 >
1073 { pop$
1074 "editor" bibinfo.check
1075 " " * bbl.etal
1076 emphasize
1077 *
1078 }
1079 { #2 <
1080 'skip$
1081 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1082 {
1083 "editor" bibinfo.check
1084 " " * bbl.etal
1085 emphasize
1086 *
1087 }
1088 {
1089 " \& "
1090 * editor #2 "{vv~}{ll}" format.name$
1091 "editor" bibinfo.check
1092 *
1093 }
1094 if$
1095 }
1096 if$
1097 }
1098 if$
1099 }
1100 FUNCTION {format.book.crossref}
1101 { volume duplicate$ empty$
1102 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1103 pop$ word.in
1104 }
1105 { bbl.volume
1106 capitalize
1107 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1108 }
1109 if$
1110 editor empty$
1111 editor field.or.null author field.or.null =
1112 or
1113 { key empty$
1114 { series empty$
1115 { "need editor, key, or series for " cite$ * " to crossref " *
1116 crossref * warning$
1117 "" *
1118 }
1119 { series emphasize * }
1120 if$
1121 }
1122 { key * }
1123 if$
1124 }
1125 { format.crossref.editor * }
1126 if$
1127 " \cite{" * crossref * "}" *
1128 }
1129 FUNCTION {format.incoll.inproc.crossref}
1130 {
1131 editor empty$
1132 editor field.or.null author field.or.null =
1133 or
1134 { key empty$
1135 { format.booktitle duplicate$ empty$
1136 { "need editor, key, or booktitle for " cite$ * " to crossref " *
1137 crossref * warning$
1138 }
1139 { word.in swap$ * }
1140 if$
1141 }
1142 { word.in key * " " *}
1143 if$
1144 }
1145 { word.in format.crossref.editor * " " *}
1146 if$
1147 " \cite{" * crossref * "}" *
1148 }
1149 FUNCTION {format.org.or.pub}
1150 { 't :=
1151 ""
1152 year empty$
1153 { "empty year in " cite$ * warning$ }
1154 'skip$
1155 if$
1156 address empty$ t empty$ and
1157 year empty$ and
1158 'skip$
1159 {
1160 add.blank "(" *
1161 t empty$
1162 { address "address" bibinfo.check *
1163 }
1164 { t *
1165 address empty$
1166 'skip$
1167 { ", " * address "address" bibinfo.check * }
1168 if$
1169 }
1170 if$
1171 year empty$
1172 'skip$
1173 { t empty$ address empty$ and
1174 'skip$
1175 { ", " * }
1176 if$
1177 year "year" bibinfo.check
1178 *
1179 }
1180 if$
1181 ")" *
1182 }
1183 if$
1184 }
1185 FUNCTION {format.publisher.address}
1186 { publisher "publisher" bibinfo.warn format.org.or.pub
1187 }
1188
1189 FUNCTION {format.organization.address}
1190 { organization "organization" bibinfo.check format.org.or.pub
1191 }
1192
1193 % ###PhF: for revtex (?)
1194 FUNCTION {control}
1195 {
1196 }
1197
1198 FUNCTION {article}
1199 { output.bibitem
1200 format.authors "author" output.check
1201 new.block
1202 format.title "title" output.check
1203 %duplicate$ empty$ { pop$ } { output } if$
1204 new.block
1205 crossref missing$
1206 {
1207 link.open
1208 output
1209 journal
1210 "journal" bibinfo.check
1211 emphasize
1212 "journal" output.check
1213 add.blank
1214 format.vol.num.pages output
1215 format.date "year" output.check
1216 link.shut
1217 }
1218 { format.article.crossref output.nonnull
1219 format.pages output
1220 }
1221 if$
1222 new.block
1223 format.url output
1224 new.block
1225 format.note output
1226 format.eprint output
1227 fin.entry
1228 }
1229 FUNCTION {book}
1230 { output.bibitem
1231 author empty$
1232 { format.editors "author and editor" output.check
1233 add.blank
1234 }
1235 { format.authors output.nonnull
1236 crossref missing$
1237 { "author and editor" editor either.or.check }
1238 'skip$
1239 if$
1240 }
1241 if$
1242 new.block
1243 format.btitle "title" output.check
1244 crossref missing$
1245 { format.bvolume output
1246 new.block
1247 format.number.series output
1248 new.sentence
1249 format.publisher.address output
1250 }
1251 {
1252 new.block
1253 format.book.crossref output.nonnull
1254 format.date "year" output.check
1255 }
1256 if$
1257 format.edition output
1258 new.block
1259 format.url output
1260 new.block
1261 format.note output
1262 format.eprint output
1263 fin.entry
1264 }
1265 FUNCTION {booklet}
1266 { output.bibitem
1267 format.authors output
1268 new.block
1269 format.title "title" output.check
1270 new.block
1271 howpublished "howpublished" bibinfo.check output
1272 address "address" bibinfo.check output
1273 format.date output
1274 new.block
1275 format.url output
1276 new.block
1277 format.note output
1278 format.eprint output
1279 fin.entry
1280 }
1281
1282 FUNCTION {inbook}
1283 { output.bibitem
1284 author empty$
1285 { format.editors "author and editor" output.check
1286 }
1287 { format.authors output.nonnull
1288 crossref missing$
1289 { "author and editor" editor either.or.check }
1290 'skip$
1291 if$
1292 }
1293 if$
1294 new.block
1295 format.btitle "title" output.check
1296 crossref missing$
1297 {
1298 format.bvolume output
1299 format.chapter.pages "chapter and pages" output.check
1300 new.block
1301 format.number.series output
1302 new.sentence
1303 format.publisher.address output
1304 }
1305 {
1306 format.chapter.pages "chapter and pages" output.check
1307 new.block
1308 format.book.crossref output.nonnull
1309 format.date "year" output.check
1310 }
1311 if$
1312 format.edition output
1313 new.block
1314 format.url output
1315 new.block
1316 format.note output
1317 format.eprint output
1318 fin.entry
1319 }
1320
1321 FUNCTION {incollection}
1322 { output.bibitem
1323 format.authors "author" output.check
1324 new.block
1325 format.title "title" output.check
1326 new.block
1327 crossref missing$
1328 {
1329 link.open
1330 output
1331 format.in.ed.booktitle "booktitle" output.check
1332 format.bvolume output
1333 format.number.series output
1334 format.chapter.pages output
1335 link.shut
1336 new.sentence
1337 format.publisher.address output
1338 format.edition output
1339 }
1340 { format.incoll.inproc.crossref output.nonnull
1341 format.chapter.pages output
1342 }
1343 if$
1344 new.block
1345 format.url output
1346 new.block
1347 format.note output
1348 format.eprint output
1349 fin.entry
1350 }
1351 FUNCTION {inproceedings}
1352 { output.bibitem
1353 format.authors "author" output.check
1354 new.block
1355 format.title "title" output.check
1356 new.block
1357 crossref missing$
1358 {
1359 link.open
1360 output
1361 format.in.ed.booktitle "booktitle" output.check
1362 format.bvolume output
1363 format.number.series output
1364 format.pages output
1365 link.shut
1366 new.sentence
1367 publisher empty$
1368 { format.organization.address output }
1369 { organization "organization" bibinfo.check output
1370 format.publisher.address output
1371 }
1372 if$
1373 }
1374 { format.incoll.inproc.crossref output.nonnull
1375 format.pages output
1376 }
1377 if$
1378 new.block
1379 format.url output
1380 new.block
1381 format.note output
1382 format.eprint output
1383 fin.entry
1384 }
1385 FUNCTION {conference} { inproceedings }
1386 FUNCTION {manual}
1387 { output.bibitem
1388 author empty$
1389 { organization "organization" bibinfo.check
1390 duplicate$ empty$ 'pop$
1391 { output
1392 address "address" bibinfo.check output
1393 }
1394 if$
1395 }
1396 { format.authors output.nonnull }
1397 if$
1398 new.block
1399 format.btitle "title" output.check
1400 author empty$
1401 { organization empty$
1402 {
1403 address new.block.checka
1404 address "address" bibinfo.check output
1405 }
1406 'skip$
1407 if$
1408 }
1409 {
1410 organization address new.block.checkb
1411 organization "organization" bibinfo.check output
1412 address "address" bibinfo.check output
1413 }
1414 if$
1415 format.edition output
1416 format.date output
1417 new.block
1418 format.url output
1419 new.block
1420 format.note output
1421 format.eprint output
1422 fin.entry
1423 }
1424
1425 FUNCTION {mastersthesis}
1426 { output.bibitem
1427 format.authors "author" output.check
1428 new.block
1429 format.btitle
1430 "title" output.check
1431 new.block
1432 bbl.mthesis format.thesis.type output.nonnull
1433 school "school" bibinfo.warn output
1434 address "address" bibinfo.check output
1435 format.date "year" output.check
1436 new.block
1437 format.url output
1438 new.block
1439 format.note output
1440 format.eprint output
1441 fin.entry
1442 }
1443
1444 FUNCTION {misc}
1445 { output.bibitem
1446 format.authors output
1447 title howpublished new.block.checkb
1448 format.title output
1449 howpublished new.block.checka
1450 howpublished "howpublished" bibinfo.check output
1451 format.date output
1452 new.block
1453 format.url output
1454 new.block
1455 format.note output
1456 format.eprint output
1457 fin.entry
1458 empty.misc.check
1459 }
1460 FUNCTION {phdthesis}
1461 { output.bibitem
1462 format.authors "author" output.check
1463 new.block
1464 format.btitle
1465 "title" output.check
1466 new.block
1467 link.open
1468 output
1469 bbl.phdthesis format.thesis.type output.nonnull
1470 link.shut
1471 school "school" bibinfo.warn output
1472 address "address" bibinfo.check output
1473 format.date "year" output.check
1474 new.block
1475 format.url output
1476 new.block
1477 format.note output
1478 format.eprint output
1479 fin.entry
1480 }
1481
1482 FUNCTION {proceedings}
1483 { output.bibitem
1484 editor empty$
1485 { organization "organization" bibinfo.check output
1486 }
1487 { format.editors output.nonnull }
1488 if$
1489 new.block
1490 format.btitle "title" output.check
1491 format.bvolume output
1492 format.number.series output
1493 editor empty$
1494 { publisher empty$
1495 'skip$
1496 {
1497 new.sentence
1498 format.publisher.address output
1499 }
1500 if$
1501 }
1502 { publisher empty$
1503 {
1504 new.sentence
1505 format.organization.address output }
1506 {
1507 new.sentence
1508 organization "organization" bibinfo.check output
1509 format.publisher.address output
1510 }
1511 if$
1512 }
1513 if$
1514 new.block
1515 format.url output
1516 new.block
1517 format.note output
1518 format.eprint output
1519 fin.entry
1520 }
1521
1522 FUNCTION {techreport}
1523 { output.bibitem
1524 format.authors "author" output.check
1525 new.block
1526 format.title
1527 "title" output.check
1528 new.block
1529 format.tr.number output.nonnull
1530 institution "institution" bibinfo.warn output
1531 address "address" bibinfo.check output
1532 format.date "year" output.check
1533 new.block
1534 format.url output
1535 new.block
1536 format.note output
1537 format.eprint output
1538 fin.entry
1539 }
1540
1541 FUNCTION {unpublished}
1542 { output.bibitem
1543 format.authors "author" output.check
1544 new.block
1545 format.title "title" output.check
1546 format.date output
1547 new.block
1548 format.url output
1549 new.block
1550 format.note "note" output.check
1551 format.eprint output
1552 fin.entry
1553 }
1554
1555 FUNCTION {default.type} { misc }
1556 READ
1557 STRINGS { longest.label }
1558 INTEGERS { number.label longest.label.width }
1559 FUNCTION {initialize.longest.label}
1560 { "" 'longest.label :=
1561 #1 'number.label :=
1562 #0 'longest.label.width :=
1563 }
1564 FUNCTION {longest.label.pass}
1565 { number.label int.to.str$ 'label :=
1566 number.label #1 + 'number.label :=
1567 label width$ longest.label.width >
1568 { label 'longest.label :=
1569 label width$ 'longest.label.width :=
1570 }
1571 'skip$
1572 if$
1573 }
1574 EXECUTE {initialize.longest.label}
1575 ITERATE {longest.label.pass}
1576 FUNCTION {begin.bib}
1577 { preamble$ empty$
1578 'skip$
1579 { preamble$ write$ newline$ }
1580 if$
1581 "\begin{thebibliography}{" longest.label * "}" *
1582 write$ newline$
1583 "\expandafter\ifx\csname url\endcsname\relax"
1584 write$ newline$
1585 " \def\url#1{\texttt{#1}}\fi"
1586 write$ newline$
1587 "\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{Available at }\fi"
1588 write$ newline$
1589 "\providecommand{\bibinfo}[2]{#2}"
1590 write$ newline$
1591 "\providecommand{\eprint}[2][]{\url{#2}}"
1592 write$ newline$
1593
1594 "\makeatletter"
1595 write$ newline$
1596
1597 "\providecommand \doibase [0]{https://doi.org/}"
1598 write$ newline$
1599 "\providecommand \@sanitize@url [0]{\catcode `\\12\catcode `\$12\catcode"
1600 write$ newline$
1601 " `\&12\catcode `\#12\catcode `\^12\catcode `\_12\catcode `\%12\relax}"
1602 write$ newline$
1603 "\providecommand \Doi [0]{\begingroup \@sanitize@url \@Doi }%"
1604 write$ newline$
1605 "\providecommand \@Doi [1]{\endgroup\@@startlink{\doibase#1}\@@Doi}%"
1606 write$ newline$
1607 %% ugly hacks because I don't know how to program BST files and I very unshamefully totally
1608 %% hacked the naturemag.bst style to add DOI's but I'm getting stray commas in bib entries
1609 "\def\gobbledotblock , {}"
1610 write$ newline$
1611 "\let\@@Doi\relax"
1612 write$ newline$
1613 "\newcommand \@@Doi [1]{\textcolor{docnotelinkcolor}{\gobbledotblock#1}\@@endlink}"
1614 write$ newline$
1615 "\newcommand\myhrefnoop[2]{\gobbledotblock#2}"
1616 write$ newline$
1617 "\newcommand\@@myhref[2]{\href{#1}{\gobbledotblock#2}}"
1618 write$ newline$
1619 "\newcommand\@myhref[1]{\endgroup\@@myhref{#1}}"
1620 write$ newline$
1621 "\newcommand\myhref{\begingroup\@sanitize@url\@myhref}"
1622 write$ newline$
1623 % with code taken from revtex4-1.cls:
1624 "\providecommand\@@startlink[1]{%"
1625 write$ newline$
1626 "\leavevmode%"
1627 write$ newline$
1628 "\pdfstartlink\pdfstartlink@attr%"
1629 write$ newline$
1630 " user{/Subtype/Link/A<</Type/Action/S/URI/URI(#1)>>}\relax%"
1631 write$ newline$
1632 "}"
1633 write$ newline$
1634 "\providecommand\@@endlink{\pdfendlink}"
1635 write$ newline$
1636 "\providecommand\pdfstartlink@attr{attr{/Border[0 0 0 [1 5] ]/H/I/C[0 1 1]}}"
1637 write$ newline$
1638
1639 "\makeatother"
1640 write$ newline$
1641
1642 ""
1643 write$ newline$
1644 }
1645 EXECUTE {begin.bib}
1646 EXECUTE {init.state.consts}
1647 ITERATE {call.type$}
1648 FUNCTION {end.bib}
1649 { newline$
1650 "\end{thebibliography}" write$ newline$
1651 }
1652 EXECUTE {end.bib}
1653 %% End of customized bst file
1654 %%
1655 %% End of file `nature.bst'.