Debian Codegraph @

texmf-dist/source/latex/revtex4/revtex4-bst.dtx

raw
1 % \iffalse meta-comment balanced on line 122
2 % revtex-bst.dtx: Package to extract .bst files for RevTeX
3 % Copyright (c) 2020 American Physical Society.
4 % https://journals.aps.org/revtex/
5 % mailto:[email protected]
6 %
7 % Disclaimer
8 % This file is distributed WITHOUT ANY WARRANTY;
9 % without even the implied warranty of
10 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 % License
12 % You may distribute this file under the conditions of the
13 % LaTeX Project Public License 1.3c or later
14 % (http://www.latex-project.org/lppl.txt).
15 % ReadMe
16 % For the documentation and more detailed instructions for
17 % installation, typeset this document with \LaTeX.
18 % Maintenance Status
19 % This work has the LPPL maintenance status "maintained";
20 % Current Maintainer of this work is Phelype Oleinik.
21 %
22 % This work consists of the main source file revtex4-bst.dtx
23 % and the derived files
24 % apsrev.bst, apsrmp.bst
25 % Distribution:
26 % CTAN:macros/latex/contrib/revtex4/
27 %
28 % Unpacking:
29 % tex revtex-bst.dtx
30 %
31 % Installation:
32 % TDS:bibtex/bst/revtex/
33 %
34 %<*ignore>
35 \begingroup
36 \def\x{LaTeX2e}%
37 \expandafter\endgroup
38 \ifcase
39 0\expandafter\ifx\csname processbatchFile\endcsname\relax\else1\fi\ifx\fmtname\x\else 1\fi
40 \relax
41 \else
42 \csname fi\endcsname
43 %</ignore>
44 %<*install>
45 %% This file will generate documentation and runtime files
46 %% from revtex4-2.dtx when run through TeX.
47 \input docstrip
48 \nopreamble
49 \edef\defaultpostamble{%
50 \MetaPrefix\space End of customized bst file^^J%
51 \MetaPrefix ^^J%
52 \MetaPrefix\space End of file `\outFileName'.%
53 }
54 \askforoverwritefalse
55 \keepsilent
56 \generate{%
57 \file{apsrev.bst}{\from{revtex4-bst.dtx}{apsrev}}%
58 \file{apsrmp.bst}{\from{revtex4-bst.dtx}{apsrmp}}%
59 }%
60 \ifToplevel{
61 \Msg{***********************************************************}
62 \Msg{*}
63 \Msg{* To finish the installation, please move}
64 \Msg{* *.bst }
65 \Msg{* into a directory searched by TeX;}
66 \Msg{* in a TDS-compliant installation:}
67 \Msg{* texmf/bibtex/bst/revtex4/.}
68 \Msg{*}
69 \Msg{* Happy BibTeXing}
70 \Msg{***********************************************************}
71 }
72 \endbatchfile
73 %</install>
74 %<*ignore>
75 \fi
76 %</ignore>
77 % \fi
78 %
79 % \GetFileInfo{revtex-bst.dtx}
80 %
81 % \StopEventually{}
82 % \iffalse ltxdoc klootch
83 %<*package>
84 %%% @LaTeX-file{
85 %%% filename = "revtex-bst.dtx",
86 %%% version = "4.0a",
87 %%% date = "2020/10/06",
88 %%% author = "Phelype Oleinik (mailto: phelype.oleinik at latex-project.org),
89 %%% commissioned by the American Physical Society.
90 %%% ",
91 %%% copyright = "Copyright (C) 2020 American Physical Society
92 %%% distributed under the terms of the
93 %%% LaTeX Project Public License 1.3c, see
94 %%% ftp://ctan.tug.org/macros/latex/base/lppl.txt
95 %%% ",
96 %%% email = "mailto colon revtex at aps.org",
97 %%% codetable = "ISO/ASCII",
98 %%% keywords = "",
99 %%% supported = "yes",
100 %%% abstract = "",
101 %%% }
102 %</package>
103 % \fi
104 %
105 % \subsection{Bill of Materials}
106 %
107 % Following is a list of the files in this distribution arranged
108 % according to provenance.
109 %
110 % \subsubsection{Primary Source}%
111 % One single file generates all.
112 %\begin{verbatim}
113 %revtex-bst.dtx
114 %\end{verbatim}
115 %
116 % \subsubsection{Generated by \texttt{tex revtex4-bst.dtx}}%
117 % Typesetting ths file under \TeX\ itself runs the installer,
118 % which generates the bibliography style files.
119 %\begin{verbatim}
120 %apsrev.bst, apsrmp.bst
121 %\end{verbatim}
122 %
123 % \section{Code common to all modules}%
124 %
125 % \begin{macrocode}
126 %<*apsrev|apsrmp>
127 %%
128 %<apsrev>%% This is file `apsrev.bst',
129 %<apsrmp>%% This is file `apsrmp.bst',
130 %% generated with the docstrip utility.
131 %%
132 %% The original source files were:
133 %%
134 %<*apsrev>
135 %% merlin.mbs (with options: `head,ay,nat,seq-no,nm-init,ed-au,nmlm,x10,x0,m10,m0,nmft,nmft-def,fnm-def,nmfted,lab,lab-def,keyxyr,yr-par,note-yr,tit-it,jtit-x,jttl-rm,thtit-x,trtit-x,vol-bf,vnum-x,volp-com,jpg-1,num-xser,jnm-x,pub-date,pre-pub,isbn,issn,edby,blk-com,pp,ed,abr,ednx,ord,jabr,revdata,eprint,url,url-blk,misc-simple,bibinfo,nfss,{}')
136 %% physjour.mbs (with options: `ay,nat,seq-no,nm-init,ed-au,nmlm,x10,x0,m10,m0,nmft,nmft-def,fnm-def,nmfted,lab,lab-def,keyxyr,yr-par,note-yr,tit-it,jtit-x,jttl-rm,thtit-x,trtit-x,vol-bf,vnum-x,volp-com,jpg-1,num-xser,jnm-x,pub-date,pre-pub,isbn,issn,edby,blk-com,pp,ed,abr,ednx,ord,jabr,revdata,eprint,url,url-blk,misc-simple,bibinfo,nfss,{}')
137 %% geojour.mbs (with options: `ay,nat,seq-no,nm-init,ed-au,nmlm,x10,x0,m10,m0,nmft,nmft-def,fnm-def,nmfted,lab,lab-def,keyxyr,yr-par,note-yr,tit-it,jtit-x,jttl-rm,thtit-x,trtit-x,vol-bf,vnum-x,volp-com,jpg-1,num-xser,jnm-x,pub-date,pre-pub,isbn,issn,edby,blk-com,pp,ed,abr,ednx,ord,jabr,revdata,eprint,url,url-blk,misc-simple,bibinfo,nfss,{}')
138 %% photjour.mbs (with options: `ay,nat,seq-no,nm-init,ed-au,nmlm,x10,x0,m10,m0,nmft,nmft-def,fnm-def,nmfted,lab,lab-def,keyxyr,yr-par,note-yr,tit-it,jtit-x,jttl-rm,thtit-x,trtit-x,vol-bf,vnum-x,volp-com,jpg-1,num-xser,jnm-x,pub-date,pre-pub,isbn,issn,edby,blk-com,pp,ed,abr,ednx,ord,jabr,revdata,eprint,url,url-blk,misc-simple,bibinfo,nfss,{}')
139 %% merlin.mbs (with options: `tail,ay,nat,seq-no,nm-init,ed-au,nmlm,x10,x0,m10,m0,nmft,nmft-def,fnm-def,nmfted,lab,lab-def,keyxyr,yr-par,note-yr,tit-it,jtit-x,jttl-rm,thtit-x,trtit-x,vol-bf,vnum-x,volp-com,jpg-1,num-xser,jnm-x,pub-date,pre-pub,isbn,issn,edby,blk-com,pp,ed,abr,ednx,ord,jabr,revdata,eprint,url,url-blk,misc-simple,bibinfo,nfss,{}')
140 %</apsrev>
141 %<*apsrmp>
142 %% merlin.mbs (with options: `head,ay,nat,vonx,nm-rev1,jnrlst,nmlm,x10,x2,m10,m2,nmft,nmft-def,fnm-def,nmfted,nmand-rm,lab,lab-def,keyxyr,dt-beg,xmth,yr-com,note-yr,jtit-x,jttl-rm,trtit-b,vol-bf,volp-com,jpg-1,pp-last,num-xser,jnm-x,pub-par,pre-pub,isbn,issn,edpar,edby,blk-com,pp,ed,xedn,jabr,and-com,etal-it,revdata,eprint,url,url-blk,pub-over-eprint,bibinfo,nfss,{}')
143 %% physjour.mbs (with options: `ay,nat,vonx,nm-rev1,jnrlst,nmlm,x10,x2,m10,m2,nmft,nmft-def,fnm-def,nmfted,nmand-rm,lab,lab-def,keyxyr,dt-beg,xmth,yr-com,note-yr,jtit-x,jttl-rm,trtit-b,vol-bf,volp-com,jpg-1,pp-last,num-xser,jnm-x,pub-par,pre-pub,isbn,issn,edpar,edby,blk-com,pp,ed,xedn,jabr,and-com,etal-it,revdata,eprint,url,url-blk,pub-over-eprint,bibinfo,nfss,{}')
144 %% geojour.mbs (with options: `ay,nat,vonx,nm-rev1,jnrlst,nmlm,x10,x2,m10,m2,nmft,nmft-def,fnm-def,nmfted,nmand-rm,lab,lab-def,keyxyr,dt-beg,xmth,yr-com,note-yr,jtit-x,jttl-rm,trtit-b,vol-bf,volp-com,jpg-1,pp-last,num-xser,jnm-x,pub-par,pre-pub,isbn,issn,edpar,edby,blk-com,pp,ed,xedn,jabr,and-com,etal-it,revdata,eprint,url,url-blk,pub-over-eprint,bibinfo,nfss,{}')
145 %% photjour.mbs (with options: `ay,nat,vonx,nm-rev1,jnrlst,nmlm,x10,x2,m10,m2,nmft,nmft-def,fnm-def,nmfted,nmand-rm,lab,lab-def,keyxyr,dt-beg,xmth,yr-com,note-yr,jtit-x,jttl-rm,trtit-b,vol-bf,volp-com,jpg-1,pp-last,num-xser,jnm-x,pub-par,pre-pub,isbn,issn,edpar,edby,blk-com,pp,ed,xedn,jabr,and-com,etal-it,revdata,eprint,url,url-blk,pub-over-eprint,bibinfo,nfss,{}')
146 %% merlin.mbs (with options: `tail,ay,nat,vonx,nm-rev1,jnrlst,nmlm,x10,x2,m10,m2,nmft,nmft-def,fnm-def,nmfted,nmand-rm,lab,lab-def,keyxyr,dt-beg,xmth,yr-com,note-yr,jtit-x,jttl-rm,trtit-b,vol-bf,volp-com,jpg-1,pp-last,num-xser,jnm-x,pub-par,pre-pub,isbn,issn,edpar,edby,blk-com,pp,ed,xedn,jabr,and-com,etal-it,revdata,eprint,url,url-blk,pub-over-eprint,bibinfo,nfss,{}')
147 %</apsrmp>
148 %% ----------------------------------------
149 %<apsrev>%% *** REVTeX-compatible apsrev.bst 1702 ***
150 %<apsrmp>%% *** REVTeX-compatible apsrmp.bst 1702 ***
151 %%
152 %% Copyright 1994-2000 Patrick W Daly
153 % ===============================================================
154 % IMPORTANT NOTICE:
155 % This bibliographic style (bst) file has been generated from one or
156 % more master bibliographic style (mbs) files, listed above.
157 %
158 % This generated file can be redistributed and/or modified under the terms
159 % of the LaTeX Project Public License Distributed from CTAN
160 % archives in directory macros/latex/base/lppl.txt; either
161 % version 1 of the License, or any later version.
162 % ===============================================================
163 % Name and version information of the main mbs file:
164 % \ProvidesFile{merlin.mbs}[2000/05/04 4.01 (PWD, AO, DPC)]
165 % For use with BibTeX version 0.99a or later
166 %-------------------------------------------------------------------
167 % This bibliography style file is intended for texts in ENGLISH
168 % This is an author-year citation style bibliography. As such, it is
169 % non-standard LaTeX, and requires a special package file to function properly.
170 % Such a package is natbib.sty by Patrick W. Daly
171 % The form of the \bibitem entries is
172 % \bibitem[Jones et al.(1990)]{key}...
173 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
174 % The essential feature is that the label (the part in brackets) consists
175 % of the author names, as they should appear in the citation, with the year
176 % in parentheses following. There must be no space before the opening
177 % parenthesis!
178 % With natbib v5.3, a full list of authors may also follow the year.
179 % In natbib.sty, it is possible to define the type of enclosures that is
180 % really wanted (brackets or parentheses), but in either case, there must
181 % be parentheses in the label.
182 % The \cite command functions as follows:
183 % \citet{key} ==>> Jones et al. (1990)
184 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
185 % \citep{key} ==>> (Jones et al., 1990)
186 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
187 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
188 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
189 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
190 % \citeauthor{key} ==>> Jones et al.
191 % \citeauthor*{key} ==>> Jones, Baker, and Smith
192 % \citeyear{key} ==>> 1990
193 %---------------------------------------------------------------------
194 %</apsrev|apsrmp>
195 %
196 % \subsection{The Frontmatter File}
197 % As promised above, here is the contents of the frontmatter file.
198 % This file doesn't have any documentation, so just stop early.
199 % \begin{macrocode}
200 %<*ignore>
201 \stop
202 \changes{4.0a}{2020/10/06}{(PHO) Initial version---Put all .bst files in a single .dtx}
203 %</ignore>
204 % \end{macrocode}
205 %
206 % \begin{macrocode}
207 %<*apsrev|apsrmp>
208 % \end{macrocode}
209 %
210 % \begin{macrocode}
211
212 ENTRY
213 { address
214 archive
215 author
216 booktitle
217 chapter
218 collaboration
219 edition
220 editor
221 eid
222 eprint
223 howpublished
224 institution
225 isbn
226 issn
227 journal
228 key
229 month
230 note
231 number
232 numpages
233 organization
234 pages
235 publisher
236 school
237 series
238 title
239 type
240 url
241 volume
242 year
243 }
244 {}
245 { label extra.label sort.label short.list }
246 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
247 FUNCTION {init.state.consts}
248 { #0 'before.all :=
249 #1 'mid.sentence :=
250 #2 'after.sentence :=
251 #3 'after.block :=
252 }
253 STRINGS { s t}
254 FUNCTION {output.nonnull}
255 { 's :=
256 output.state mid.sentence =
257 { ", " * write$ }
258 { output.state after.block =
259 { add.period$ write$
260 newline$
261 "\newblock " write$
262 }
263 { output.state before.all =
264 'write$
265 { add.period$ " " * write$ }
266 if$
267 }
268 if$
269 mid.sentence 'output.state :=
270 }
271 if$
272 s
273 }
274 FUNCTION {output}
275 { duplicate$ empty$
276 'pop$
277 'output.nonnull
278 if$
279 }
280 FUNCTION {output.check}
281 { 't :=
282 duplicate$ empty$
283 { pop$ "empty " t * " in " * cite$ * warning$ }
284 'output.nonnull
285 if$
286 }
287 FUNCTION {fin.entry}
288 { add.period$
289 write$
290 newline$
291 }
292
293 FUNCTION {new.block}
294 { output.state before.all =
295 'skip$
296 { after.block 'output.state := }
297 if$
298 }
299 FUNCTION {new.sentence}
300 { output.state after.block =
301 'skip$
302 { output.state before.all =
303 'skip$
304 { after.sentence 'output.state := }
305 if$
306 }
307 if$
308 }
309 FUNCTION {add.blank}
310 { " " * before.all 'output.state :=
311 }
312
313 FUNCTION {date.block}
314 {
315 skip$
316 }
317
318 FUNCTION {not}
319 { { #0 }
320 { #1 }
321 if$
322 }
323 FUNCTION {and}
324 { 'skip$
325 { pop$ #0 }
326 if$
327 }
328 FUNCTION {or}
329 { { pop$ #1 }
330 'skip$
331 if$
332 }
333 FUNCTION {new.block.checkb}
334 { empty$
335 swap$ empty$
336 and
337 'skip$
338 'new.block
339 if$
340 }
341 FUNCTION {field.or.null}
342 { duplicate$ empty$
343 { pop$ "" }
344 'skip$
345 if$
346 }
347 FUNCTION {emphasize}
348 { duplicate$ empty$
349 { pop$ "" }
350 { "\emph{" swap$ * "}" * }
351 if$
352 }
353 FUNCTION {bolden}
354 { duplicate$ empty$
355 { pop$ "" }
356 { "\textbf{" swap$ * "}" * }
357 if$
358 }
359 FUNCTION {bib.name.font}
360 { duplicate$ empty$
361 { pop$ "" }
362 { "\bibnamefont{" swap$ * "}" * }
363 if$
364 }
365 FUNCTION {bib.fname.font}
366 { duplicate$ empty$
367 { pop$ "" }
368 { "\bibfnamefont{" swap$ * "}" * }
369 if$
370 }
371 FUNCTION {cite.name.font}
372 { duplicate$ empty$
373 { pop$ "" }
374 { "\citenamefont{" swap$ * "}" * }
375 if$
376 }
377 FUNCTION {tie.or.space.prefix}
378 { duplicate$ text.length$ #3 <
379 { "~" }
380 { " " }
381 if$
382 swap$
383 }
384
385 FUNCTION {capitalize}
386 { "u" change.case$ "t" change.case$ }
387
388 FUNCTION {space.word}
389 { " " swap$ * " " * }
390 % Here are the language-specific definitions for explicit words.
391 % Each function has a name bbl.xxx where xxx is the English word.
392 % The language selected here is ENGLISH
393 FUNCTION {bbl.and}
394 { "and"}
395
396 FUNCTION {bbl.etal}
397 { "et~al." }
398
399 FUNCTION {bbl.editors}
400 { "eds." }
401
402 FUNCTION {bbl.editor}
403 { "ed." }
404
405 FUNCTION {bbl.edby}
406 { "edited by" }
407
408 FUNCTION {bbl.edition}
409 %<apsrev>{ "ed." }
410 %<apsrmp>{ "edition" }
411
412 FUNCTION {bbl.volume}
413 %<apsrev>{ "vol." }
414 %<apsrmp>{ "volume" }
415
416 FUNCTION {bbl.of}
417 { "of" }
418
419 FUNCTION {bbl.number}
420 %<apsrev>{ "no." }
421 %<apsrmp>{ "number" }
422
423 FUNCTION {bbl.nr}
424 { "no." }
425
426 FUNCTION {bbl.in}
427 { "in" }
428
429 FUNCTION {bbl.pages}
430 { "pp." }
431
432 FUNCTION {bbl.page}
433 { "p." }
434
435 FUNCTION {bbl.eidpp}
436 { "pages" }
437
438 FUNCTION {bbl.chapter}
439 %<apsrev>{ "chap." }
440 %<apsrmp>{ "chapter" }
441
442 FUNCTION {bbl.techrep}
443 %<apsrev>{ "Tech. Rep." }
444 %<apsrmp>{ "Technical Report" }
445
446 FUNCTION {bbl.mthesis}
447 { "Master's thesis" }
448
449 FUNCTION {bbl.phdthesis}
450 { "Ph.D. thesis" }
451
452 %<*apsrev>
453 FUNCTION {bbl.first}
454 { "1st" }
455
456 FUNCTION {bbl.second}
457 { "2nd" }
458
459 FUNCTION {bbl.third}
460 { "3rd" }
461
462 FUNCTION {bbl.fourth}
463 { "4th" }
464
465 FUNCTION {bbl.fifth}
466 { "5th" }
467
468 FUNCTION {bbl.st}
469 { "st" }
470
471 FUNCTION {bbl.nd}
472 { "nd" }
473
474 FUNCTION {bbl.rd}
475 { "rd" }
476
477 FUNCTION {bbl.th}
478 { "th" }
479
480 MACRO {jan} {"Jan."}
481
482 MACRO {feb} {"Feb."}
483
484 MACRO {mar} {"Mar."}
485
486 MACRO {apr} {"Apr."}
487
488 MACRO {may} {"May"}
489
490 MACRO {jun} {"Jun."}
491
492 MACRO {jul} {"Jul."}
493
494 MACRO {aug} {"Aug."}
495
496 MACRO {sep} {"Sep."}
497
498 MACRO {oct} {"Oct."}
499
500 MACRO {nov} {"Nov."}
501
502 MACRO {dec} {"Dec."}
503
504 FUNCTION {eng.ord}
505 { duplicate$ "1" swap$ *
506 #-2 #1 substring$ "1" =
507 { bbl.th * }
508 { duplicate$ #-1 #1 substring$
509 duplicate$ "1" =
510 { pop$ bbl.st * }
511 { duplicate$ "2" =
512 { pop$ bbl.nd * }
513 { "3" =
514 { bbl.rd * }
515 { bbl.th * }
516 if$
517 }
518 if$
519 }
520 if$
521 }
522 if$
523 }
524 %</apsrev>
525 %<*apsrmp>
526 MACRO {jan} {"January"}
527
528 MACRO {feb} {"February"}
529
530 MACRO {mar} {"March"}
531
532 MACRO {apr} {"April"}
533
534 MACRO {may} {"May"}
535
536 MACRO {jun} {"June"}
537
538 MACRO {jul} {"July"}
539
540 MACRO {aug} {"August"}
541
542 MACRO {sep} {"September"}
543
544 MACRO {oct} {"October"}
545
546 MACRO {nov} {"November"}
547
548 MACRO {dec} {"December"}
549 %</apsrmp>
550
551 %-------------------------------------------------------------------
552
553 % Begin module:
554
555 % \ProvidesFile{physjour.mbs}[1999/10/05 2.1 (PWD)]
556
557 MACRO {aa}{"Astron. \& Astrophys."}
558
559 MACRO {aasup}{"Astron. \& Astrophys. Suppl. Ser."}
560
561 MACRO {aj} {"Astron. J."}
562
563 MACRO {aph} {"Acta Phys."}
564
565 MACRO {advp} {"Adv. Phys."}
566
567 MACRO {ajp} {"Amer. J. Phys."}
568
569 MACRO {ajm} {"Amer. J. Math."}
570
571 MACRO {amsci} {"Amer. Sci."}
572
573 MACRO {anofd} {"Ann. Fluid Dyn."}
574
575 MACRO {am} {"Ann. Math."}
576
577 MACRO {ap} {"Ann. Phys. (NY)"}
578
579 MACRO {adp} {"Ann. Phys. (Leipzig)"}
580
581 MACRO {ao} {"Appl. Opt."}
582
583 MACRO {apl} {"Appl. Phys. Lett."}
584
585 MACRO {app} {"Astroparticle Phys."}
586
587 MACRO {apj} {"Astrophys. J."}
588
589 MACRO {apjsup} {"Astrophys. J. Suppl."}
590
591 MACRO {apss} {"Astrophys. Space Sci."}
592
593 MACRO {araa} {"Ann. Rev. Astron. Astrophys."}
594
595 MACRO {baas} {"Bull. Amer. Astron. Soc."}
596
597 MACRO {baps} {"Bull. Amer. Phys. Soc."}
598
599 MACRO {cmp} {"Comm. Math. Phys."}
600
601 MACRO {cpam} {"Commun. Pure Appl. Math."}
602
603 MACRO {cppcf} {"Comm. Plasma Phys. \& Controlled Fusion"}
604
605 MACRO {cpc} {"Comp. Phys. Comm."}
606
607 MACRO {cqg} {"Class. Quant. Grav."}
608
609 MACRO {cra} {"C. R. Acad. Sci. A"}
610
611 MACRO {fed} {"Fusion Eng. \& Design"}
612
613 MACRO {ft} {"Fusion Tech."}
614
615 MACRO {grg} {"Gen. Relativ. Gravit."}
616
617 MACRO {ieeens} {"IEEE Trans. Nucl. Sci."}
618
619 MACRO {ieeeps} {"IEEE Trans. Plasma Sci."}
620
621 MACRO {ijimw} {"Interntl. J. Infrared \& Millimeter Waves"}
622
623 MACRO {ip} {"Infrared Phys."}
624
625 MACRO {irp} {"Infrared Phys."}
626
627 MACRO {jap} {"J. Appl. Phys."}
628
629 MACRO {jasa} {"J. Acoust. Soc. America"}
630
631 MACRO {jcp} {"J. Comp. Phys."}
632
633 MACRO {jetp} {"Sov. Phys.--JETP"}
634
635 MACRO {jfe} {"J. Fusion Energy"}
636
637 MACRO {jfm} {"J. Fluid Mech."}
638
639 MACRO {jmp} {"J. Math. Phys."}
640
641 MACRO {jne} {"J. Nucl. Energy"}
642
643 MACRO {jnec} {"J. Nucl. Energy, C: Plasma Phys., Accelerators, Thermonucl. Res."}
644
645 MACRO {jnm} {"J. Nucl. Mat."}
646
647 MACRO {jpc} {"J. Phys. Chem."}
648
649 MACRO {jpp} {"J. Plasma Phys."}
650
651 MACRO {jpsj} {"J. Phys. Soc. Japan"}
652
653 MACRO {jsi} {"J. Sci. Instrum."}
654
655 MACRO {jvst} {"J. Vac. Sci. \& Tech."}
656
657 MACRO {nat} {"Nature"}
658
659 MACRO {nature} {"Nature"}
660
661 MACRO {nedf} {"Nucl. Eng. \& Design/Fusion"}
662
663 MACRO {nf} {"Nucl. Fusion"}
664
665 MACRO {nim} {"Nucl. Inst. \& Meth."}
666
667 MACRO {nimpr} {"Nucl. Inst. \& Meth. in Phys. Res."}
668
669 MACRO {np} {"Nucl. Phys."}
670
671 MACRO {npb} {"Nucl. Phys. B"}
672
673 MACRO {nt/f} {"Nucl. Tech./Fusion"}
674
675 MACRO {npbpc} {"Nucl. Phys. B (Proc. Suppl.)"}
676
677 MACRO {inc} {"Nuovo Cimento"}
678
679 MACRO {nc} {"Nuovo Cimento"}
680
681 MACRO {pf} {"Phys. Fluids"}
682
683 MACRO {pfa} {"Phys. Fluids A: Fluid Dyn."}
684
685 MACRO {pfb} {"Phys. Fluids B: Plasma Phys."}
686
687 MACRO {pl} {"Phys. Lett."}
688
689 MACRO {pla} {"Phys. Lett. A"}
690
691 MACRO {plb} {"Phys. Lett. B"}
692
693 MACRO {prep} {"Phys. Rep."}
694
695 MACRO {pnas} {"Proc. Nat. Acad. Sci. USA"}
696
697 MACRO {pp} {"Phys. Plasmas"}
698
699 MACRO {ppcf} {"Plasma Phys. \& Controlled Fusion"}
700
701 MACRO {phitrsl} {"Philos. Trans. Roy. Soc. London"}
702
703 MACRO {prl} {"Phys. Rev. Lett."}
704
705 MACRO {pr} {"Phys. Rev."}
706
707 MACRO {physrev} {"Phys. Rev."}
708
709 MACRO {pra} {"Phys. Rev. A"}
710
711 MACRO {prb} {"Phys. Rev. B"}
712
713 MACRO {prc} {"Phys. Rev. C"}
714
715 MACRO {prd} {"Phys. Rev. D"}
716
717 MACRO {pre} {"Phys. Rev. E"}
718
719 MACRO {ps} {"Phys. Scripta"}
720
721 MACRO {procrsl} {"Proc. Roy. Soc. London"}
722
723 MACRO {rmp} {"Rev. Mod. Phys."}
724
725 MACRO {rsi} {"Rev. Sci. Inst."}
726
727 MACRO {science} {"Science"}
728
729 MACRO {sciam} {"Sci. Am."}
730
731 MACRO {sam} {"Stud. Appl. Math."}
732
733 MACRO {sjpp} {"Sov. J. Plasma Phys."}
734
735 MACRO {spd} {"Sov. Phys.--Doklady"}
736
737 MACRO {sptp} {"Sov. Phys.--Tech. Phys."}
738
739 MACRO {spu} {"Sov. Phys.--Uspeki"}
740
741 MACRO {st} {"Sky and Telesc."}
742
743 % End module: physjour.mbs
744
745 %-------------------------------------------------------------------
746 % Begin module:
747 % \ProvidesFile{geojour.mbs}[1999/11/16 2.0g (PWD)]
748 MACRO {aisr} {"Adv. Space Res."}
749 MACRO {ag} {"Ann. Geophys."}
750 MACRO {anigeo} {"Ann. Geofis."}
751 MACRO {angl} {"Ann. Glaciol."}
752 MACRO {andmet} {"Ann. d. Meteor."}
753 MACRO {andgeo} {"Ann. d. Geophys."}
754 MACRO {andphy} {"Ann. Phys.-Paris"}
755 MACRO {afmgb} {"Arch. Meteor. Geophys. Bioklimatol."}
756 MACRO {atph} {"Atm\'osphera"}
757 MACRO {aao} {"Atmos. Ocean"}
758 MACRO {ass}{"Astrophys. Space Sci."}
759 MACRO {atenv} {"Atmos. Environ."}
760 MACRO {aujag} {"Aust. J. Agr. Res."}
761 MACRO {aumet} {"Aust. Meteorol. Mag."}
762 MACRO {blmet} {"Bound.-Lay. Meteorol."}
763 MACRO {bams} {"Bull. Amer. Meteorol. Soc."}
764 MACRO {cch} {"Clim. Change"}
765 MACRO {cdyn} {"Clim. Dynam."}
766 MACRO {cbul} {"Climatol. Bull."}
767 MACRO {cap} {"Contrib. Atmos. Phys."}
768 MACRO {dsr} {"Deep-Sea Res."}
769 MACRO {dhz} {"Dtsch. Hydrogr. Z."}
770 MACRO {dao} {"Dynam. Atmos. Oceans"}
771 MACRO {eco} {"Ecology"}
772 MACRO {empl}{"Earth, Moon and Planets"}
773 MACRO {envres} {"Environ. Res."}
774 MACRO {envst} {"Environ. Sci. Technol."}
775 MACRO {ecms} {"Estuarine Coastal Mar. Sci."}
776 MACRO {expa}{"Exper. Astron."}
777 MACRO {geoint} {"Geofis. Int."}
778 MACRO {geopub} {"Geofys. Publ."}
779 MACRO {geogeo} {"Geol. Geofiz."}
780 MACRO {gafd} {"Geophys. Astrophys. Fluid Dyn."}
781 MACRO {gfd} {"Geophys. Fluid Dyn."}
782 MACRO {geomag} {"Geophys. Mag."}
783 MACRO {georl} {"Geophys. Res. Lett."}
784 MACRO {grl} {"Geophys. Res. Lett."}
785 MACRO {ga} {"Geophysica"}
786 MACRO {gs} {"Geophysics"}
787 MACRO {ieeetap} {"IEEE Trans. Antenn. Propag."}
788 MACRO {ijawp} {"Int. J. Air Water Pollut."}
789 MACRO {ijc} {"Int. J. Climatol."}
790 MACRO {ijrs} {"Int. J. Remote Sens."}
791 MACRO {jam} {"J. Appl. Meteorol."}
792 MACRO {jaot} {"J. Atmos. Ocean. Technol."}
793 MACRO {jatp} {"J. Atmos. Terr. Phys."}
794 MACRO {jce} {"J. Climate"}
795 MACRO {jcam} {"J. Climate Appl. Meteor."}
796 MACRO {jcm} {"J. Climate Meteor."}
797 MACRO {jcy} {"J. Climatol."}
798 MACRO {jgr} {"J. Geophys. Res."}
799 MACRO {jga} {"J. Glaciol."}
800 MACRO {jh} {"J. Hydrol."}
801 MACRO {jmr} {"J. Mar. Res."}
802 MACRO {jmrj} {"J. Meteor. Res. Japan"}
803 MACRO {jm} {"J. Meteor."}
804 MACRO {jpo} {"J. Phys. Oceanogr."}
805 MACRO {jra} {"J. Rech. Atmos."}
806 MACRO {jaes} {"J. Aeronaut. Sci."}
807 MACRO {japca} {"J. Air Pollut. Control Assoc."}
808 MACRO {jas} {"J. Atmos. Sci."}
809 MACRO {jmts} {"J. Mar. Technol. Soc."}
810 MACRO {jmsj} {"J. Meteorol. Soc. Japan"}
811 MACRO {josj} {"J. Oceanogr. Soc. Japan"}
812 MACRO {jwm} {"J. Wea. Mod."}
813 MACRO {lao} {"Limnol. Oceanogr."}
814 MACRO {mwl} {"Mar. Wea. Log"}
815 MACRO {mau} {"Mausam"}
816 MACRO {meteor} {"``Meteor'' Forschungsergeb."}
817 MACRO {map} {"Meteorol. Atmos. Phys."}
818 MACRO {metmag} {"Meteor. Mag."}
819 MACRO {metmon} {"Meteor. Monogr."}
820 MACRO {metrun} {"Meteor. Rundsch."}
821 MACRO {metzeit} {"Meteor. Z."}
822 MACRO {metgid} {"Meteor. Gidrol."}
823 MACRO {mwr} {"Mon. Weather Rev."}
824 MACRO {nwd} {"Natl. Weather Dig."}
825 MACRO {nzjmfr} {"New Zeal. J. Mar. Freshwater Res."}
826 MACRO {npg} {"Nonlin. Proc. Geophys."}
827 MACRO {om} {"Oceanogr. Meteorol."}
828 MACRO {ocac} {"Oceanol. Acta"}
829 MACRO {oceanus} {"Oceanus"}
830 MACRO {paleoc} {"Paleoceanography"}
831 MACRO {pce} {"Phys. Chem. Earth"}
832 MACRO {pmg} {"Pap. Meteor. Geophys."}
833 MACRO {ppom} {"Pap. Phys. Oceanogr. Meteor."}
834 MACRO {physzeit} {"Phys. Z."}
835 MACRO {pps} {"Planet. Space Sci."}
836 MACRO {pss} {"Planet. Space Sci."}
837 MACRO {pag} {"Pure Appl. Geophys."}
838 MACRO {qjrms} {"Quart. J. Roy. Meteorol. Soc."}
839 MACRO {quatres} {"Quat. Res."}
840 MACRO {rsci} {"Radio Sci."}
841 MACRO {rse} {"Remote Sens. Environ."}
842 MACRO {rgeo} {"Rev. Geophys."}
843 MACRO {rgsp} {"Rev. Geophys. Space Phys."}
844 MACRO {rdgeo} {"Rev. Geofis."}
845 MACRO {revmeta} {"Rev. Meteorol."}
846 MACRO {sgp}{"Surveys in Geophys."}
847 MACRO {sp} {"Solar Phys."}
848 MACRO {ssr} {"Space Sci. Rev."}
849 MACRO {tellus} {"Tellus"}
850 MACRO {tac} {"Theor. Appl. Climatol."}
851 MACRO {tagu} {"Trans. Am. Geophys. Union (EOS)"}
852 MACRO {wrr} {"Water Resour. Res."}
853 MACRO {weather} {"Weather"}
854 MACRO {wafc} {"Weather Forecast."}
855 MACRO {ww} {"Weatherwise"}
856 MACRO {wmob} {"WMO Bull."}
857 MACRO {zeitmet} {"Z. Meteorol."}
858 % End module: geojour.mbs
859
860 %-------------------------------------------------------------------
861
862 % Begin module:
863
864 % \ProvidesFile{photjour.mbs}[1999/02/24 2.0b (PWD)]
865
866 MACRO {appopt} {"Appl. Opt."}
867
868 MACRO {bell} {"Bell Syst. Tech. J."}
869
870 MACRO {ell} {"Electron. Lett."}
871
872 MACRO {jasp} {"J. Appl. Spectr."}
873
874 MACRO {jqe} {"IEEE J. Quantum Electron."}
875
876 MACRO {jlwt} {"J. Lightwave Technol."}
877
878 MACRO {jmo} {"J. Mod. Opt."}
879
880 MACRO {josa} {"J. Opt. Soc. America"}
881
882 MACRO {josaa} {"J. Opt. Soc. Amer.~A"}
883
884 MACRO {josab} {"J. Opt. Soc. Amer.~B"}
885
886 MACRO {jdp} {"J. Phys. (Paris)"}
887
888 MACRO {oc} {"Opt. Commun."}
889
890 MACRO {ol} {"Opt. Lett."}
891
892 MACRO {phtl} {"IEEE Photon. Technol. Lett."}
893
894 MACRO {pspie} {"Proc. Soc. Photo-Opt. Instrum. Eng."}
895
896 MACRO {sse} {"Solid-State Electron."}
897
898 MACRO {sjot} {"Sov. J. Opt. Technol."}
899
900 MACRO {sjqe} {"Sov. J. Quantum Electron."}
901
902 MACRO {sleb} {"Sov. Phys.--Leb. Inst. Rep."}
903
904 MACRO {stph} {"Sov. Phys.--Techn. Phys."}
905
906 MACRO {stphl} {"Sov. Techn. Phys. Lett."}
907
908 MACRO {vr} {"Vision Res."}
909
910 MACRO {zph} {"Z. f. Physik"}
911
912 MACRO {zphb} {"Z. f. Physik~B"}
913
914 MACRO {zphd} {"Z. f. Physik~D"}
915
916 MACRO {CLEO} {"CLEO"}
917
918 MACRO {ASSL} {"Adv. Sol.-State Lasers"}
919
920 MACRO {OSA} {"OSA"}
921
922 % End module: photjour.mbs
923
924 %% Copyright 1994-2000 Patrick W Daly
925 MACRO {acmcs} {"ACM Comput. Surv."}
926
927 MACRO {acta} {"Acta Inf."}
928
929 MACRO {cacm} {"Commun. ACM"}
930
931 MACRO {ibmjrd} {"IBM J. Res. Dev."}
932
933 MACRO {ibmsj} {"IBM Syst.~J."}
934
935 MACRO {ieeese} {"IEEE Trans. Software Eng."}
936
937 MACRO {ieeetc} {"IEEE Trans. Comput."}
938
939 MACRO {ieeetcad}
940 {"IEEE Trans. Comput. Aid. Des."}
941
942 MACRO {ipl} {"Inf. Process. Lett."}
943
944 MACRO {jacm} {"J.~ACM"}
945
946 MACRO {jcss} {"J.~Comput. Syst. Sci."}
947
948 MACRO {scp} {"Sci. Comput. Program."}
949
950 MACRO {sicomp} {"SIAM J. Comput."}
951
952 MACRO {tocs} {"ACM Trans. Comput. Syst."}
953
954 MACRO {tods} {"ACM Trans. Database Syst."}
955
956 MACRO {tog} {"ACM Trans. Graphic."}
957
958 MACRO {toms} {"ACM Trans. Math. Software"}
959
960 MACRO {toois} {"ACM Trans. Office Inf. Syst."}
961
962 MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."}
963
964 MACRO {tcs} {"Theor. Comput. Sci."}
965
966 FUNCTION {bibinfo.check}
967 { swap$
968 duplicate$ missing$
969 {
970 pop$ pop$
971 ""
972 }
973 { duplicate$ empty$
974 {
975 swap$ pop$
976 }
977 { swap$
978 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
979 }
980 if$
981 }
982 if$
983 }
984 FUNCTION {bibinfo.warn}
985 { swap$
986 duplicate$ missing$
987 {
988 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
989 ""
990 }
991 { duplicate$ empty$
992 {
993 swap$ "empty " swap$ * " in " * cite$ * warning$
994 }
995 { swap$
996 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
997 }
998 if$
999 }
1000 if$
1001 }
1002 FUNCTION {format.eprint}
1003 { eprint duplicate$ empty$
1004 'skip$
1005 { "\eprint"
1006 archive empty$
1007 'skip$
1008 { "[" * archive * "]" * }
1009 if$
1010 "{" * swap$ * "}" *
1011 }
1012 if$
1013 }
1014 FUNCTION {format.url}
1015 { url empty$
1016 { "" }
1017 { "\urlprefix\url{" url * "}" * }
1018 if$
1019 }
1020
1021 STRINGS { bibinfo}
1022 INTEGERS { nameptr namesleft numnames }
1023
1024 FUNCTION {format.names}
1025 { 'bibinfo :=
1026 duplicate$ empty$ 'skip$ {
1027 's :=
1028 "" 't :=
1029 #1 'nameptr :=
1030 s num.names$ 'numnames :=
1031 numnames 'namesleft :=
1032 { namesleft #0 > }
1033 { s nameptr
1034 %<*apsrev>
1035 "{f.}" format.name$ duplicate$ empty$ 'skip$
1036 { tie.or.space.prefix bib.fname.font swap$ * }
1037 if$
1038 s nameptr
1039 "{vv~}{ll}" format.name$ bib.name.font *
1040 s nameptr
1041 "{jj}" format.name$ duplicate$ empty$ 'skip$
1042 { bib.fname.font ", " swap$ * }
1043 if$
1044 %</apsrev>
1045 %<*apsrmp>
1046 nameptr #1 >
1047 { "{f.}" format.name$ duplicate$ empty$ 'skip$
1048 { tie.or.space.prefix bib.fname.font swap$ * }
1049 if$
1050 s nameptr
1051 "{vv~}{ll}" format.name$ bib.name.font *
1052 s nameptr
1053 "{jj}" format.name$ duplicate$ empty$ 'skip$
1054 { bib.fname.font ", " swap$ * }
1055 if$
1056 }
1057 { "{vv~}{ll}" format.name$ bib.name.font
1058 s nameptr
1059 "{f.}{, jj}"
1060 format.name$ duplicate$ empty$ 'skip$
1061 { bib.fname.font ", " swap$ * }
1062 if$
1063 }
1064 if$
1065 %</apsrmp>
1066 *
1067 bibinfo bibinfo.check
1068 't :=
1069 nameptr #1 >
1070 {
1071 %<apsrev> nameptr #0
1072 %<apsrmp> nameptr #2
1073 #10 +
1074 #1 + =
1075 %<apsrev> numnames #0
1076 %<apsrmp> numnames #2
1077 #10 +
1078 > and
1079 { "others" 't :=
1080 #1 'namesleft := }
1081 'skip$
1082 if$
1083 namesleft #1 >
1084 { ", " * t * }
1085 {
1086 %<*apsrev>
1087 numnames #2 >
1088 { "," * }
1089 'skip$
1090 if$
1091 %</apsrev>
1092 %<*apsrmp>
1093 "," *
1094 %</apsrmp>
1095 s nameptr "{ll}" format.name$ duplicate$ "others" =
1096 { 't := }
1097 { pop$ }
1098 if$
1099 t "others" =
1100 {
1101 %<apsrev> " " * bbl.etal bib.name.font *
1102 %<apsrmp> " " * bbl.etal emphasize *
1103 }
1104 {
1105 bbl.and
1106 %<apsrev> bib.name.font
1107 space.word * t *
1108 }
1109 if$
1110 }
1111 if$
1112 }
1113 't
1114 if$
1115 nameptr #1 + 'nameptr :=
1116 namesleft #1 - 'namesleft :=
1117 }
1118 while$
1119 } if$
1120 }
1121 %<*apsrev>
1122 FUNCTION {format.names.ed}
1123 {
1124 format.names
1125 }
1126 %</apsrev>
1127 %<*apsrmp>
1128 FUNCTION {format.names.ed}
1129 {
1130 'bibinfo :=
1131 duplicate$ empty$ 'skip$ {
1132 's :=
1133 "" 't :=
1134 #1 'nameptr :=
1135 s num.names$ 'numnames :=
1136 numnames 'namesleft :=
1137 { namesleft #0 > }
1138 { s nameptr
1139 "{f.}" format.name$ duplicate$ empty$ 'skip$
1140 { tie.or.space.prefix bib.fname.font swap$ * }
1141 if$
1142 s nameptr
1143 "{vv~}{ll}" format.name$ bib.name.font *
1144 s nameptr
1145 "{jj}" format.name$ duplicate$ empty$ 'skip$
1146 { bib.fname.font ", " swap$ * }
1147 if$
1148 *
1149 bibinfo bibinfo.check
1150 't :=
1151 nameptr #1 >
1152 {
1153 namesleft #1 >
1154 { ", " * t * }
1155 {
1156 numnames #2 >
1157 { "," * }
1158 'skip$
1159 if$
1160 s nameptr "{ll}" format.name$ duplicate$ "others" =
1161 { 't := }
1162 { pop$ }
1163 if$
1164 t "others" =
1165 {
1166 " " * bbl.etal emphasize *
1167 }
1168 {
1169 bbl.and
1170 space.word * t *
1171 }
1172 if$
1173 }
1174 if$
1175 }
1176 't
1177 if$
1178 nameptr #1 + 'nameptr :=
1179 namesleft #1 - 'namesleft :=
1180 }
1181 while$
1182 } if$
1183 }
1184 %</apsrmp>
1185 FUNCTION {format.key}
1186 { empty$
1187 { key field.or.null }
1188 { "" }
1189 if$
1190 }
1191
1192 FUNCTION {format.authors}
1193 { author "author" format.names
1194 duplicate$ empty$ 'skip$
1195 { collaboration "collaboration" bibinfo.check
1196 duplicate$ empty$ 'skip$
1197 { " (" swap$ * ")" * }
1198 if$
1199 *
1200 }
1201 if$
1202 }
1203 FUNCTION {get.bbl.editor}
1204 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
1205
1206 FUNCTION {format.editors}
1207 { editor "editor" format.names duplicate$ empty$ 'skip$
1208 {
1209 %<*apsrev>
1210 "," *
1211 " " *
1212 get.bbl.editor
1213 %</apsrev>
1214 %<*apsrmp>
1215 " " *
1216 get.bbl.editor
1217 "(" swap$ * ")" *
1218 %</apsrmp>
1219 *
1220 }
1221 if$
1222 }
1223 FUNCTION {format.isbn}
1224 { isbn "isbn" bibinfo.check
1225 duplicate$ empty$ 'skip$
1226 {
1227 "ISBN " swap$ *
1228 }
1229 if$
1230 }
1231
1232 FUNCTION {format.issn}
1233 { issn "issn" bibinfo.check
1234 duplicate$ empty$ 'skip$
1235 {
1236 "ISSN " swap$ *
1237 }
1238 if$
1239 }
1240
1241 FUNCTION {format.note}
1242 {
1243 note empty$
1244 { "" }
1245 { note #1 #1 substring$
1246 duplicate$ "{" =
1247 'skip$
1248 { output.state mid.sentence =
1249 { "l" }
1250 { "u" }
1251 if$
1252 change.case$
1253 }
1254 if$
1255 note #2 global.max$ substring$ * "note" bibinfo.check
1256 }
1257 if$
1258 }
1259
1260 FUNCTION {format.title}
1261 { title
1262 duplicate$ empty$
1263 { skip$ }
1264 { "t" change.case$ }
1265 if$
1266 "title" bibinfo.check
1267 %<*apsrev>
1268 duplicate$ empty$ 'skip$
1269 {
1270 emphasize
1271 }
1272 if$
1273 %</apsrev>
1274 }
1275
1276 FUNCTION {format.full.names}
1277 {'s :=
1278 "" 't :=
1279 #1 'nameptr :=
1280 s num.names$ 'numnames :=
1281 numnames 'namesleft :=
1282 { namesleft #0 > }
1283 { s nameptr
1284 "{vv~}{ll}" format.name$
1285 't :=
1286 nameptr #1 >
1287 {
1288 %<apsrev> nameptr #0
1289 %<apsrmp> nameptr #2
1290 #10 +
1291 #1 + =
1292 %<apsrev> numnames #0
1293 %<apsrmp> numnames #2
1294 #10 +
1295 > and
1296 { "others" 't :=
1297 #1 'namesleft := }
1298 'skip$
1299 if$
1300 namesleft #1 >
1301 { ", " * t * }
1302 {
1303 s nameptr "{ll}" format.name$ duplicate$ "others" =
1304 { 't := }
1305 { pop$ }
1306 if$
1307 t "others" =
1308 {
1309 %<apsrev> " " * bbl.etal *
1310 cite.name.font
1311 %<apsrmp> " " * bbl.etal emphasize *
1312 }
1313 {
1314 numnames #2 >
1315 { "," * }
1316 'skip$
1317 if$
1318 bbl.and
1319 space.word * t *
1320 }
1321 if$
1322 }
1323 if$
1324 }
1325 't
1326 if$
1327 nameptr #1 + 'nameptr :=
1328 namesleft #1 - 'namesleft :=
1329 }
1330 while$
1331 t "others" =
1332 'skip$
1333 { cite.name.font }
1334 if$
1335 }
1336
1337 FUNCTION {author.editor.key.full}
1338 { author empty$
1339 { editor empty$
1340 { key empty$
1341 { cite$ #1 #3 substring$ }
1342 'key
1343 if$
1344 }
1345 { editor format.full.names }
1346 if$
1347 }
1348 { author format.full.names }
1349 if$
1350 }
1351
1352 FUNCTION {author.key.full}
1353 { author empty$
1354 { key empty$
1355 { cite$ #1 #3 substring$ }
1356 'key
1357 if$
1358 }
1359 { author format.full.names }
1360 if$
1361 }
1362
1363 FUNCTION {editor.key.full}
1364 { editor empty$
1365 { key empty$
1366 { cite$ #1 #3 substring$ }
1367 'key
1368 if$
1369 }
1370 { editor format.full.names }
1371 if$
1372 }
1373
1374 FUNCTION {make.full.names}
1375 { type$ "book" =
1376 type$ "inbook" =
1377 or
1378 'author.editor.key.full
1379 { type$ "proceedings" =
1380 'editor.key.full
1381 'author.key.full
1382 if$
1383 }
1384 if$
1385 }
1386
1387 FUNCTION {output.bibitem}
1388 { newline$
1389 "\bibitem[{" write$
1390 label write$
1391 ")" make.full.names duplicate$ short.list =
1392 { pop$ }
1393 { * }
1394 if$
1395 "}]{" * write$
1396 cite$ write$
1397 "}" write$
1398 newline$
1399 ""
1400 before.all 'output.state :=
1401 }
1402
1403 FUNCTION {n.dashify}
1404 {
1405 't :=
1406 ""
1407 { t empty$ not }
1408 { t #1 #1 substring$ "-" =
1409 { t #1 #2 substring$ "--" = not
1410 { "--" *
1411 t #2 global.max$ substring$ 't :=
1412 }
1413 { { t #1 #1 substring$ "-" = }
1414 { "-" *
1415 t #2 global.max$ substring$ 't :=
1416 }
1417 while$
1418 }
1419 if$
1420 }
1421 { t #1 #1 substring$ *
1422 t #2 global.max$ substring$ 't :=
1423 }
1424 if$
1425 }
1426 while$
1427 }
1428
1429 FUNCTION {word.in}
1430 { bbl.in
1431 " " * }
1432
1433 FUNCTION {format.date}
1434 { year "year" bibinfo.check duplicate$ empty$
1435 {
1436 "empty year in " cite$ * "; set to ????" * warning$
1437 pop$ "????"
1438 }
1439 'skip$
1440 if$
1441 extra.label *
1442 before.all 'output.state :=
1443 %<apsrev> " (" swap$ * ")" *
1444 %<apsrmp> ", " swap$ *
1445 }
1446 FUNCTION {format.date.misc}
1447 {
1448 %<apsrev> year empty$ 'skip$ {
1449 format.date "year" output.check
1450 %<apsrev> } if$
1451 }
1452 FUNCTION {format.btitle}
1453 { title "title" bibinfo.check
1454 duplicate$ empty$ 'skip$
1455 {
1456 emphasize
1457 }
1458 if$
1459 }
1460 FUNCTION {either.or.check}
1461 { empty$
1462 'pop$
1463 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
1464 if$
1465 }
1466 FUNCTION {format.bvolume}
1467 { volume empty$
1468 { "" }
1469 { bbl.volume volume tie.or.space.prefix
1470 "volume" bibinfo.check * *
1471 series "series" bibinfo.check
1472 duplicate$ empty$ 'pop$
1473 { swap$ bbl.of space.word * swap$
1474 emphasize * }
1475 if$
1476 "volume and number" number either.or.check
1477 }
1478 if$
1479 }
1480 FUNCTION {format.number.series}
1481 { volume empty$
1482 { number empty$
1483 { series field.or.null }
1484 { series empty$
1485 { number "number" bibinfo.check }
1486 { output.state mid.sentence =
1487 { bbl.number }
1488 { bbl.number capitalize }
1489 if$
1490 number tie.or.space.prefix "number" bibinfo.check * *
1491 bbl.in space.word *
1492 series "series" bibinfo.check *
1493 }
1494 if$
1495 }
1496 if$
1497 }
1498 { "" }
1499 if$
1500 }
1501 %<*apsrev>
1502 FUNCTION {is.num}
1503 { chr.to.int$
1504 duplicate$ "0" chr.to.int$ < not
1505 swap$ "9" chr.to.int$ > not and
1506 }
1507
1508 FUNCTION {extract.num}
1509 { duplicate$ 't :=
1510 "" 's :=
1511 { t empty$ not }
1512 { t #1 #1 substring$
1513 t #2 global.max$ substring$ 't :=
1514 duplicate$ is.num
1515 { s swap$ * 's := }
1516 { pop$ "" 't := }
1517 if$
1518 }
1519 while$
1520 s empty$
1521 'skip$
1522 { pop$ s }
1523 if$
1524 }
1525
1526 FUNCTION {convert.edition}
1527 { extract.num "l" change.case$ 's :=
1528 s "first" = s "1" = or
1529 { bbl.first 't := }
1530 { s "second" = s "2" = or
1531 { bbl.second 't := }
1532 { s "third" = s "3" = or
1533 { bbl.third 't := }
1534 { s "fourth" = s "4" = or
1535 { bbl.fourth 't := }
1536 { s "fifth" = s "5" = or
1537 { bbl.fifth 't := }
1538 { s #1 #1 substring$ is.num
1539 { s eng.ord 't := }
1540 { edition 't := }
1541 if$
1542 }
1543 if$
1544 }
1545 if$
1546 }
1547 if$
1548 }
1549 if$
1550 }
1551 if$
1552 t
1553 }
1554 %</apsrev>
1555
1556 FUNCTION {format.edition}
1557 { edition duplicate$ empty$ 'skip$
1558 {
1559 %<apsrev> convert.edition
1560 output.state mid.sentence =
1561 { "l" }
1562 { "t" }
1563 if$ change.case$
1564 "edition" bibinfo.check
1565 " " * bbl.edition *
1566 }
1567 if$
1568 }
1569 INTEGERS { multiresult }
1570 FUNCTION {multi.page.check}
1571 { 't :=
1572 #0 'multiresult :=
1573 { multiresult not
1574 t empty$ not
1575 and
1576 }
1577 { t #1 #1 substring$
1578 duplicate$ "-" =
1579 swap$ duplicate$ "," =
1580 swap$ "+" =
1581 or or
1582 { #1 'multiresult := }
1583 { t #2 global.max$ substring$ 't := }
1584 if$
1585 }
1586 while$
1587 multiresult
1588 }
1589 FUNCTION {format.pages}
1590 { pages duplicate$ empty$ 'skip$
1591 { duplicate$ multi.page.check
1592 {
1593 bbl.pages swap$
1594 n.dashify
1595 }
1596 {
1597 bbl.page swap$
1598 }
1599 if$
1600 tie.or.space.prefix
1601 "pages" bibinfo.check
1602 * *
1603 }
1604 if$
1605 }
1606 FUNCTION {first.page}
1607 { 't :=
1608 ""
1609 { t empty$ not t #1 #1 substring$ "-" = not and }
1610 { t #1 #1 substring$ *
1611 t #2 global.max$ substring$ 't :=
1612 }
1613 while$
1614 }
1615
1616 FUNCTION {format.journal.pages}
1617 { pages duplicate$ empty$ 'pop$
1618 { swap$ duplicate$ empty$
1619 { pop$ pop$ format.pages }
1620 {
1621 ", " *
1622 swap$
1623 first.page
1624 "pages" bibinfo.check
1625 *
1626 }
1627 if$
1628 }
1629 if$
1630 }
1631 FUNCTION {format.journal.eid}
1632 { eid "eid" bibinfo.check
1633 duplicate$ empty$ 'skip$
1634 { swap$ duplicate$ empty$ 'skip$
1635 {
1636 ", " *
1637 }
1638 if$
1639 swap$
1640 numpages empty$ 'skip$
1641 { bbl.eidpp numpages tie.or.space.prefix
1642 "numpages" bibinfo.check * *
1643 " (" swap$ * ")" * *
1644 }
1645 if$
1646 }
1647 if$ *
1648 }
1649 FUNCTION {format.vol.num.pages}
1650 { volume field.or.null
1651 duplicate$ empty$ 'skip$
1652 {
1653 "volume" bibinfo.check
1654 }
1655 if$
1656 bolden
1657 %<*apsrev>
1658 eid empty$
1659 { format.journal.pages }
1660 { format.journal.eid }
1661 if$
1662 %</apsrev>
1663 %<*apsrmp>
1664 number "number" bibinfo.check duplicate$ empty$ 'skip$
1665 {
1666 swap$ duplicate$ empty$
1667 { "there's a number but no volume in " cite$ * warning$ }
1668 'skip$
1669 if$
1670 swap$
1671 "(" swap$ * ")" *
1672 }
1673 if$ *
1674 %</apsrmp>
1675 }
1676
1677 FUNCTION {format.chapter.pages}
1678 { chapter empty$
1679 %<apsrev> 'format.pages
1680 %<apsrmp> { "" }
1681 { type empty$
1682 { bbl.chapter }
1683 { type "l" change.case$
1684 "type" bibinfo.check
1685 }
1686 if$
1687 chapter tie.or.space.prefix
1688 "chapter" bibinfo.check
1689 * *
1690 %<*apsrev>
1691 pages empty$
1692 'skip$
1693 { ", " * format.pages * }
1694 if$
1695 %</apsrev>
1696 }
1697 if$
1698 }
1699
1700 FUNCTION {format.booktitle}
1701 {
1702 booktitle "booktitle" bibinfo.check
1703 emphasize
1704 }
1705 FUNCTION {format.in.ed.booktitle}
1706 { format.booktitle duplicate$ empty$ 'skip$
1707 {
1708 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1709 {
1710 bbl.edby
1711 " " * swap$ *
1712 swap$
1713 "," *
1714 " " * swap$
1715 * }
1716 if$
1717 word.in swap$ *
1718 }
1719 if$
1720 }
1721 FUNCTION {format.thesis.type}
1722 { type duplicate$ empty$
1723 'pop$
1724 { swap$ pop$
1725 "t" change.case$ "type" bibinfo.check
1726 }
1727 if$
1728 }
1729 FUNCTION {format.tr.number}
1730 { number "number" bibinfo.check
1731 type duplicate$ empty$
1732 { pop$ bbl.techrep }
1733 'skip$
1734 if$
1735 "type" bibinfo.check
1736 swap$ duplicate$ empty$
1737 { pop$ "t" change.case$ }
1738 { tie.or.space.prefix * * }
1739 if$
1740 }
1741 FUNCTION {format.article.crossref}
1742 {
1743 word.in
1744 " \cite{" * crossref * "}" *
1745 }
1746 FUNCTION {format.book.crossref}
1747 { volume duplicate$ empty$
1748 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1749 pop$ word.in
1750 }
1751 { bbl.volume
1752 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1753 }
1754 if$
1755 " \cite{" * crossref * "}" *
1756 }
1757 FUNCTION {format.incoll.inproc.crossref}
1758 {
1759 word.in
1760 " \cite{" * crossref * "}" *
1761 }
1762 FUNCTION {format.org.or.pub}
1763 { 't :=
1764 ""
1765 %<*apsrmp>
1766 address empty$ t empty$ and
1767 'skip$
1768 {
1769 %</apsrmp>
1770 add.blank "(" *
1771 t empty$
1772 { address "address" bibinfo.check *
1773 }
1774 { t *
1775 address empty$
1776 'skip$
1777 { ", " * address "address" bibinfo.check * }
1778 if$
1779 }
1780 if$
1781 %<*apsrev>
1782 year duplicate$ empty$
1783 { "empty year in " cite$ * "; set to ????" * warning$
1784 pop$ "????" }
1785 { "year" bibinfo.check extra.label * }
1786 if$
1787 t empty$ address empty$ and
1788 { * }
1789 { ", " swap$ * * }
1790 if$
1791 %</apsrev>
1792 ")" *
1793 %<*apsrmp>
1794 }
1795 if$
1796 %</apsrmp>
1797 }
1798 FUNCTION {format.publisher.address}
1799 { publisher "publisher" bibinfo.warn format.org.or.pub
1800 }
1801
1802 FUNCTION {format.organization.address}
1803 { organization "organization" bibinfo.check format.org.or.pub
1804 }
1805
1806 FUNCTION {article}
1807 { output.bibitem
1808 format.authors "author" output.check
1809 author format.key output
1810 %<*apsrmp>
1811 format.date "year" output.check
1812 date.block
1813 %</apsrmp>
1814 crossref missing$
1815 {
1816 ""
1817 journal
1818 duplicate$ empty$
1819 { pop$ pop$ } {
1820 "journal" bibinfo.check
1821 * "journal" output.check
1822 add.blank
1823 } if$
1824 format.vol.num.pages output
1825 %<apsrev> format.date "year" output.check
1826 }
1827 { format.article.crossref output.nonnull
1828 %<apsrev> format.pages output
1829 }
1830 if$
1831 %<*apsrmp>
1832 eid empty$
1833 { format.journal.pages }
1834 { format.journal.eid }
1835 if$
1836 %</apsrmp>
1837 format.issn output
1838 format.note output
1839 %<apsrmp> journal empty$ volume empty$ or {
1840 format.eprint output
1841 %<apsrmp> } {} if$
1842 format.url output
1843 fin.entry
1844 }
1845 FUNCTION {book}
1846 { output.bibitem
1847 author empty$
1848 { format.editors "author and editor" output.check
1849 editor format.key output
1850 }
1851 { format.authors output.nonnull
1852 crossref missing$
1853 { "author and editor" editor either.or.check }
1854 'skip$
1855 if$
1856 }
1857 if$
1858 %<*apsrmp>
1859 format.date "year" output.check
1860 date.block
1861 %</apsrmp>
1862 format.btitle "title" output.check
1863 crossref missing$
1864 { format.bvolume output
1865 format.number.series output
1866 format.publisher.address output
1867 }
1868 {
1869 format.book.crossref output.nonnull
1870 %<apsrev> format.date "year" output.check
1871 }
1872 if$
1873 format.edition output
1874 format.isbn output
1875 format.note output
1876 format.eprint output
1877 format.url output
1878 fin.entry
1879 }
1880 FUNCTION {booklet}
1881 { output.bibitem
1882 format.authors output
1883 author format.key output
1884 %<*apsrmp>
1885 format.date "year" output.check
1886 date.block
1887 %</apsrmp>
1888 format.title "title" output.check
1889 howpublished "howpublished" bibinfo.check output
1890 address "address" bibinfo.check output
1891 %<apsrev> format.date "year" output.check
1892 format.isbn output
1893 format.note output
1894 format.eprint output
1895 format.url output
1896 fin.entry
1897 }
1898
1899 FUNCTION {inbook}
1900 { output.bibitem
1901 author empty$
1902 { format.editors "author and editor" output.check
1903 editor format.key output
1904 }
1905 { format.authors output.nonnull
1906 crossref missing$
1907 { "author and editor" editor either.or.check }
1908 'skip$
1909 if$
1910 }
1911 if$
1912 %<*apsrmp>
1913 format.date "year" output.check
1914 date.block
1915 %</apsrmp>
1916 format.btitle "title" output.check
1917 crossref missing$
1918 {
1919 format.publisher.address output
1920 format.bvolume output
1921 format.chapter.pages "chapter and pages" output.check
1922 format.number.series output
1923 }
1924 {
1925 format.chapter.pages "chapter and pages" output.check
1926 format.book.crossref output.nonnull
1927 %<apsrev> format.date "year" output.check
1928 }
1929 if$
1930 format.edition output
1931 crossref missing$
1932 { format.isbn output }
1933 'skip$
1934 if$
1935 %<apsrmp> format.pages "pages" output.check
1936 format.note output
1937 format.eprint output
1938 format.url output
1939 fin.entry
1940 }
1941
1942 FUNCTION {incollection}
1943 { output.bibitem
1944 format.authors "author" output.check
1945 author format.key output
1946 %<*apsrmp>
1947 format.date "year" output.check
1948 date.block
1949 %</apsrmp>
1950 crossref missing$
1951 { format.in.ed.booktitle "booktitle" output.check
1952 format.publisher.address output
1953 format.bvolume output
1954 format.number.series output
1955 format.chapter.pages output
1956 format.edition output
1957 format.isbn output
1958 }
1959 { format.incoll.inproc.crossref output.nonnull
1960 format.chapter.pages output
1961 }
1962 if$
1963 %<apsrmp> format.pages "pages" output.check
1964 format.note output
1965 format.eprint output
1966 format.url output
1967 fin.entry
1968 }
1969 FUNCTION {inproceedings}
1970 { output.bibitem
1971 format.authors "author" output.check
1972 author format.key output
1973 %<*apsrmp>
1974 format.date "year" output.check
1975 date.block
1976 %</apsrmp>
1977 crossref missing$
1978 { format.in.ed.booktitle "booktitle" output.check
1979 publisher empty$
1980 { format.organization.address output }
1981 { organization "organization" bibinfo.check output
1982 format.publisher.address output
1983 }
1984 if$
1985 format.bvolume output
1986 format.number.series output
1987 format.pages output
1988 format.isbn output
1989 format.issn output
1990 }
1991 { format.incoll.inproc.crossref output.nonnull
1992 format.pages output
1993 }
1994 if$
1995 format.note output
1996 format.eprint output
1997 format.url output
1998 fin.entry
1999 }
2000 FUNCTION {conference} { inproceedings }
2001 FUNCTION {manual}
2002 { output.bibitem
2003 format.authors output
2004 author format.key output
2005 %<*apsrmp>
2006 format.date "year" output.check
2007 date.block
2008 %</apsrmp>
2009 format.btitle "title" output.check
2010 organization "organization" bibinfo.check output
2011 address "address" bibinfo.check output
2012 format.edition output
2013 %<apsrev> format.date "year" output.check
2014 format.note output
2015 format.eprint output
2016 format.url output
2017 fin.entry
2018 }
2019
2020 FUNCTION {mastersthesis}
2021 { output.bibitem
2022 format.authors "author" output.check
2023 author format.key output
2024 %<*apsrmp>
2025 format.date "year" output.check
2026 date.block
2027 format.btitle
2028 "title" output.check
2029 %</apsrmp>
2030 bbl.mthesis format.thesis.type output.nonnull
2031 school "school" bibinfo.warn output
2032 address "address" bibinfo.check output
2033 %<apsrev> format.date "year" output.check
2034 format.note output
2035 format.eprint output
2036 format.url output
2037 fin.entry
2038 }
2039
2040 FUNCTION {misc}
2041 { output.bibitem
2042 format.authors output
2043 author format.key output
2044 %<*apsrmp>
2045 format.date.misc
2046 date.block
2047 %</apsrmp>
2048 format.title output
2049 howpublished "howpublished" bibinfo.check output
2050 %<apsrev> format.date.misc
2051 format.note output
2052 format.eprint output
2053 format.url output
2054 fin.entry
2055 }
2056 FUNCTION {phdthesis}
2057 { output.bibitem
2058 format.authors "author" output.check
2059 author format.key output
2060 %<*apsrmp>
2061 format.date "year" output.check
2062 date.block
2063 format.btitle
2064 "title" output.check
2065 %</apsrmp>
2066 bbl.phdthesis format.thesis.type output.nonnull
2067 school "school" bibinfo.warn output
2068 address "address" bibinfo.check output
2069 %<apsrev> format.date "year" output.check
2070 format.note output
2071 format.eprint output
2072 format.url output
2073 fin.entry
2074 }
2075
2076 FUNCTION {proceedings}
2077 { output.bibitem
2078 format.editors output
2079 editor format.key output
2080 %<*apsrmp>
2081 format.date "year" output.check
2082 date.block
2083 %</apsrmp>
2084 format.btitle "title" output.check
2085 format.bvolume output
2086 format.number.series output
2087 publisher empty$
2088 { format.organization.address output }
2089 { organization "organization" bibinfo.check output
2090 format.publisher.address output
2091 }
2092 if$
2093 format.isbn output
2094 format.issn output
2095 format.note output
2096 format.eprint output
2097 format.url output
2098 fin.entry
2099 }
2100
2101 FUNCTION {techreport}
2102 { output.bibitem
2103 format.authors "author" output.check
2104 author format.key output
2105 %<*apsrmp>
2106 format.date "year" output.check
2107 date.block
2108 format.btitle
2109 "title" output.check
2110 %</apsrmp>
2111 format.tr.number output.nonnull
2112 institution "institution" bibinfo.warn output
2113 address "address" bibinfo.check output
2114 %<apsrev> format.date "year" output.check
2115 format.note output
2116 format.eprint output
2117 format.url output
2118 fin.entry
2119 }
2120
2121 FUNCTION {unpublished}
2122 { output.bibitem
2123 format.authors "author" output.check
2124 author format.key output
2125 %<*apsrmp>
2126 format.date "year" output.check
2127 date.block
2128 format.title "title" output.check
2129 %</apsrmp>
2130 %<apsrev> format.date.misc
2131 format.note "note" output.check
2132 format.eprint output
2133 format.url output
2134 fin.entry
2135 }
2136
2137 FUNCTION {default.type} { misc }
2138 READ
2139 FUNCTION {sortify}
2140 { purify$
2141 "l" change.case$
2142 }
2143 INTEGERS { len }
2144 FUNCTION {chop.word}
2145 { 's :=
2146 'len :=
2147 s #1 len substring$ =
2148 { s len #1 + global.max$ substring$ }
2149 's
2150 if$
2151 }
2152 FUNCTION {format.lab.names}
2153 { 's :=
2154 "" 't :=
2155 s #1 "{vv~}{ll}" format.name$
2156 s num.names$ duplicate$
2157 #2 >
2158 { pop$
2159 %<apsrev> " " * bbl.etal *
2160 cite.name.font
2161 %<apsrmp> " " * bbl.etal emphasize *
2162 "others" 't :=
2163 }
2164 { #2 <
2165 'skip$
2166 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
2167 {
2168 %<apsrev> " " * bbl.etal *
2169 %<apsrev> cite.name.font
2170 %<apsrmp> " " * bbl.etal emphasize *
2171 "others" 't :=
2172 }
2173 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
2174 * }
2175 if$
2176 }
2177 if$
2178 }
2179 if$
2180 t "others" =
2181 'skip$
2182 { cite.name.font }
2183 if$
2184 }
2185
2186 FUNCTION {author.key.label}
2187 { author empty$
2188 { key empty$
2189 { cite$ #1 #3 substring$ }
2190 'key
2191 if$
2192 }
2193 { author format.lab.names }
2194 if$
2195 }
2196
2197 FUNCTION {author.editor.key.label}
2198 { author empty$
2199 { editor empty$
2200 { key empty$
2201 { cite$ #1 #3 substring$ }
2202 'key
2203 if$
2204 }
2205 { editor format.lab.names }
2206 if$
2207 }
2208 { author format.lab.names }
2209 if$
2210 }
2211
2212 FUNCTION {editor.key.label}
2213 { editor empty$
2214 { key empty$
2215 { cite$ #1 #3 substring$ }
2216 'key
2217 if$
2218 }
2219 { editor format.lab.names }
2220 if$
2221 }
2222
2223 FUNCTION {calc.short.authors}
2224 { type$ "book" =
2225 type$ "inbook" =
2226 or
2227 'author.editor.key.label
2228 { type$ "proceedings" =
2229 'editor.key.label
2230 'author.key.label
2231 if$
2232 }
2233 if$
2234 'short.list :=
2235 }
2236
2237 FUNCTION {calc.label}
2238 { calc.short.authors
2239 short.list
2240 "("
2241 *
2242 year duplicate$ empty$
2243 short.list key field.or.null = or
2244 { pop$ "" }
2245 'skip$
2246 if$
2247 *
2248 'label :=
2249 }
2250
2251 FUNCTION {sort.format.names}
2252 { 's :=
2253 #1 'nameptr :=
2254 ""
2255 s num.names$ 'numnames :=
2256 numnames 'namesleft :=
2257 { namesleft #0 > }
2258 { s nameptr
2259 %<apsrev> "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}"
2260 %<apsrmp> "{ll{ }}{ f{ }}{ jj{ }}"
2261 format.name$ 't :=
2262 nameptr #1 >
2263 {
2264 %<apsrev> nameptr #0
2265 %<apsrmp> nameptr #2
2266 #10 +
2267 #1 + =
2268 %<apsrev> numnames #0
2269 %<apsrmp> numnames #2
2270 #10 +
2271 > and
2272 { "others" 't :=
2273 #1 'namesleft := }
2274 'skip$
2275 if$
2276 " " *
2277 namesleft #1 = t "others" = and
2278 { "zzzzz" * }
2279 { t sortify * }
2280 if$
2281 }
2282 { t sortify * }
2283 if$
2284 nameptr #1 + 'nameptr :=
2285 namesleft #1 - 'namesleft :=
2286 }
2287 while$
2288 }
2289
2290 FUNCTION {sort.format.title}
2291 { 't :=
2292 "A " #2
2293 "An " #3
2294 "The " #4 t chop.word
2295 chop.word
2296 chop.word
2297 sortify
2298 #1 global.max$ substring$
2299 }
2300 FUNCTION {author.sort}
2301 { author empty$
2302 { key empty$
2303 { "to sort, need author or key in " cite$ * warning$
2304 ""
2305 }
2306 { key sortify }
2307 if$
2308 }
2309 { author sort.format.names }
2310 if$
2311 }
2312 FUNCTION {author.editor.sort}
2313 { author empty$
2314 { editor empty$
2315 { key empty$
2316 { "to sort, need author, editor, or key in " cite$ * warning$
2317 ""
2318 }
2319 { key sortify }
2320 if$
2321 }
2322 { editor sort.format.names }
2323 if$
2324 }
2325 { author sort.format.names }
2326 if$
2327 }
2328 FUNCTION {editor.sort}
2329 { editor empty$
2330 { key empty$
2331 { "to sort, need editor or key in " cite$ * warning$
2332 ""
2333 }
2334 { key sortify }
2335 if$
2336 }
2337 { editor sort.format.names }
2338 if$
2339 }
2340 %<*apsrev>
2341 INTEGERS { seq.num }
2342 FUNCTION {init.seq}
2343 { #0 'seq.num :=}
2344 EXECUTE {init.seq}
2345 FUNCTION {int.to.fix}
2346 { "000000000" swap$ int.to.str$ *
2347 #-1 #10 substring$
2348 }
2349 %</apsrev>
2350 FUNCTION {presort}
2351 { calc.label
2352 label sortify
2353 " "
2354 *
2355 %<*apsrev>
2356 seq.num #1 + 'seq.num :=
2357 seq.num int.to.fix
2358 %</apsrev>
2359 %<*apsrmp>
2360 type$ "book" =
2361 type$ "inbook" =
2362 or
2363 'author.editor.sort
2364 { type$ "proceedings" =
2365 'editor.sort
2366 'author.sort
2367 if$
2368 }
2369 if$
2370 #1 entry.max$ substring$
2371 %</apsrmp>
2372 'sort.label :=
2373 sort.label
2374 *
2375 " "
2376 *
2377 title field.or.null
2378 sort.format.title
2379 *
2380 #1 entry.max$ substring$
2381 'sort.key$ :=
2382 }
2383
2384 ITERATE {presort}
2385 SORT
2386 STRINGS { last.label next.extra }
2387 INTEGERS { last.extra.num number.label }
2388 FUNCTION {initialize.extra.label.stuff}
2389 { #0 int.to.chr$ 'last.label :=
2390 "" 'next.extra :=
2391 #0 'last.extra.num :=
2392 #0 'number.label :=
2393 }
2394 FUNCTION {forward.pass}
2395 { last.label label =
2396 { last.extra.num #1 + 'last.extra.num :=
2397 last.extra.num int.to.chr$ 'extra.label :=
2398 }
2399 { "a" chr.to.int$ 'last.extra.num :=
2400 "" 'extra.label :=
2401 label 'last.label :=
2402 }
2403 if$
2404 number.label #1 + 'number.label :=
2405 }
2406 FUNCTION {reverse.pass}
2407 { next.extra "b" =
2408 { "a" 'extra.label := }
2409 'skip$
2410 if$
2411 extra.label 'next.extra :=
2412 extra.label
2413 duplicate$ empty$
2414 'skip$
2415 { "{\natexlab{" swap$ * "}}" * }
2416 if$
2417 'extra.label :=
2418 label extra.label * 'label :=
2419 }
2420 EXECUTE {initialize.extra.label.stuff}
2421 ITERATE {forward.pass}
2422 REVERSE {reverse.pass}
2423 FUNCTION {bib.sort.order}
2424 { sort.label
2425 " "
2426 *
2427 year field.or.null sortify
2428 *
2429 " "
2430 *
2431 title field.or.null
2432 sort.format.title
2433 *
2434 #1 entry.max$ substring$
2435 'sort.key$ :=
2436 }
2437 ITERATE {bib.sort.order}
2438 SORT
2439 FUNCTION {begin.bib}
2440 { preamble$ empty$
2441 'skip$
2442 { preamble$ write$ newline$ }
2443 if$
2444 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
2445 write$ newline$
2446 "\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi"
2447 write$ newline$
2448 "\expandafter\ifx\csname bibnamefont\endcsname\relax"
2449 write$ newline$
2450 " \def\bibnamefont#1{#1}\fi"
2451 write$ newline$
2452 "\expandafter\ifx\csname bibfnamefont\endcsname\relax"
2453 write$ newline$
2454 " \def\bibfnamefont#1{#1}\fi"
2455 write$ newline$
2456 "\expandafter\ifx\csname citenamefont\endcsname\relax"
2457 write$ newline$
2458 " \def\citenamefont#1{#1}\fi"
2459 write$ newline$
2460 "\expandafter\ifx\csname url\endcsname\relax"
2461 write$ newline$
2462 " \def\url#1{\texttt{#1}}\fi"
2463 write$ newline$
2464 "\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{URL }\fi"
2465 write$ newline$
2466 "\providecommand{\bibinfo}[2]{#2}"
2467 write$ newline$
2468 "\providecommand{\eprint}[2][]{\url{#2}}"
2469 write$ newline$
2470 }
2471 EXECUTE {begin.bib}
2472 EXECUTE {init.state.consts}
2473 ITERATE {call.type$}
2474 FUNCTION {end.bib}
2475 { newline$
2476 "\end{thebibliography}" write$ newline$
2477 }
2478 EXECUTE {end.bib}
2479 % \end{macrocode}
2480 %
2481 % \begin{macrocode}
2482 %</apsrev|apsrmp>
2483 % \end{macrocode}
2484 %
2485 % \endinput
2486 %
2487 % \Finale