~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to doc/doc_src/detectors/tracker/01-Current/99-Styles/revtex4-1/revtex4-1-tds/source/latex/revtex/aip.dtx

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
% \iffalse meta-comment
2
 
% aip.dtx: package to change page grid, MVL.
3
 
% Copyright (c) 2008 American Institute of Physics
4
 
% mailto:tex@aip.org
5
 
%
6
 
% Disclaimer
7
 
%   This file is distributed WITHOUT ANY WARRANTY;
8
 
%   without even the implied warranty of
9
 
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 
% License
11
 
%   You may distribute this file under the conditions of the 
12
 
%   LaTeX Project Public License 1.3 or later 
13
 
%   (http://www.latex-project.org/lppl.txt).
14
 
% ReadMe
15
 
%   For the documentation and more detailed instructions for
16
 
%   installation, typeset this document with \LaTeX.
17
 
% Maintenance Status
18
 
%   This work has the LPPL maintenance status "maintained";
19
 
%   Current Maintainer of this work is Arthur Ogawa.
20
 
%
21
 
% This work consists of the main source file aip.dtx
22
 
% and the derived files
23
 
%    aip.rtx, aip.pdf, aip.ins, aip.drv.
24
 
% Distribution:
25
 
%    CTAN:macros/latex/contrib/aip/
26
 
%
27
 
% Unpacking:
28
 
%    tex aip.dtx
29
 
%
30
 
% Documentation:
31
 
%    latex aip.dtx; ...
32
 
%
33
 
%    Programm calls to get the documentation (example):
34
 
%       pdflatex aip.dtx
35
 
%       makeindex -s gind.ist aip
36
 
%       makeindex -s gglo.ist -o aip.gls aip.glo
37
 
%       pdflatex aip.dtx
38
 
%       makeindex -s gind.ist aip
39
 
%       pdflatex aip.dtx
40
 
%
41
 
% Installation:
42
 
%    TDS:bibtex/bst/aip/
43
 
%    TDS:doc/latex/aip/
44
 
%    TDS:source/latex/aip/
45
 
%    TDS:tex/latex/aip/
46
 
%
47
 
% Thanks, Heiko!
48
 
%    This method of letting a single .dtx file serve as both
49
 
%    documentation (via latex) and installer (via tex) follows
50
 
%    the example of Heiko Oberdiek. Thanks!
51
 
%<*ignore>
52
 
\begingroup
53
 
  \def\x{LaTeX2e}%
54
 
\expandafter\endgroup
55
 
\ifcase
56
 
 0\expandafter\ifx\csname processbatchFile\endcsname\relax\else1\fi\ifx\fmtname\x\else 1\fi
57
 
 \relax
58
 
\else
59
 
 \csname fi\endcsname
60
 
%</ignore>
61
 
%<*install>
62
 
%% This file will generate documentation and runtime files
63
 
%% from aip.dtx when run through LaTeX or TeX.
64
 
%% This file requires docstrip version 2.4 or higher available from
65
 
%% ftp://ctan.tug.org/tex-archive/macros/latex/unpacked/docstrip.tex
66
 
\input docstrip
67
 
\preamble
68
 
 
69
 
This is a generated file;
70
 
altering it directly is inadvisable;
71
 
instead, modify the original source file.
72
 
See the URL in the file README.
73
 
 
74
 
Copyright (c) 2008 American Institute of Physics.
75
 
mailto:tex@aip.org
76
 
 
77
 
Maintained by Arthur Ogawa (mailto:arthur_ogawa at sbcglobal.net)
78
 
under contract to American Institute of Physics.
79
 
 
80
 
License
81
 
   You may distribute this file under the conditions of the 
82
 
   LaTeX Project Public License 1.3 or later 
83
 
   (http://www.latex-project.org/lppl.txt).
84
 
   
85
 
   This file is distributed WITHOUT ANY WARRANTY; 
86
 
   without even the implied warranty of MERCHANTABILITY 
87
 
   or FITNESS FOR A PARTICULAR PURPOSE.
88
 
 
89
 
\endpreamble
90
 
\askforoverwritefalse
91
 
\keepsilent
92
 
 \generate{%
93
 
  %{ignore}
94
 
% \file{aip.ins}{\from{aip.dtx}{install}}%
95
 
% \file{aip.drv}{\from{aip.dtx}{driver}}%
96
 
% \usedir{tex/latex/aip}%
97
 
  \file{aip4-1.rtx}{\from{aip.dtx}{package}}%
98
 
 }%
99
 
\ifToplevel{
100
 
\Msg{***********************************************************}
101
 
\Msg{*}
102
 
\Msg{* To finish the installation, please move}
103
 
\Msg{*    aip.rtx}
104
 
\Msg{* into a directory searched by TeX;}
105
 
\Msg{* in a TDS-compliant installation:}
106
 
\Msg{* texmf/tex/macros/latex/aip/.}
107
 
\Msg{*}
108
 
\Msg{* To produce the documentation,
109
 
       run aip.dtx through LaTeX.}
110
 
\Msg{*}
111
 
\Msg{* Happy TeXing}
112
 
\Msg{***********************************************************}
113
 
}
114
 
\endbatchfile
115
 
%</install>
116
 
%<*ignore>
117
 
\fi
118
 
%</ignore>
119
 
% \fi
120
 
%
121
 
% \GetFileInfo{aip.dtx}\CheckSum{1163}
122
 
%
123
 
% \iffalse ltxdoc klootch
124
 
%<*package>
125
 
%%%  @LaTeX-file{
126
 
%%%     filename        = "aip.dtx",
127
 
%%%     version         = "4.1r",
128
 
%%%     date            = "2010/07/25",
129
 
%%%     time            = "20:32:00 GMT-8",
130
 
%%%     checksum        = "1163",
131
 
%%%     author          = "Arthur Ogawa (mailto:arthur_ogawa at sbcglobal.net),
132
 
%%%                        commissioned by the American Institute of Physics.
133
 
%%%                        ",
134
 
%%%     copyright       = "Copyright (C) 2008 American Institute of Physics,
135
 
%%%                        distributed under the terms of the 
136
 
%%%                        LaTeX Project Public License, see
137
 
%%%                        ftp://ctan.tug.org/macros/latex/base/lppl.txt
138
 
%%%                        ",
139
 
%%%     address         = "AIP Journal Program
140
 
%%%                        American Institute of Physics, 
141
 
%%%                        Suite 1NO1, 2 Huntington Quadrangle, 
142
 
%%%                        Melville, NY 11747 USA",
143
 
%%%     telephone       = "",
144
 
%%%     FAX             = "",
145
 
%%%     email           = "mailto colon tex at aip.org",
146
 
%%%     codetable       = "ISO/ASCII",
147
 
%%%     keywords        = "latex, page grid, main vertical list",
148
 
%%%     supported       = "yes",
149
 
%%%     abstract        = "aip substyle for REVTeX",
150
 
%%%     docstring       = "The checksum field above generated by ltxdoc",
151
 
%%%  }
152
 
%</package>
153
 
% \fi
154
 
%
155
 
% \iffalse ltxdoc klootch
156
 
% The following references the \file{README} file,
157
 
% which contains basic information about this package.
158
 
% The contents of this file are generated when
159
 
% you typeset the programmer's documentation.
160
 
% Search on "{filecontents*}{README}" to locate it.
161
 
% \fi\input{README}%
162
 
%
163
 
% \subsection{Bill of Materials}
164
 
%
165
 
% Following is a list of the files in this distribution arranged
166
 
% according to provenance.
167
 
%
168
 
% \subsubsection{Primary Source}%
169
 
% One single file generates all.
170
 
%\begin{verbatim}
171
 
%aip.dtx
172
 
%\end{verbatim}
173
 
%
174
 
% \subsubsection{Generated by \texttt{latex aip.dtx}}%
175
 
% Typesetting the source file under \LaTeX\
176
 
% generates the readme and the installer.
177
 
%\begin{verbatim}
178
 
%README   aip.ins
179
 
%\end{verbatim}
180
 
%
181
 
% \subsubsection{Generated by \texttt{tex aip.dtx}}%
182
 
% Typesetting the installer generates
183
 
% the package files.
184
 
%\begin{verbatim}
185
 
%aip.rtx
186
 
%\end{verbatim}
187
 
%
188
 
% \subsubsection{Documentation}%
189
 
% The following are the online documentation:
190
 
% \begin{verbatim}
191
 
%aip.pdf
192
 
% \end{verbatim}
193
 
%
194
 
% \subsubsection{Auxiliary}%
195
 
% The following are auxiliary files generated
196
 
% in the course of running \LaTeX:
197
 
% \begin{verbatim}
198
 
%aip.aux aip.idx aip.ind aip.log aip.toc
199
 
% \end{verbatim}
200
 
%
201
 
% \section{Code common to all modules}%
202
 
%
203
 
% The following may look a bit klootchy, but we
204
 
% want to require only one place in this file
205
 
% where the version number is stated,
206
 
% and we also want to ensure that the version
207
 
% number is embedded into every generated file.
208
 
%
209
 
% Now we declare that
210
 
% these files can only be used with \LaTeXe.
211
 
% An appropriate message is displayed if
212
 
% a different \TeX{} format is used.
213
 
%    \begin{macrocode}
214
 
%<*driver|package>
215
 
\NeedsTeXFormat{LaTeX2e}[1996/12/01]%
216
 
%</driver|package>
217
 
%    \end{macrocode}
218
 
% As desired, the following modules all
219
 
% take common version information:
220
 
%    \begin{macrocode}
221
 
%<package>\ProvidesFile{aip4-1.rtx}%
222
 
%<*driver>
223
 
\expandafter\ProvidesFile\expandafter{\jobname.dtx}%
224
 
%</driver>
225
 
%    \end{macrocode}
226
 
%
227
 
% The following line contains, for once and for all,
228
 
% the version and date information.
229
 
% By various means, this information is reproduced
230
 
% consistently in all generated files and in the
231
 
% typeset documentation.
232
 
%    \begin{macrocode}
233
 
%<*driver|package>
234
 
%<version>
235
 
 [2010/07/25 4.1r AIP substyle for REVTeX]% \fileversion
236
 
%</driver|package>
237
 
%    \end{macrocode}
238
 
%
239
 
%
240
 
% \section{The driver module \texttt{driver}}
241
 
%
242
 
% This module, consisting of the present section,
243
 
% typesets the programmer's documentation,
244
 
% generating the \file{.ins} installer and \file{README} as required.
245
 
%
246
 
% Because the only uncommented-out lines of code at the beginning of
247
 
% this file constitute the \file{driver} module itself,
248
 
% we can simply typeset the \file{.dtx} file directly,
249
 
% and there is thus rarely any need to
250
 
% generate the ``driver'' {\sc docstrip} module.
251
 
% Module delimiters are nonetheless required so that
252
 
% this code does not find its way into the other modules.
253
 
%
254
 
% The \enve{document} command concludes the typesetting run.
255
 
%
256
 
%    \begin{macrocode}
257
 
%<*driver>
258
 
%    \end{macrocode}
259
 
%
260
 
% \subsection{The Preamble}
261
 
% The programmers documentation is formatted
262
 
% with the \classname{ltxdoc} class with local customizations,
263
 
% and with the usual code line indexing.
264
 
%    \begin{macrocode}
265
 
\documentclass{ltxdoc}
266
 
\RequirePackage{ltxdocext}%
267
 
\let\url\undefined
268
 
\RequirePackage[colorlinks=true,linkcolor=blue]{hyperref}%
269
 
\expandafter\ifx\csname package@font\endcsname\relax\else
270
 
 \expandafter\expandafter
271
 
 \expandafter\RequirePackage
272
 
 \expandafter\expandafter
273
 
 \expandafter{\csname package@font\endcsname}%
274
 
\fi
275
 
\gdef\lquote{`}\gdef\rquote{'}%
276
 
\CodelineIndex\EnableCrossrefs % makeindex -s gind.ist aip
277
 
\RecordChanges % makeindex -s gglo.ist -o aip.gls aip.glo
278
 
%    \end{macrocode}
279
 
%
280
 
% \subsubsection{Docstrip and info directives}
281
 
%    We use so many {\sc docstrip} modules that we set the
282
 
%    \texttt{StandardModuleDepth} counter to 1.
283
 
%    \begin{macrocode}
284
 
\setcounter{StandardModuleDepth}{1}
285
 
%    \end{macrocode}
286
 
%    The following command retrieves the date and version information
287
 
%    from this file.
288
 
%    \begin{macrocode}
289
 
\expandafter\GetFileInfo\expandafter{\jobname.dtx}%
290
 
%    \end{macrocode}
291
 
%
292
 
% \subsection{The ``Read Me'' File}
293
 
% As promised above, here is the contents of the
294
 
% ``Read Me'' file. That file serves a double purpose,
295
 
% since it also constitutes the beginining of the
296
 
% programmer's documentation. What better thing, after
297
 
% all, to have appear at the beginning of the
298
 
% typeset documentation?
299
 
%
300
 
% A good discussion of how to write a ReadMe file can be found in
301
 
% Engst, Tonya, ``Writing a ReadMe File? Read This''
302
 
% \emph{MacTech} October 1998, p. 58.
303
 
%
304
 
% Note the appearance of the
305
 
% \cmd\StopEventually\ command, which marks the
306
 
% dividing line between the user documentation
307
 
% and the programmer documentation.
308
 
%
309
 
% The usual user will not be asked to
310
 
% do a full build, not to speak
311
 
% of the bootstrap.
312
 
% Instructions for carrying these processes
313
 
% begin the programmer's manual.
314
 
%
315
 
%\changes{4.1b}{2008/08/06}{Beta candidate b}
316
 
%    \begin{macrocode}
317
 
\begin{filecontents*}{README}
318
 
\title{%
319
 
 The \classname{aip} substyle for REV\TeX%
320
 
 \protect\thanks{%
321
 
  \fileversion\ \copyright 2009 American Institute of Physics
322
 
  % For version number and date,
323
 
  % search on "\fileversion" in the .dtx file,
324
 
  % or see the end of the README file.
325
 
 }%
326
 
}%
327
 
 
328
 
\author{%
329
 
Arthur Ogawa\thanks{mailto:arthur\_ogawa at sbcglobal.net}%
330
 
}%
331
 
\date{Version \fileversion, dated \filedate}%
332
 
\maketitle
333
 
 
334
 
This file embodies the implementation of the 
335
 
AIP journal substyles for APS's \revtex\ 4.1 document class
336
 
for electronic submissions to AIP journals.
337
 
 
338
 
The distribution point for this work is
339
 
\url{http://authors.aip.org/REVTEX}.
340
 
The archive contains ready-to-Install files, documentation, and full source.
341
 
 
342
 
This package is also distributed via CTAN:
343
 
\url{http://www.ctan.org/pub/tex-archive/macros/latex/contrib/aip}, and as a ready-to-install image as
344
 
\url{http://www.ctan.org/pub/tex-archive/install/macros/latex/contrib/aip.tds.zip}.
345
 
 
346
 
The \classname{aip} package was commissioned by the American Institute of Physics
347
 
and is distributed under the terms of the \LaTeX\ Project Public License,
348
 
the same license under which all the portions of \LaTeX\ itself is distributed.
349
 
Please see \url{http://ctan.tug.org/macros/latex/base/lppl.txt} for details.
350
 
 
351
 
To use this document class, you must have a working
352
 
\TeX\ installation equipped with \LaTeXe\ 
353
 
and possibly pdftex and Adobe Acrobat Reader or equivalent.
354
 
 
355
 
To install, retrieve the distribution,
356
 
unpack it into a directory on the target computer,
357
 
and move the file \file{aip.rtx}
358
 
into a location in your filesystem where it will be found by \LaTeX.
359
 
 
360
 
To use, read the user documentation \file{auguide.pdf}.
361
 
 
362
 
\tableofcontents
363
 
 
364
 
\section{Overview}%
365
 
\revtex\ is a \LaTeXe\ document class, somewhat like a hybrid of 
366
 
the standard \LaTeX\ \classname{book} and \classname{article} classes.
367
 
 
368
 
This document class implements the AIP society and journal substyles: 
369
 
the journals represent a set of mutually exclusive class options that, in this case, allow the 
370
 
document class to address multiple journals within the AIP family.
371
 
This society is obtained with class option \classoption{aip}.
372
 
 
373
 
\section{Processing Instructions}
374
 
 
375
 
The package file \file{aip.rtx}
376
 
is generated from this file, \file{aip.dtx},
377
 
using the {\sc docstrip} facility of \LaTeX
378
 
via |tex aip.dtx|.
379
 
The typeset documentation that you are now reading is generated from
380
 
the same file by typesetting it with \LaTeX\ or pdftex
381
 
via |latex aip.dtx| or |pdflatex aip.dtx|.
382
 
 
383
 
\subsection{Build Instructions}
384
 
 
385
 
You may bootstrap this suite of files solely from \file{aip.dtx}.
386
 
Prepare by installing \LaTeXe\ (and either tex or pdftex) on your computer,
387
 
then carry out the following steps:
388
 
\begin{enumerate}
389
 
\item
390
 
Within an otherwise empty directory,
391
 
typeset \file{aip.dtx} with \LaTeX\ or pdflatex;
392
 
you will obtain the typeset documentation you are now reading,
393
 
along with
394
 
the installer \file{aip.ins},
395
 
and the file \file{README}.
396
 
 
397
 
Note: you will have to run \LaTeX\ twice, then \file{makeindex}, then
398
 
\LaTeX\ again in order to obtain a valid index and table of contents.
399
 
\item
400
 
Now typeset \file{aip.dtx} with \TeX (not \LaTeX),
401
 
thereby generating the package file \file{aip.rtx}.
402
 
\item
403
 
Install \classname{aip.rtx}
404
 
by moving it to a location
405
 
in your filesystem where it will be found by \LaTeX,
406
 
like \file{tex/latex/aip}.
407
 
\item
408
 
Install \classname{aip.pdf}
409
 
by moving it to 
410
 
\file{doc/latex/aip}.
411
 
\item 
412
 
Using the \file{.dbj} information herein, 
413
 
generate the needed \file{.bst} files and install them in
414
 
\file{bibtex/bst/aip}.
415
 
\end{enumerate}
416
 
\end{filecontents*}
417
 
%    \end{macrocode}
418
 
%
419
 
% \subsection{The Document Body}
420
 
%
421
 
% Here is the document body, containing only a
422
 
% \cmd\DocInput\ directive---referring to this very file.
423
 
% This very cute self-reference is a common \classname{ltxdoc} idiom.
424
 
%    \begin{macrocode}
425
 
\begin{document}%
426
 
\newcommand\revtex{REV\TeX}%
427
 
\expandafter\DocInput\expandafter{\jobname.dtx}%
428
 
% ^^A\PrintChanges
429
 
\end{document}
430
 
%    \end{macrocode}
431
 
%
432
 
%    \begin{macrocode}
433
 
%</driver>
434
 
%    \end{macrocode}
435
 
%
436
 
% \section{AIP: A set of journal-specifc extensions to \revtex}
437
 
%
438
 
% To create a journal substyle, you create 
439
 
% a \file{.rtx} file, in our case \file{aip.rtx}.
440
 
% Within that file, you override procedures and parameter assignments as you see fit.
441
 
% Ideally they will be generally applicable to all of that society's
442
 
% journals (see the file \file{aps.rtx} for a realization of this scheme).
443
 
% Also within that file, you include a 
444
 
% section of code for each journal, that for JMP looks like:
445
 
% \begin{verbatim}
446
 
% \@ifx{\@journal\journal@jmp}{%
447
 
% <code specific to the JMP>
448
 
% }{}%
449
 
% \end{verbatim}
450
 
451
 
% \section{The \classoption{aip} class option: the \texttt{aip} module}
452
 
% The file \file{aip.rtx} is read in by the \classname{revtex4} document class
453
 
% if \cmd\@society\ has the value \classoption{aip}.
454
 
%
455
 
% Here, code specific to AIP journals appears.
456
 
%
457
 
% We first give some text entities (amounting to journal abbreviations),
458
 
% then some AIP-specific initialisations,
459
 
% then code for particular AIP journals.
460
 
% In the latter case, the choice is 
461
 
% keyed off the macro \cmd\@journal.
462
 
%
463
 
% Note on \cmd\AtEndOfClass:
464
 
% this file, like all journal substyles, is read in at \cmd\AtEndOfClass\ time,
465
 
% so you should not use this command in this file. 
466
 
% Note for \LaTeX\ developers: It would be an improvement in \LaTeX\ to 
467
 
% \cmd\let\cmd\AtEndOfClass\ to something like \cmd\@firstofone.
468
 
% This change would be effected in \cmd\@onefilewithoptions.
469
 
%
470
 
%    \begin{macrocode}
471
 
%<*package>
472
 
%    \end{macrocode}
473
 
%
474
 
% \subsection{Defend Against Forseeable Errors}%
475
 
% Protect this file from being read in by anything but \revtex.
476
 
%    \begin{macrocode}
477
 
\ifx\undefined\substyle@ext
478
 
 \def\@tempa{%
479
 
  \endinput
480
 
  \GenericWarning{I must be read in by REVTeX! (Bailing out)}%
481
 
 }%
482
 
 \expandafter\else
483
 
  \def\@tempa{}%
484
 
 \expandafter\fi\@tempa
485
 
 \class@info{RevTeX society AIP selected}%
486
 
%    \end{macrocode}
487
 
%
488
 
% \subsection{Substyle Options}%
489
 
%
490
 
% Here are the class options relating to the AIP:
491
 
%    \begin{macrocode}
492
 
\DeclareOption{jcp}{\change@journal{jcp}}%
493
 
\DeclareOption{pop}{\change@journal{pop}}%
494
 
\DeclareOption{rsi}{\change@journal{rsi}}%
495
 
\DeclareOption{jap}{\change@journal{jap}}%
496
 
\DeclareOption{apl}{\change@journal{apl}}%
497
 
\DeclareOption{cha}{\change@journal{cha}}%
498
 
\DeclareOption{pof}{\change@journal{pof}}%
499
 
\DeclareOption{bmf}{\change@journal{bmf}}%
500
 
\DeclareOption{rse}{\change@journal{rse}}%
501
 
\DeclareOption{jmp}{\change@journal{jmp}}%
502
 
%    \end{macrocode}
503
 
504
 
% Option allowing for ``numerical author-year'' bibliography. 
505
 
%    \begin{macrocode}
506
 
\DeclareOption{author-numerical}{%
507
 
  \@booleantrue\authoryear@sw
508
 
  \@booleantrue\authornum@sw
509
 
}%
510
 
%    \end{macrocode}
511
 
512
 
% Optionally allow article title in bibliography entries. 
513
 
% A new switch is defined here: \cmd\aip@jtitx@sw\ signifies that 
514
 
% the numbered style bibliography is to be prepared without article titles in @ARTICLE entries.
515
 
% Otherwise, such titles are incorporated if present in the \file{.bib} entry. 
516
 
% By default, exclude the article titles.
517
 
%    \begin{macrocode}
518
 
\DeclareOption{article-title}{%
519
 
  \@booleanfalse\aip@jtitx@sw
520
 
}%
521
 
\@booleantrue \aip@jtitx@sw
522
 
%    \end{macrocode}
523
 
%
524
 
% Establish default options for this society.
525
 
526
 
%    \begin{macrocode}
527
 
\@booleanfalse\authoryear@sw
528
 
\@booleanfalse\authornum@sw
529
 
%    \end{macrocode}
530
 
%
531
 
% \begin{macro}{\@bibdataout@init}
532
 
% \begin{macro}{\@bibdataout@aip}
533
 
% \changes{4.1o}{2010/02/12}{(AO, 580) Control .bst at run time.}%
534
 
% Procedure \cmd\@bibdataout@aip\ has the job of writing the control record into the
535
 
% job's \cmd\jobname\filename{.bib} file, where it will adjust the options to \filename{.bst} processing. 
536
 
% It is installed into the initialization procedure \cmd\@bibdataout@init, and its meaning 
537
 
% is set by the society (AIP) and journal. 
538
 
539
 
%    \begin{macrocode}
540
 
\appdef\@bibdataout@rev{\@bibdataout@aip}%
541
 
\def\@bibdataout@aip{%
542
 
 \immediate\write\@bibdataout{%
543
 
%    \end{macrocode}
544
 
% An entry that controls processing of the \filename{.bst} file has entry type \texttt{@CONTROL}. 
545
 
%    \begin{macrocode}
546
 
  @CONTROL{%
547
 
   aip41Control%
548
 
%    \end{macrocode}
549
 
% Say whether we want long bibliography style (the default), or the abbreviated style. 
550
 
%    \begin{macrocode}
551
 
   \longbibliography@sw{\true@sw}{\aip@jtitx@sw{\false@sw}{\true@sw}}%
552
 
   {%
553
 
    ,pages="1",title="0"%
554
 
   }{%
555
 
    ,pages="0",title=""%
556
 
   }%
557
 
  }%
558
 
 }%
559
 
%    \end{macrocode}
560
 
% Place a \cmd\citation\ into the auxiliary file corresponding to this entry. 
561
 
%    \begin{macrocode}
562
 
 \if@filesw
563
 
  \immediate\write\@auxout{\string\citation{aip41Control}}%
564
 
 \fi
565
 
}%
566
 
%    \end{macrocode}
567
 
% \end{macro}
568
 
% \end{macro}
569
 
%
570
 
% For AIP, the preprint style \classoption{preprint} is the default.
571
 
%    \begin{macrocode}
572
 
\@booleantrue\preprintsty@sw
573
 
%    \end{macrocode}
574
 
%
575
 
% \begin{macro}{\showPACS@sw}
576
 
% \begin{macro}{\showKEYS@sw}
577
 
% If \cmd\showPACS@sw\ is true, print the PACS information in the title block,
578
 
% otherwise not.
579
 
% Similarly for \cmd\showKEYS@sw\ and the keywords.
580
 
%    \begin{macrocode}
581
 
\@booleantrue\showPACS@sw
582
 
\@booleantrue\showKEYS@sw
583
 
%    \end{macrocode}
584
 
% \end{macro}
585
 
% \end{macro}
586
 
%
587
 
% \begin{macro}{\refname}
588
 
589
 
% In reprint style only, we eliminate the head above the bibliography.
590
 
%    \begin{macrocode}
591
 
\appdef\setup@hook{%
592
 
 \preprintsty@sw{}{%
593
 
  \let\refname\@empty
594
 
 }%
595
 
}%
596
 
%    \end{macrocode}
597
 
% \end{macro}
598
 
%
599
 
% \subsection{AIP Setup}%
600
 
% Here we define the default procedures for AIP journals.
601
 
% Individual AIP journals may override these definitions.
602
 
%
603
 
% \subsubsection{Running header and footer}%
604
 
%
605
 
% Page style for all AIP journals.
606
 
% We assert our own page style only if nobody else has done so.
607
 
% Users wishing to customize their documents will be able to invoke a \cmd\pagestyle\
608
 
% command anywhere in the preamble.
609
 
%FIXME: \cmd\preprintsty@sw\ is defined?
610
 
%    \begin{macrocode}
611
 
\appdef\setup@hook{%
612
 
 \preprintsty@sw{%
613
 
  \ps@preprint
614
 
 }{%
615
 
  \ps@article
616
 
 }%
617
 
}%
618
 
%    \end{macrocode}
619
 
%
620
 
% The spc says: ``Running title must be provided on title page'',
621
 
% and that journal classes 1b and 2 have no running title.
622
 
%    \begin{macrocode}
623
 
\def\ps@preprint{%
624
 
  \def\@oddhead{\@runningtitle\hfil}%
625
 
  \def\@evenhead{\@runningtitle\hfil}%
626
 
  \def\@oddfoot{\hfil\thepage\quad\checkindate\hfil}%
627
 
  \def\@evenfoot{\hfil\thepage\quad\checkindate\hfil}%
628
 
  \let\@mkboth\@gobbletwo
629
 
  \let\sectionmark\@gobble
630
 
  \let\subsectionmark\@gobble
631
 
}%
632
 
\def\ps@article{%
633
 
  \def\@evenhead{\let\\\heading@cr\thepage\quad\checkindate\hfil\@runningtitle}%
634
 
  \def\@oddhead{\let\\\heading@cr\@runningtitle\hfil\checkindate\quad\thepage}%
635
 
  \def\@oddfoot{}%
636
 
  \def\@evenfoot{}%
637
 
  \let\@mkboth\@gobbletwo
638
 
  \let\sectionmark\@gobble
639
 
  \let\subsectionmark\@gobble
640
 
}%
641
 
\def\@runningtitle{\@shorttitle}%
642
 
%    \end{macrocode}
643
 
%
644
 
% \subsubsection{Title block}%
645
 
%
646
 
% The specifics of the title block.
647
 
% Apply to all AIP journals; individual journals may override these settings.
648
 
%
649
 
% \begin{macro}{\titlepage}
650
 
%    \begin{macrocode}
651
 
\renewenvironment{titlepage}{%
652
 
  \let\wastwocol@sw\twocolumn@sw
653
 
  \onecolumngrid
654
 
  \newpage
655
 
  \thispagestyle{titlepage}%
656
 
  \c@page\z@% article sets this to one not zero???
657
 
}{%
658
 
  \wastwocol@sw{\twocolumngrid}{\newpage}%
659
 
}%
660
 
%    \end{macrocode}
661
 
% \end{macro}
662
 
%
663
 
% \begin{macro}{\@fnsymbol}
664
 
% On the title page, footnotes are lettered with right parenthesis: ``a)''.
665
 
%    \begin{macrocode}
666
 
\let\@fnsymbol@latex\@fnsymbol
667
 
\let\@fnsymbol\@alph
668
 
%    \end{macrocode}
669
 
% \end{macro}
670
 
%
671
 
% \begin{macro}{\adjust@abstractwidth}
672
 
% This procedure is used by many titlepage elements to indent on the left by a particular 
673
 
% amount. The author list uses \cmd\frontmatter@authorformat\ to accomplish the same.
674
 
%    \begin{macrocode}
675
 
\def\adjust@abstractwidth{%
676
 
 \parindent1em\relax
677
 
 \advance\leftskip.5in\relax
678
 
 \@totalleftmargin\leftskip
679
 
 \@afterheading\@afterindentfalse
680
 
}%
681
 
%    \end{macrocode}
682
 
% \end{macro}
683
 
%
684
 
% \begin{macro}{\frontmatter@abstractheading}
685
 
% AIP Journals all set the abstract head the same way, with no head.
686
 
%    \begin{macrocode}
687
 
\def\frontmatter@abstractheading{}%
688
 
%    \end{macrocode}
689
 
% \end{macro}
690
 
%
691
 
% \begin{macro}{\frontmatter@abstractfont}
692
 
% All AIP journals set the abstract body the same way.
693
 
%    \begin{macrocode}
694
 
\def\frontmatter@abstractfont{%
695
 
%\small
696
 
 \adjust@abstractwidth
697
 
}%
698
 
%    \end{macrocode}
699
 
% \end{macro}
700
 
%
701
 
% All AIP journal preprints use separate titlepage and full-width abstract.
702
 
%    \begin{macrocode}
703
 
\appdef\setup@hook{%
704
 
 \preprintsty@sw{%
705
 
  \@booleantrue\titlepage@sw
706
 
% \def\frontmatter@affiliationfont{\it}%
707
 
  \let\section\section@preprintsty
708
 
% \let\@hangfrom@section\@hangfrom@section@preprintsty
709
 
  \let\subsection\subsection@preprintsty
710
 
  \let\subsubsection\subsubsection@preprintsty
711
 
 }{}%
712
 
}%
713
 
%    \end{macrocode}
714
 
%
715
 
% \begin{macro}{\frontmatter@authorformat}
716
 
% All AIP journals set the author list the same.
717
 
% The leading is 11.5 points, and
718
 
% there is 11.5 points of extra space above the first author line
719
 
% (which amounts to the same thing as 11.5 points extra below the title)
720
 
% for a total of 23 points base-to-base.
721
 
%
722
 
%    \begin{macrocode}
723
 
\def\frontmatter@@indent{%
724
 
 \skip@\@flushglue
725
 
 \@flushglue\z@ plus.3\hsize\relax
726
 
 \raggedright
727
 
 \advance\leftskip.5in\relax
728
 
 \@totalleftmargin\leftskip
729
 
 \@flushglue\skip@
730
 
}%
731
 
\def\frontmatter@authorformat{%
732
 
 \frontmatter@@indent
733
 
 \sffamily
734
 
%\advance\baselineskip\p@
735
 
%\parskip11.5\p@\relax
736
 
}%
737
 
\renewcommand*\email[1][Electronic mail: ]{\begingroup\sanitize@url\@email{#1}}%
738
 
%    \end{macrocode}
739
 
% \end{macro}
740
 
%
741
 
% \begin{macro}{\frontmatter@above@affilgroup}
742
 
% The default amount of space above affiliation.
743
 
%    \begin{macrocode}
744
 
\def\frontmatter@above@affilgroup{%
745
 
}%
746
 
%    \end{macrocode}
747
 
% \end{macro}
748
 
%
749
 
% \begin{macro}{\frontmatter@above@affiliation}
750
 
% \begin{macro}{\frontmatter@above@affiliation@script}
751
 
% The default amount of space above affiliation.
752
 
%    \begin{macrocode}
753
 
\def\frontmatter@above@affiliation@script{%
754
 
 \frontmatter@@indent
755
 
%\addvspace{3.5\p@}%
756
 
}%
757
 
\def\frontmatter@above@affiliation{%
758
 
}%
759
 
%    \end{macrocode}
760
 
% \end{macro}
761
 
% \end{macro}
762
 
%
763
 
% \begin{macro}{\frontmatter@affiliationfont}
764
 
% All AIP journals set the affiliation the same.
765
 
% Like the author, but in italic. 
766
 
%    \begin{macrocode}
767
 
\def\frontmatter@affiliationfont{%
768
 
 \frontmatter@@indent
769
 
 \preprintsty@sw{}{\small}%
770
 
 \it
771
 
}%
772
 
%    \end{macrocode}
773
 
% \end{macro}
774
 
%
775
 
% \begin{macro}{\frontmatter@collaboration@above}
776
 
%    \begin{macrocode}
777
 
\def\frontmatter@collaboration@above{%
778
 
}%
779
 
%    \end{macrocode}
780
 
% \end{macro}
781
 
%
782
 
% Set up the default AIP style for title block authors and affiliations.
783
 
%
784
 
% \begin{macro}{\frontmatter@setup}
785
 
% All AIP journals set the title page using the same font and size.
786
 
% However, justification varies for the title block elements, so
787
 
% we assert none here.
788
 
%    \begin{macrocode}
789
 
\def\frontmatter@setup{%
790
 
 \normalfont
791
 
}%
792
 
%    \end{macrocode}
793
 
% \end{macro}
794
 
%
795
 
% \begin{macro}{\frontmatter@title@above}
796
 
% \begin{macro}{\frontmatter@title@format}
797
 
% \begin{macro}{\frontmatter@title@below}
798
 
% All AIP journals set the article title 12 point Times Roman, bold, flush left.
799
 
%
800
 
%    \begin{macrocode}
801
 
\def\frontmatter@title@above{\addvspace{6\p@}}%
802
 
\def\frontmatter@title@format{%
803
 
 \preprintsty@sw{}{\Large}%
804
 
 \sffamily
805
 
 \bfseries
806
 
 \raggedright
807
 
 \parskip\z@skip
808
 
}%
809
 
\def\frontmatter@title@below{\addvspace{3\p@}}%
810
 
%    \end{macrocode}
811
 
% \end{macro}
812
 
% \end{macro}
813
 
% \end{macro}
814
 
%
815
 
% \begin{macro}{\frontmatter@makefnmark}
816
 
% All AIP journals share this procedure for setting the titlepage footnote text:
817
 
% superior lowercase letter, with right parenthesis.
818
 
%    \begin{macrocode}
819
 
\def\@author@parskip{3\p@}%
820
 
\@booleantrue\altaffilletter@sw
821
 
\def\frontmatter@makefnmark{%
822
 
 \@textsuperscript{%
823
 
  \normalfont\@thefnmark%(
824
 
  )%
825
 
 }%
826
 
}%
827
 
\def\frontmatter@authorbelow{%
828
 
        \addvspace{3\p@}%
829
 
}%
830
 
%    \end{macrocode}
831
 
% \end{macro}
832
 
%
833
 
% \begin{macro}{\affil@cutoff}
834
 
% We override \cmd\affil@cutoff\ to enforce the rule that,
835
 
% if a single affiliation appears on the title page, then
836
 
% no affiliation superscript at all is produced.
837
 
%    \begin{macrocode}
838
 
\let\affil@cutoff\tw@
839
 
%    \end{macrocode}
840
 
% De awa. 
841
 
% \end{macro}
842
 
%
843
 
% \begin{macro}{\frontmatter@RRAP@format}
844
 
% All AIP journals use the same format for the ``Received, Revised, etc.'' block on the title page.
845
 
%
846
 
% Change note: 11.5 points b-b from author/affiliation down to date.
847
 
%    \begin{macrocode}
848
 
\def\frontmatter@RRAP@format{%
849
 
  \addvspace{5\p@}%
850
 
  \small
851
 
  \raggedright
852
 
  \advance\leftskip.5in\relax
853
 
 \@totalleftmargin\leftskip
854
 
% \preprintsty@sw{}{\parskip.5ex\relax}%
855
 
  \everypar{%
856
 
   \hbox\bgroup(\@gobble@leavemode@uppercase%)
857
 
  }%
858
 
  \def\par{%
859
 
   \@ifvmode{}{%(
860
 
    \unskip)\egroup\@@par
861
 
   }%
862
 
  }%
863
 
}%
864
 
\def\punct@RRAP{;\egroup\ \hbox\bgroup}%
865
 
\def\@gobble@leavemode@uppercase#1#2{\expandafter\MakeTextUppercase}%
866
 
%    \end{macrocode}
867
 
% \end{macro}
868
 
%
869
 
% \begin{macro}{\frontmatter@PACS@format}
870
 
871
 
%    \begin{macrocode}
872
 
\def\frontmatter@PACS@format{%
873
 
   \addvspace{11\p@}%
874
 
%  \footnotesize
875
 
   \adjust@abstractwidth
876
 
   \parskip\z@skip
877
 
   \samepage
878
 
}%
879
 
%    \end{macrocode}
880
 
% \end{macro}
881
 
%
882
 
% \begin{macro}{\frontmatter@keys@format}
883
 
884
 
%    \begin{macrocode}
885
 
\def\frontmatter@keys@format{%
886
 
%  \footnotesize
887
 
   \adjust@abstractwidth
888
 
   \samepage
889
 
}%
890
 
%    \end{macrocode}
891
 
% \end{macro}
892
 
%
893
 
% \begin{macro}{\ps@titlepage}
894
 
% Title page style. Currently empty except for preprint header,
895
 
% which consists of all the \cmd\preprint\ arguments,
896
 
% stacked flush right at the right margin.
897
 
%    \begin{macrocode}
898
 
\def\ps@titlepage{%
899
 
  \def\@oddhead{%
900
 
   \@runningtitle
901
 
   \hfill
902
 
   \produce@preprints\@preprint
903
 
  }%
904
 
  \let\@evenhead\@oddhead
905
 
  \def\@oddfoot{%
906
 
   \hb@xt@\z@{\byrevtex\hss}%
907
 
   \hfil
908
 
   \preprintsty@sw{\thepage}{}%
909
 
   \quad\checkindate
910
 
   \hfil
911
 
  }%
912
 
  \let\@evenfoot\@oddfoot
913
 
}%
914
 
\def\byrevtex{\byrevtex@sw{Typeset by REV\TeX and AIP}{}}%
915
 
%    \end{macrocode}
916
 
% \end{macro}
917
 
%
918
 
% \begin{macro}{\produce@preprints}
919
 
%    \begin{macrocode}
920
 
\def\produce@preprints#1{%
921
 
 \preprint@sw{%
922
 
  \vtop to \z@{%
923
 
   \def\baselinestretch{1}%
924
 
   \small
925
 
   \let\preprint\preprint@count
926
 
   \count@\z@#1\@ifnum{\count@>\tw@}{%
927
 
    \hbox{%
928
 
     \let\preprint\preprint@hlist
929
 
     #1\setbox\z@\lastbox
930
 
    }%
931
 
   }{%
932
 
    \let\preprint\preprint@cr
933
 
    \halign{\hfil##\cr#1\crcr}%
934
 
    \par
935
 
    \vss
936
 
   }%
937
 
  }%
938
 
 }{}%
939
 
}%
940
 
\def\preprint@cr#1{#1\cr}%
941
 
\def\preprint@count#1{\advance\count@\@ne}%
942
 
\def\preprint@hlist#1{#1\hbox{, }}%
943
 
%    \end{macrocode}
944
 
% \end{macro}
945
 
%
946
 
% \subsubsection{Lead-in paragraph}%
947
 
%
948
 
% The \env{Lead-in paragraph} environment formats the AIP ``lead paragraph''.
949
 
% To avoid introducing new syntax, we take over the \env{quotation} environment
950
 
% until the first \cmd\section\ (or other sectioning command) appears.
951
 
%
952
 
%    \begin{macrocode}
953
 
\newenvironment{Lead@inParagraph}{%
954
 
 \par
955
 
 \bfseries
956
 
 \@afterheading\@afterindentfalse
957
 
}{%
958
 
 \par
959
 
 \hb@xt@\hsize{\hfil\leaders\hrule\hfil\leaders\hrule\hfil\hfil}%
960
 
}%
961
 
%    \end{macrocode}
962
 
% At the beginning of the document temporarily change the meaning of 
963
 
% the \env{quotation} environment, restoring it once the first sectioning
964
 
% command is given. 
965
 
%    \begin{macrocode}
966
 
\appdef\frontmatter@init{%
967
 
 \let@environment{quotation@ltx}{quotation}%
968
 
 \let@environment{quotation}{Lead@inParagraph}%
969
 
}%
970
 
\appdef\@startsection@hook{%
971
 
 \let@environment{quotation}{quotation@ltx}%
972
 
}%
973
 
%    \end{macrocode}
974
 
%
975
 
% \subsubsection{Stacked Heads}%
976
 
% All AIP journals put a period (.), followed by quad space, after the section number.
977
 
% Also, no hanging section number.
978
 
%    \begin{macrocode}
979
 
\def\@seccntformat#1{\csname the#1\endcsname.\quad}%
980
 
\def\@hang@from#1#2#3{#1#2#3}%
981
 
%    \end{macrocode}
982
 
%
983
 
% Note that in the following, we wish to set the section head uppercase, so we use
984
 
% David Carlisle's \cmd\MakeTextUppercase. However, because this procedure effectively 
985
 
% parses its argument (looking for things to \emph{not} translate), it has to be invoked
986
 
% in such a way that the argument of the \cmd\section\ command is passed to it as its
987
 
% own argument. 
988
 
%
989
 
% To accomplish this, we use the \cmd\@hangfrom@\ hook, which was developed for this 
990
 
% purpose.
991
 
%
992
 
%    \begin{macrocode}
993
 
\def\section{%
994
 
  \@startsection
995
 
    {section}%
996
 
    {1}%
997
 
    {\z@}%
998
 
    {0.8cm \@plus1ex \@minus .2ex}%
999
 
    {0.5cm}%
1000
 
    {%
1001
 
     \normalfont
1002
 
     \small
1003
 
     \sffamily
1004
 
     \bfseries
1005
 
     \raggedright
1006
 
    }%
1007
 
}%
1008
 
\def\@hangfrom@section#1#2#3{\@hangfrom{#1#2}\MakeTextUppercase{#3}}%
1009
 
\def\@hangfroms@section#1#2{#1\MakeTextUppercase{#2}}%
1010
 
%    \end{macrocode}
1011
 
%
1012
 
% See, e.g., BMF\_044101\_1 (1) or BMF\_044103\_1 (1)
1013
 
%    \begin{macrocode}
1014
 
\def\subsection{%
1015
 
  \@startsection
1016
 
    {subsection}%
1017
 
    {2}%
1018
 
    {\z@}%
1019
 
    {.8cm \@plus1ex \@minus .2ex}%
1020
 
    {.5cm}%
1021
 
    {%
1022
 
     \normalfont
1023
 
     \small
1024
 
     \sffamily
1025
 
     \bfseries
1026
 
     \raggedright
1027
 
    }%
1028
 
}%
1029
 
%    \end{macrocode}
1030
 
%
1031
 
% See, e.g., BMF\_044104\_1 (1), JMP\_123520\_1 (48), 
1032
 
%    \begin{macrocode}
1033
 
\def\subsubsection{%
1034
 
  \@startsection
1035
 
    {subsubsection}%
1036
 
    {3}%
1037
 
    {\z@}%
1038
 
    {.8cm \@plus1ex \@minus .2ex}%
1039
 
    {.5cm}%
1040
 
    {%
1041
 
     \normalfont
1042
 
     \small
1043
 
     \sffamily
1044
 
     \bfseries
1045
 
     \itshape
1046
 
     \raggedright
1047
 
    }%
1048
 
}%
1049
 
%    \end{macrocode}
1050
 
%
1051
 
% \subsubsection{Runin Heads}%
1052
 
%    \begin{macrocode}
1053
 
\def\paragraph{%
1054
 
  \@startsection
1055
 
    {paragraph}%
1056
 
    {4}%
1057
 
    {\parindent}%
1058
 
    {\z@}%
1059
 
    {-1em}%
1060
 
    {\normalfont\normalsize\itshape}%
1061
 
}%
1062
 
%    \end{macrocode}
1063
 
%
1064
 
%    \begin{macrocode}
1065
 
\def\subparagraph{%
1066
 
  \@startsection
1067
 
    {subparagraph}%
1068
 
    {5}%
1069
 
    {\parindent}%
1070
 
    {3.25ex \@plus1ex \@minus .2ex}%
1071
 
    {-1em}%
1072
 
    {\normalfont\normalsize\bfseries}%
1073
 
}%
1074
 
%    \end{macrocode}
1075
 
%
1076
 
% \begin{macro}{\section@preprintsty}
1077
 
% \begin{macro}{\subsection@preprintsty}
1078
 
% \begin{macro}{\subsubsection@preprintsty}
1079
 
% Here are the formatting procedures specific to the preprint style;
1080
 
% the only difference is that the heads are flush left instead of centered.
1081
 
%
1082
 
%    \begin{macrocode}
1083
 
\def\section@preprintsty{%
1084
 
  \@startsection
1085
 
    {section}%
1086
 
    {1}%
1087
 
    {\z@}%
1088
 
    {0.8cm \@plus1ex \@minus .2ex}%
1089
 
    {0.5cm}%
1090
 
    {%
1091
 
     \normalfont
1092
 
     \bfseries
1093
 
     \raggedright
1094
 
    }%
1095
 
}%
1096
 
%\def\@hangfrom@section@preprintsty#1#2#3{\@hangfrom{#1#2}\MakeTextUppercase{#3}}%
1097
 
%    \end{macrocode}
1098
 
%    \begin{macrocode}
1099
 
\def\subsection@preprintsty{%
1100
 
  \@startsection
1101
 
    {subsection}%
1102
 
    {2}%
1103
 
    {\z@}%
1104
 
    {.8cm \@plus1ex \@minus .2ex}%
1105
 
    {.5cm}%
1106
 
    {%
1107
 
     \normalfont
1108
 
     \bfseries
1109
 
     \raggedright
1110
 
    }%
1111
 
}%
1112
 
%    \end{macrocode}
1113
 
%    \begin{macrocode}
1114
 
\def\subsubsection@preprintsty{%
1115
 
  \@startsection
1116
 
    {subsubsection}%
1117
 
    {3}%
1118
 
    {\z@}%
1119
 
    {.8cm \@plus1ex \@minus .2ex}%
1120
 
    {.5cm}%
1121
 
    {%
1122
 
     \normalfont
1123
 
%    \small
1124
 
     \itshape\bfseries
1125
 
     \raggedright
1126
 
    }%
1127
 
}%
1128
 
%    \end{macrocode}
1129
 
% \end{macro}
1130
 
% \end{macro}
1131
 
% \end{macro}
1132
 
%
1133
 
% For examples of 
1134
 
% \env{theorem}, \env{proposition}, \env{lemma}, \env{remark}, \env{corollary}, \env{example},
1135
 
% and \env{proof} (with optional title), 
1136
 
% using independent numbering for each class,
1137
 
% and with numbered and roman lists therein, 
1138
 
% see JMP\_122901\_1 (48). 
1139
 
%
1140
 
% For theorems, etc, numbered by section, (and with theorems in the appendix)
1141
 
% but equations numbered throughout, 
1142
 
% see JMP\_123301\_1 (48). 
1143
 
%
1144
 
% For a (roman) list in text, theorem, and proof,
1145
 
% see JMP\_123514\_1 (48).
1146
 
%
1147
 
% For numbered list in text, 
1148
 
% and equations numbered by section, 
1149
 
% see JMP\_123518\_1 (48).
1150
 
%
1151
 
% All AIP journals use frontmatter footnotes by default. 
1152
 
%    \begin{macrocode}
1153
 
\let\frontmatter@footnote@produce\frontmatter@footnote@produce@footnote
1154
 
%    \end{macrocode}
1155
 
%
1156
 
%
1157
 
% \subsubsection{Table of Contents}%
1158
 
% The toc will itself make an entry in the toc, 
1159
 
% but we temporarily turn off toc formatting for the duration.
1160
 
%    \begin{macrocode}
1161
 
\def\@pnumwidth{1.55em}
1162
 
\def\@tocrmarg {2.55em}
1163
 
\def\@dotsep{2}
1164
 
\def\ltxu@dotsep{4.5pt}
1165
 
\setcounter{tocdepth}{3}
1166
 
%    \end{macrocode}
1167
 
%
1168
 
%    \begin{macrocode}
1169
 
\def\tableofcontents{%
1170
 
 \addtocontents{toc}{\string\tocdepth@munge}%
1171
 
 \print@toc{toc}%
1172
 
 \addtocontents{toc}{\string\tocdepth@restore}%
1173
 
}%
1174
 
%    \end{macrocode}
1175
 
%
1176
 
%    \begin{macrocode}
1177
 
\def\tocdepth@munge{%
1178
 
  \let\l@section@saved\l@section
1179
 
  \let\l@section\@gobble@tw@
1180
 
}%
1181
 
\def\@gobble@tw@#1#2{}%
1182
 
%    \end{macrocode}
1183
 
%
1184
 
%    \begin{macrocode}
1185
 
\def\tocdepth@restore{%
1186
 
  \let\l@section\l@section@saved
1187
 
}%
1188
 
%    \end{macrocode}
1189
 
%
1190
 
%    \begin{macrocode}
1191
 
\def\l@part#1#2{\addpenalty{\@secpenalty}%
1192
 
 \begingroup
1193
 
  \set@tocdim@pagenum{#2}%
1194
 
% \@tempdima 3em %
1195
 
  \parindent \z@
1196
 
  \rightskip\tocleft@pagenum plus 1fil\relax
1197
 
  \skip@\parfillskip\parfillskip\z@
1198
 
  \addvspace{2.25em plus\p@}%
1199
 
  \large \bf %
1200
 
  \leavevmode\ignorespaces#1\unskip\nobreak\hskip\skip@
1201
 
  \hb@xt@\rightskip{\hfil\unhbox\z@}\hskip-\rightskip\hskip\z@skip
1202
 
  \par
1203
 
  \nobreak %
1204
 
 \endgroup
1205
 
}%
1206
 
%    \end{macrocode}
1207
 
%
1208
 
% \begin{macro}{\l@section}
1209
 
% Determine which TOC elements are automatically indented.
1210
 
%    \begin{macrocode}
1211
 
\def\tocleft@{\z@}%
1212
 
\def\tocdim@min{5\p@}%
1213
 
\def\l@section{%
1214
 
 \l@@sections{}{section}% Implicit #3#4
1215
 
}%
1216
 
\def\l@f@section{%
1217
 
 \addpenalty{\@secpenalty}%
1218
 
 \addvspace{1.0em plus\p@}%
1219
 
 \bf
1220
 
}%
1221
 
\def\l@subsection{%
1222
 
 \l@@sections{section}{subsection}% Implicit #3#4
1223
 
}%
1224
 
\def\l@subsubsection{%
1225
 
 \l@@sections{subsection}{subsubsection}% Implicit #3#4
1226
 
}%
1227
 
\def\l@paragraph#1#2{}%
1228
 
\def\l@subparagraph#1#2{}%
1229
 
%    \end{macrocode}
1230
 
% \end{macro}
1231
 
%
1232
 
% Activate the auto TOC processing.
1233
 
%    \begin{macrocode}
1234
 
\let\toc@pre\toc@pre@auto
1235
 
\let\toc@post\toc@post@auto
1236
 
%    \end{macrocode}
1237
 
%
1238
 
%    \begin{macrocode}
1239
 
\def\listoffigures{\print@toc{lof}}%
1240
 
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
1241
 
%    \end{macrocode}
1242
 
%
1243
 
%    \begin{macrocode}
1244
 
\def\listoftables{\print@toc{lot}}%
1245
 
\let\l@table\l@figure
1246
 
%    \end{macrocode}
1247
 
%
1248
 
% \subsubsection{Default column bottom}%
1249
 
% All AIP journal styles have flush bottoms.
1250
 
%
1251
 
%    \begin{macrocode}
1252
 
\@booleanfalse\raggedcolumn@sw
1253
 
%    \end{macrocode}
1254
 
%
1255
 
%
1256
 
% \subsubsection{Table alignment style}%
1257
 
%
1258
 
% \begin{macro}{\tableft@skip@float}
1259
 
% \begin{macro}{\tabmid@skip@float}
1260
 
% \begin{macro}{\tabright@skip@float}
1261
 
% \begin{macro}{\array@row@pre@float}
1262
 
% \begin{macro}{\array@row@pst@float}
1263
 
% All AIP publications have the same table specification:
1264
 
% Scotch rules above and below, centered in column.
1265
 
%    \begin{macrocode}
1266
 
\def\tableft@skip@float{\z@ plus\hsize}%
1267
 
\def\tabmid@skip@float{\@flushglue}%
1268
 
\def\tabright@skip@float{\z@ plus\hsize}%
1269
 
\def\array@row@pre@float{\hline\hline\noalign{\vskip\doublerulesep}}%
1270
 
\def\array@row@pst@float{\noalign{\vskip\doublerulesep}\hline\hline}%
1271
 
%    \end{macrocode}
1272
 
% \end{macro}
1273
 
% \end{macro}
1274
 
% \end{macro}
1275
 
% \end{macro}
1276
 
% \end{macro}
1277
 
%
1278
 
%
1279
 
% \subsubsection{Footnote formatting}%
1280
 
% We customize the formatting of footnotes for all AIP journals.
1281
 
% \begin{macro}{\@makefntext}
1282
 
%    \begin{macrocode}
1283
 
\def\@makefntext#1{%
1284
 
 \def\baselinestretch{1}%
1285
 
 \leftskip1em%
1286
 
 \parindent1em%
1287
 
 \noindent
1288
 
 \nobreak\hskip-\leftskip
1289
 
 \hb@xt@\leftskip{%
1290
 
  \hss\@makefnmark\ %
1291
 
 }%
1292
 
 #1%
1293
 
 \par
1294
 
}%
1295
 
%    \end{macrocode}
1296
 
% \end{macro}
1297
 
%
1298
 
%
1299
 
% \subsubsection{Appendix}%
1300
 
% \begin{macro}{\appendix}
1301
 
% \begin{macro}{\@hangfrom@appendix}
1302
 
% \begin{macro}{\@hangfroms@appendix}
1303
 
% \begin{macro}{\@appendixcntformat}
1304
 
%    \begin{macrocode}
1305
 
\prepdef\appendix{%
1306
 
 \par
1307
 
 \let\@hangfrom@section\@hangfrom@appendix
1308
 
%\let\@hangfroms@section\@hangfroms@appendix
1309
 
 \let\@sectioncntformat\@appendixcntformat
1310
 
}%
1311
 
\def\@hangfrom@appendix#1#2#3{%
1312
 
 #1%
1313
 
 \@if@empty{#2}{%
1314
 
  #3%
1315
 
 }{%
1316
 
  #2\@if@empty{#3}{}{:\ #3}%
1317
 
 }%
1318
 
}%
1319
 
\def\@hangfroms@appendix#1#2{%
1320
 
 #1#2%
1321
 
}%
1322
 
\def\@appendixcntformat#1{\appendixname\ \csname the#1\endcsname}%
1323
 
%    \end{macrocode}
1324
 
% \end{macro}
1325
 
% \end{macro}
1326
 
% \end{macro}
1327
 
% \end{macro}
1328
 
%
1329
 
% \subsubsection{Bibliography}%
1330
 
%
1331
 
% Customize the \revtex\ for the AIP society.
1332
 
% this task requires three components:
1333
 
% the \BibTeX\ \file{aipnum.bst} and \file{aipauth.bst} style files, 
1334
 
% customizing code for \file{natbib}, and
1335
 
% customizations of the \env{thebibliography} environment.
1336
 
%
1337
 
% \begin{macro}{\@bibstyle}
1338
 
% Define the argument of the \cmd\bibliographystyle\ command.
1339
 
% The user must have installed a \file{.bst} file of the corresponding name.
1340
 
% This file will then be used by \BibTeX\ when compiling the document's \file{.bbl} file.
1341
 
%
1342
 
% The default bibliography style for the AIP journal substyles are \file{aipnum.bst} and \file{aipauth.bst}. 
1343
 
%  To generate them, use \classname{custom-bib} version 4.21 or later.
1344
 
%  Run the \file{.bst} generator, \file{makebst.tex}, and
1345
 
%  accept all defaults, with the following exceptions:
1346
 
%
1347
 
% \begin{enumerate}
1348
 
% \item
1349
 
%  ORDERING OF REFERENCES: c: seq-no (references in order of Citation);
1350
 
% \item
1351
 
%  AUTHOR NAMES: i: nm-init,ed-au (Initials + surname);
1352
 
% \item
1353
 
%  NUMBER OF AUTHORS: l: max 12, min 12 (there will be three prompts total);
1354
 
% \item
1355
 
%  TYPEFACE FOR AUTHORS IN LIST OF REFERENCES: u: nmft,nmft-def (User defined author font);
1356
 
% \item
1357
 
%  FONT FOR FIRST NAMES: u: fnm-def (First names in user defined font);
1358
 
% \item
1359
 
%  EDITOR NAMES IN INCOLLECTION ETC: a: nmfted (Editors incollection like authors);
1360
 
% \item
1361
 
%  DATE FORMAT: p: yr-par (Date in parentheses);
1362
 
% \item
1363
 
%  SUPPRESS MONTH: x: xmth (Date is year only);
1364
 
% \item
1365
 
%  TITLE OF ARTICLE: i: tit-it (Title italic)
1366
 
% \item
1367
 
%  ARTICLE TITLE PRESENT: x: jtit-x (No article title);
1368
 
% \item
1369
 
%  JOURNAL NAME FONT: r: jttl-rm (Journal title normal);
1370
 
% \item
1371
 
%  TECHNICAL REPORT TITLE: b: trtit-b (Tech. report title like books);
1372
 
% \item
1373
 
%  JOURNAL VOLUME: b: vol-bf (Volume bold);
1374
 
% \item
1375
 
%  VOLUME PUNCTUATION: c: volp-com (Volume with comma);
1376
 
% \item
1377
 
%  PAGE NUMBERS: f: jpg-1 (Only start page number);
1378
 
% \item
1379
 
%  JOURNAL NAME PUNCTUATION: x: jnm-x (Space after journal);
1380
 
% \item
1381
 
%  PUBLISHER IN PARENTHESES: d: pub-date (Publisher and date in parentheses);
1382
 
% \item
1383
 
%  PUBLISHER POSITION: p: pre-pub (Publisher before chapter, pages);
1384
 
% \item
1385
 
% ISBN NUMBER: isbn: (Include ISBN for books, booklets)
1386
 
% \item
1387
 
% ISSN NUMBER: issn: (Include ISSN for periodicals)
1388
 
% \item
1389
 
%  EDITOR IN COLLECTIONS: b: edby (Booktitle, edited by \dots);
1390
 
% \item
1391
 
%  PUNCTUATION BETWEEN SECTIONS (BLOCKS): c: blk-com (Comma between blocks);
1392
 
% \item
1393
 
%  ABBREVIATE WORD `PAGES': a: pp (`Page' abbreviated);
1394
 
% \item
1395
 
%  ABBREVIATE WORD `EDITORS': a: ed (`Editor' abbreviated);
1396
 
% \item
1397
 
%  OTHER ABBREVIATIONS: a: abr (Abbreviations);
1398
 
% \item
1399
 
%  ABBREVIATION FOR `EDITION': a: ednx (`Edition' abbreviated as `ed');
1400
 
% \item
1401
 
%  EDITION NUMBERS: n: ord (Numerical editions);
1402
 
% \item
1403
 
%  STORED JOURNAL NAMES: a: jabr (Abbreviated journal names);
1404
 
% \item
1405
 
%  FONT OF `ET AL': i: etal-it (Italic et al);
1406
 
% \item
1407
 
%  ADDITIONAL REVTeX DATA FIELDS: r: revdata, eprint, url, url-blk (Include REVTeX data fields collaboration, eid, eprint, numpages, url)
1408
 
% \item
1409
 
%  NEW FONT SELECTION SCHEME: n: nfss (NFSS);
1410
 
% \item
1411
 
%  ADDITIONAL REVTeX DATA FIELDS: y: revdata (additional data fields);
1412
 
% \item
1413
 
%  REFERENCE COMPONENT TAGS: y: reference component tags;
1414
 
% \item
1415
 
%  URL ADDRESS: n: URL as note;
1416
 
% \end{enumerate}
1417
 
%
1418
 
% A file \file{aipnum.dbj} file equivalent to the following should result:
1419
 
% \begin{verbatim}
1420
 
%\input docstrip
1421
 
%\preamble
1422
 
%----------------------------------------
1423
 
%*** REVTeX-compatible aipnum4-1.bst 2009-10-08 ***
1424
 
%\endpreamble
1425
 
%\postamble
1426
 
%End of customized bst file
1427
 
%\endpostamble
1428
 
%\keepsilent
1429
 
%\askforoverwritefalse
1430
 
%\def\MBopts{\from{merlin.mbs}{%
1431
 
%  head,\MBopta}
1432
 
%\from{physjour.mbs}{\MBopta}
1433
 
%\from{geojour.mbs}{\MBopta}
1434
 
%\from{photjour.mbs}{\MBopta}
1435
 
%\from{merlin.mbs}{tail,\MBopta}}
1436
 
%\def\MBopta{%
1437
 
%  lang,%: Use language field to switch hyphenation patterns for title
1438
 
%  pres,pres-bf,%: Presentation, speaker bold face 
1439
 
%  seq-no,%: Citation order (unsorted, like unsrt.bst)
1440
 
%  vonx,%: Sort without von part (de la Maire after Mahone)
1441
 
%  nm-init,ed-au,%: Initials + surname (J. F. Smith)
1442
 
%  nmft,nmft-def,%: User defined author font (\bibnamefont)
1443
 
%  fnm-def,%: First names in user defined font (\bibfnamefont)
1444
 
%  nmfted,%: Editors incollection like authors font
1445
 
%  nmand-rm,%: `And' in normal font (JONES and JAMES)
1446
 
%  lab,lab-def,%: User defined citation font (\citenamefont)
1447
 
%  and-rm,%: Cited `and' in normal font 
1448
 
%  yr-par,%: Date in parentheses as (May 1993)
1449
 
%  date-nil-x,%: If date is empty, then do not produce the surrounding punctuation (parens, brackets, colon, comma)
1450
 
%  tit-qq,%: Title and punctuation in double quotes (``Title,'' ..)
1451
 
%  inproceedings-chapter,%: produce pages after chapter, just as in InBook
1452
 
%  jtit-x,%: Title is ignored
1453
 
%  inproceedings-chapter,%: produce pages after chapter just as in InBook
1454
 
%  article-booktitle,%: format booktitle 
1455
 
%  article-series,%: article can has series
1456
 
%  jttl-rm,%: Journal name normal font
1457
 
%  journal-address,%: Include address field (in parentheses) along with journal name
1458
 
%  book-bt,%: Field `booktitle', or if absent field `title', is book title 
1459
 
%  thesis-title-o,%: Title is optional: no warning issued if empty
1460
 
%  techreport-institution-par,%: format tech report institution like book publisher
1461
 
%  vol-bf,%: Volume bold as {\bf vol}(num)
1462
 
%  vnum-x,%: Journal vol, without number as 34
1463
 
%  volp-com,%: Volume with comma as vol(num), ppp
1464
 
%  jpg-1,%: Only start page number 
1465
 
%  book-editor-booktitle,%: Book permits empty author, produces title before editor in this case
1466
 
%  inbook-editor-booktitle,%: Allow using both title/booktitle, both author/editor
1467
 
%  bookaddress,%: Italic booktitle followed by bookaddress in roman
1468
 
%  num-xser,%: Allows number without series and suppresses word "number"
1469
 
%  number-cap,%: Capitalize word `number' as: "Number 123"
1470
 
%  chapter-cap,%: Capitalize word `chapter' as: `Chapter 42'
1471
 
%  series-number,%: Series number as: `Springer Lecture Notes No. 125'
1472
 
%  numser-booktitle,%: After book title and conference address, and before editors 
1473
 
%  ser-vol,%: Series, vol. 23
1474
 
%  ser-rm,%: format series roman , even when used with volume
1475
 
%  volume-cap,%: Capitalize word `volume', as: `Volume 7 in Lecture Series'
1476
 
%  ser-ed,%: Series and volume after booktitle and before editors
1477
 
%  jnm-x,%: Space after journal name
1478
 
%  pg-bk,book-chapter-pages,%: As chapter and page: chapter 42, page 345
1479
 
%  pub-date,%: Publisher with address and date in parentheses (Oxford, 1994)
1480
 
%  ay-empty-pub-parens-x,%: eliminate parentheses altogether if nothing inside
1481
 
%  pre-pub,%: Publisher before volume, chapter, pages 
1482
 
%  pre-edn,%: Edition before publisher
1483
 
%  pre-pub,pre-edn,%: Edition, publisher, volume, chapter, pages
1484
 
%  isbn,%: Include ISBN for books, booklets, etc.
1485
 
%  issn,%: Include ISSN for periodicals
1486
 
%  doi-link,doi,%: Doi forms a link to the publication, anchored to the volume or title
1487
 
%  edby,%: In booktitle, edited by ..  (where .. is names)
1488
 
%  blk-com,%: Comma between blocks 
1489
 
%  fin-endbibitem,%: Command at end instead of period 
1490
 
%  pp,%: `Page' abbreviated as p. or pp.
1491
 
%  ed,%: `Editor' abbreviated as ed. or eds.
1492
 
%  abr,%: Abbreviations of such words
1493
 
%  ednx,%: `Edition' abbreviated as `ed' 
1494
 
%  ord,%: Numerical editions as 1st, 2nd, 3rd, etc
1495
 
%  jabr,%: Abbreviated journal names 
1496
 
%  etal-it,%: Italic et al 
1497
 
%  revdata,eprint,url,url-blk,translation,%: Include REVTeX data fields collaboration, eid, eprint, archive, url, translation
1498
 
%  SLACcitation,%: Produce SLACcitation field
1499
 
%  numpages-x,%: Do not include numpages field 
1500
 
%  url,url-prefix-x,%: URL without prefix (default: `URL ')
1501
 
%  bibinfo,%: Reference component tags like \bibinfo in the content of \bibitem
1502
 
%  bibfield,%: Element tags like \bibfield in the content of \bibitem
1503
 
%  nfss,%: Use LaTeX commands which may not work with Plain TeX
1504
 
%,{%
1505
 
%  }}
1506
 
%\generate{\file{aipnum4-1.bst}{\MBopts}}
1507
 
%\endbatchfile
1508
 
% \end{verbatim}
1509
 
%
1510
 
% Between the two files \file{aipnum.dbj} and \file{aipauth.dbj}, 
1511
 
% the differences are limited:
1512
 
% \file{aipnum.dbj} has two lines lacking in \file{aipauth.dbj}:
1513
 
% \begin{verbatim}
1514
 
%  seq-no,%: Citation order (unsorted, like unsrt.bst)
1515
 
%  nm-init,ed-au,%: Initials + surname (J. F. Smith)
1516
 
% \end{verbatim}
1517
 
% thus, the ``numbered citation'' bibliography is sorted by citation order, and
1518
 
% the names are give first inital, then last name.
1519
 
%
1520
 
% Likewise, \file{aipauth.dbj} has one line lacking in \file{aipnum.dbj}:
1521
 
% \begin{verbatim}
1522
 
%  nm-rev,%: Surname + comma + initials (Smith, J. F.)
1523
 
% \end{verbatim}
1524
 
% Thus, the ``author-year'' bibliography is sorted by author name, and
1525
 
% names are given last name first, followed by initials.
1526
 
%
1527
 
% We ensure that the journal substyle has the first word
1528
 
% in the matter by installing the (default) AIP code 
1529
 
% later on (see Section~\ref{sec:aip-defaults}).
1530
 
% \end{macro}
1531
 
%
1532
 
% \begin{macro}{\pre@bibdata}
1533
 
1534
 
% Set up to write endnotes to a .bib file; its data will be incorporated into the bibliography.
1535
 
%    \begin{macrocode}
1536
 
 \def\pre@bibdata{\jobname\bibdata@app}%
1537
 
%    \end{macrocode}
1538
 
% \end{macro}
1539
 
%
1540
 
% \begin{macro}{\bibsection}
1541
 
% We define the sectioning command to use when starting the bibliography
1542
 
% (we use \cmd\refname). 
1543
 
%    \begin{macrocode}
1544
 
\def\refname{References}%
1545
 
\def\rtx@bibsection{%
1546
 
 \@ifx@empty\refname{%
1547
 
  \par\vspace{6\p@ plus 6\p@}%
1548
 
 }{%
1549
 
%    \end{macrocode}
1550
 
% The following line has been commented out:
1551
 
%    \begin{verbatim}
1552
 
% \let\@hangfroms@section\@hang@froms
1553
 
%    \end{verbatim}
1554
 
%    \begin{macrocode}
1555
 
  \expandafter\section\expandafter*\expandafter{\refname}%
1556
 
  \@nobreaktrue
1557
 
 }%
1558
 
}%
1559
 
%    \end{macrocode}
1560
 
% \end{macro}
1561
 
%
1562
 
% \begin{macro}{\bibpreamble}
1563
 
% \begin{macro}{\bibsep}
1564
 
% \begin{macro}{\newblock}
1565
 
%    \begin{macrocode}
1566
 
\let\bibpreamble\@empty
1567
 
\appdef\setup@hook{%
1568
 
 \bibsep\z@\relax
1569
 
}%
1570
 
\def\newblock{\ }%
1571
 
%    \end{macrocode}
1572
 
% \end{macro}
1573
 
% \end{macro}
1574
 
% \end{macro}
1575
 
%
1576
 
% \begin{macro}{\bibfont}
1577
 
% We define the font switch that applies to the body of the bibliography.
1578
 
%
1579
 
%    \begin{macrocode}
1580
 
\appdef\setup@hook{%
1581
 
 \def\bibfont{%
1582
 
  \preprintsty@sw{}{\footnotesize}%
1583
 
  \@clubpenalty\clubpenalty
1584
 
  \labelsep\z@
1585
 
 }%
1586
 
}%
1587
 
\let\place@bibnumber\place@bibnumber@sup
1588
 
%    \end{macrocode}
1589
 
% \end{macro}
1590
 
%
1591
 
%
1592
 
% \subsubsection{Index}%
1593
 
%    \begin{macrocode}
1594
 
\newenvironment{theindex}{%
1595
 
 \columnseprule \z@
1596
 
 \columnsep 35\p@
1597
 
 \c@secnumdepth-\maxdimen
1598
 
 \onecolumngrid@push
1599
 
 \section{\indexname}%
1600
 
 \thispagestyle{plain}%
1601
 
 \parindent\z@
1602
 
 \parskip\z@ plus.3\p@\relax
1603
 
 \let\item\@idxitem
1604
 
 \onecolumngrid@pop
1605
 
}{%
1606
 
}%
1607
 
%
1608
 
\def\@idxitem{\par\hangindent 40\p@}
1609
 
%
1610
 
\def\subitem{\par\hangindent 40\p@ \hspace*{20\p@}}
1611
 
%
1612
 
\def\subsubitem{\par\hangindent 40\p@ \hspace*{30\p@}}
1613
 
%
1614
 
\def\indexspace{\par \vskip 10\p@ plus5\p@ minus3\p@\relax}
1615
 
%    \end{macrocode}
1616
 
%
1617
 
%
1618
 
% \subsubsection{Typesize Processing}%
1619
 
% The formatting specification for the preprint option is:
1620
 
% Times Roman 12 pt, double spacing, with 1-inch margins on letter paper.
1621
 
% Paragraphs indented ``five spaces''.
1622
 
% Display math on standard indent, with equation number flush right in parenthesis, with subequations roman.
1623
 
%
1624
 
% That for reprint option is to format similar to the printed journal; with most journals
1625
 
% set (approximately analyzed) 10-point, 2-column grid, letter paper.
1626
 
%    \begin{macrocode}
1627
 
\expandafter\def\csname rtx@aip10pt\endcsname{%
1628
 
 \let\@currname@class\@currname
1629
 
 \def\@currname{aps10pt\substyle@post}%
1630
 
 \class@info{Reading file \@currname.\substyle@ext}%
1631
 
 \input{\@currname.\substyle@ext}%
1632
 
 \let\@currname\@currname@class
1633
 
 \class@info{Overriding 10pt}%
1634
 
 \aipreprint
1635
 
}%
1636
 
\expandafter\def\csname rtx@aip11pt\endcsname{\csname rtx@aip12pt\endcsname}%
1637
 
\expandafter\def\csname rtx@aip12pt\endcsname{%
1638
 
 \let\@currname@class\@currname
1639
 
 \def\@currname{aps12pt\substyle@post}%
1640
 
 \class@info{Reading file \@currname.\substyle@ext}%
1641
 
 \input{\@currname.\substyle@ext}%
1642
 
 \let\@currname\@currname@class
1643
 
 \class@info{Overriding 12pt}%
1644
 
 \aippreprint
1645
 
}%
1646
 
%    \end{macrocode}
1647
 
%
1648
 
% \begin{macro}{\today}
1649
 
% Procedure \cmd\today\ is used in the article class, but not in 
1650
 
% this document class.
1651
 
%    \begin{macrocode}
1652
 
\def\today{%
1653
 
  \number\day\space
1654
 
  \ifcase\month
1655
 
   \or January\or February\or March\or     April\or   May\or      June%
1656
 
   \or July\or    August\or   September\or October\or November\or December%
1657
 
  \fi\space
1658
 
  \number\year
1659
 
}%
1660
 
%    \end{macrocode}
1661
 
%    \end{macro}
1662
 
1663
 
% \subsection{A. Running Title}
1664
 
% User-provided running title \cmd\@shorttitle\ to be set.
1665
 
%
1666
 
% \subsection{B. Equation numbering, figure and table numbering}
1667
 
% Equations can be numbered throughout, or by section, with appendix equations prepended by the appendix label.
1668
 
% Figures and tables are numbered throughout.
1669
 
1670
 
%
1671
 
% \subsection{C. Title}
1672
 
% Title page may break above abstract, within author list.
1673
 
% Title notes are signified by superior letter followed by right parenthesis.
1674
 
%
1675
 
% \subsection{D. Author footnote}
1676
 
% Set short line above these footnotes.
1677
 
%
1678
 
% \subsection{E. Author}
1679
 
% Class option \classoption{superscriptaddress} is standard.
1680
 
%    \begin{macrocode}
1681
 
 \clo@superscriptaddress
1682
 
%    \end{macrocode}
1683
 
%
1684
 
% \subsection{F. Affiliations}
1685
 
% Set italic.
1686
 
%
1687
 
% \subsection{G. Received date}
1688
 
1689
 
%
1690
 
% \subsection{H. Abstract}
1691
 
% Single paragraph, no indent.
1692
 
%
1693
 
% \subsection{J. Lead Paragraph}
1694
 
% Set boldface, flush left before main text, single paragraph.
1695
 
% Separated from text by a short centered rule.
1696
 
%
1697
 
% \subsection{K. Headings}
1698
 
% Use labels: ROMAN, LETTER, arabic, letter.
1699
 
% Set ALLCAPS, boldface; Initial cap, boldface; Initial cap, bold-italic; Initial cap, italic.
1700
 
%
1701
 
% Theorem, proof title followed by colon. Follow author.
1702
 
%
1703
 
% \subsection{L. Text Footnotes}
1704
 
% Not permitted; use endnotes.
1705
 
%
1706
 
% \subsection{M. Citations and Bibliography}
1707
 
% Numerical \filename{aipnum.bst}, author-year \filename{aipauth.bst}, and numbered author-year \filename{aipnumauth.bst} are the available choices. 
1708
 
% Numerical is standard, with all styles permitted in journal classes 3a and 4b.
1709
 
%
1710
 
%
1711
 
% \subsection{N. References}
1712
 
1713
 
% Article Title usage:
1714
 
%
1715
 
%                        Article title required in all journals with "unpublished", "to be published", "in press" and "submitted" refs.
1716
 
1717
 
% Exceptions:
1718
 
%
1719
 
% Journal classes 1a,1b,2,4a:
1720
 
%
1721
 
%       Article title not allowed in published references, except in the case of  "in press" or submitted" (see sample references below). 
1722
 
%
1723
 
% Journal class 3a:
1724
 
%
1725
 
%       Article title allowed but not required in author-year references (use must be consistent within a single manuscript).
1726
 
%
1727
 
% Journal class 3b:
1728
 
%
1729
 
%       Article title required in all journal references and report references.
1730
 
%
1731
 
% Journal class 4b:
1732
 
%
1733
 
%       Article title allowed in journal references in author-year mode. 
1734
 
%
1735
 
% \subsection{O. Examples of Numerical References}
1736
 
1737
 
%
1738
 
% \subsection{P. References in Author-year mode}
1739
 
1740
 
%
1741
 
% \subsection{Q. Numbered Author-year References}
1742
 
1743
 
%
1744
 
% \subsection{R. Tables}
1745
 
% Placed within text (floated), labeled with Roman numeral. 
1746
 
%
1747
 
% Table caption placed above table, followed by space, 
1748
 
% two double lines, space, table column headings, space, 
1749
 
% single line, table contents, two double lines.
1750
 
%
1751
 
% Footnotes labeled with superior lower-case letter, set below table contents. 
1752
 
%
1753
 
% \subsection{S. Figures}
1754
 
% Placed within text (floated), labeled with arabic numbers.
1755
 
1756
 
% Caption set below figure. A citation to be set inline, not superscripted.
1757
 
%
1758
 
% \subsection{Society defaults}%
1759
 
%
1760
 
% After this society file is read in, we will process the 
1761
 
% \cmd\@journal- and \cmd\@pointsize-specific code. 
1762
 
% Here we define the defaults. 
1763
 
%
1764
 
% We select \textbf{Chaos} as the default journal substyle, because it is 
1765
 
% the most permissive in terms of bibliography and citation style,
1766
 
% and it is formatted in two column in the reprint style. 
1767
 
1768
 
%    \begin{macrocode}
1769
 
\def\@journal@default{cha}%
1770
 
\def\@pointsize@default{12}%
1771
 
%    \end{macrocode}
1772
 
%
1773
 
% \subsection{Journal-Specific Code}%
1774
 
%
1775
 
% For AIP journals, we supply code specific to JCP, POP, RSI, JAP, APL, CHA, POF, BMF, RSE, JMP.
1776
 
%
1777
 
% \subsubsection{\classoption{jcp}}%
1778
 
%A member of the journal class 1a.
1779
 
%    \begin{macrocode}
1780
 
\def\rtx@aipjcp{%
1781
 
 \typeout{Using journal substyle \@journal.}%
1782
 
%    \end{macrocode}
1783
 
% Journal class 1a uses the (superscript) numerical citation style by default.
1784
 
%    \begin{macrocode}
1785
 
 \@booleanfalse\authoryear@sw
1786
 
%    \end{macrocode}
1787
 
%
1788
 
% End of \classoption{jcp} code.
1789
 
%    \begin{macrocode}
1790
 
}%
1791
 
%    \end{macrocode}
1792
 
%
1793
 
% \subsubsection{\classoption{pop}}%
1794
 
%A member of the journal class 1a.
1795
 
%    \begin{macrocode}
1796
 
\def\rtx@aippop{%
1797
 
 \typeout{Using journal substyle \@journal.}%
1798
 
%    \end{macrocode}
1799
 
% Journal class 1a uses the (superscript) numerical citation style by default.
1800
 
%    \begin{macrocode}
1801
 
 \@booleanfalse\authoryear@sw
1802
 
%    \end{macrocode}
1803
 
%
1804
 
% End of \classoption{pop} code.
1805
 
%    \begin{macrocode}
1806
 
}%
1807
 
%    \end{macrocode}
1808
 
%
1809
 
% \subsubsection{\classoption{rsi}}%
1810
 
%A member of the journal class 1a.
1811
 
%    \begin{macrocode}
1812
 
\def\rtx@aiprsi{%
1813
 
 \typeout{Using journal substyle \@journal.}%
1814
 
%    \end{macrocode}
1815
 
% Journal class 1a uses the (superscript) numerical citation style by default.
1816
 
%    \begin{macrocode}
1817
 
 \@booleanfalse\authoryear@sw
1818
 
%    \end{macrocode}
1819
 
%
1820
 
% End of \classoption{rsi} code.
1821
 
%    \begin{macrocode}
1822
 
}%
1823
 
%    \end{macrocode}
1824
 
%
1825
 
% \subsubsection{\classoption{jap}}%
1826
 
%Sole member of the journal class 1b.
1827
 
%
1828
 
% No running title.
1829
 
%    \begin{macrocode}
1830
 
\def\rtx@aipjap{%
1831
 
 \typeout{Using journal substyle \@journal.}%
1832
 
%    \end{macrocode}
1833
 
% Journal class 1b uses the (superscript) numerical citation style by default.
1834
 
%    \begin{macrocode}
1835
 
 \@booleanfalse\authoryear@sw
1836
 
 \let\@runningtitle\@empty
1837
 
%    \end{macrocode}
1838
 
%
1839
 
% End of \classoption{jap} code.
1840
 
%    \begin{macrocode}
1841
 
}%
1842
 
%    \end{macrocode}
1843
 
%
1844
 
% \subsubsection{\classoption{apl}}%
1845
 
%Sole member of the journal class 2.
1846
 
%
1847
 
% No running title.
1848
 
%    \begin{macrocode}
1849
 
\def\rtx@aipapl{%
1850
 
 \typeout{Using journal substyle \@journal.}%
1851
 
%    \end{macrocode}
1852
 
% Journal class 2 uses the (superscript) numerical citation style by default.
1853
 
%    \begin{macrocode}
1854
 
 \@booleanfalse\authoryear@sw
1855
 
 \let\@runningtitle\@empty
1856
 
%    \end{macrocode}
1857
 
%
1858
 
% End of \classoption{apl} code.
1859
 
%    \begin{macrocode}
1860
 
}%
1861
 
%    \end{macrocode}
1862
 
%
1863
 
% \subsubsection{\classoption{cha}}%
1864
 
%Sole member of the journal class 3a.
1865
 
%    \begin{macrocode}
1866
 
\def\rtx@aipcha{%
1867
 
 \typeout{Using journal substyle \@journal.}%
1868
 
%    \end{macrocode}
1869
 
% Article titles are allowed.
1870
 
%    \begin{macrocode}
1871
 
 \@booleanfalse\aip@jtitx@sw
1872
 
%    \end{macrocode}
1873
 
%
1874
 
% End of \classoption{cha} code.
1875
 
%    \begin{macrocode}
1876
 
}%
1877
 
%    \end{macrocode}
1878
 
%
1879
 
% \subsubsection{\classoption{pof}}%
1880
 
%Sole member of the journal class 3b.
1881
 
%    \begin{macrocode}
1882
 
\def\rtx@aippof{%
1883
 
 \typeout{Using journal substyle \@journal.}%
1884
 
%    \end{macrocode}
1885
 
% Journal class 3b uses the (superscript) numerical citation style by default.
1886
 
% Article titles are required, so we include them if available, 
1887
 
% but if absent, we can do no more than make a warning in the \file{.blg}.
1888
 
%    \begin{macrocode}
1889
 
 \@booleanfalse\authoryear@sw
1890
 
 \@booleanfalse\aip@jtitx@sw
1891
 
%    \end{macrocode}
1892
 
%
1893
 
% End of \classoption{pof} code.
1894
 
%    \begin{macrocode}
1895
 
}%
1896
 
%    \end{macrocode}
1897
 
%
1898
 
% \subsubsection{\classoption{bmf}}%
1899
 
% A member of the journal class 4a, 
1900
 
% the Biomicrofluidics journal is single column. 
1901
 
%    \begin{macrocode}
1902
 
\def\rtx@aipbmf{%
1903
 
 \typeout{Using journal substyle \@journal.}%
1904
 
%    \end{macrocode}
1905
 
% Journal class 4a uses the (superscript) numerical citation style by default.
1906
 
% Journal is formatted in a single column.
1907
 
%    \begin{macrocode}
1908
 
 \@booleanfalse\authoryear@sw
1909
 
 \@booleanfalse\twocolumn@sw
1910
 
%    \end{macrocode}
1911
 
%
1912
 
% End of \classoption{bmf} code.
1913
 
%    \begin{macrocode}
1914
 
}%
1915
 
%    \end{macrocode}
1916
 
%
1917
 
% \subsubsection{\classoption{rse}}%
1918
 
%A member of the journal class 4a.
1919
 
%    \begin{macrocode}
1920
 
\def\rtx@aiprse{%
1921
 
 \typeout{Using journal substyle \@journal.}%
1922
 
%    \end{macrocode}
1923
 
% Journal class 4a uses the (superscript) numerical citation style by default.
1924
 
%    \begin{macrocode}
1925
 
 \@booleanfalse\authoryear@sw
1926
 
%    \end{macrocode}
1927
 
%
1928
 
% End of \classoption{rse} code.
1929
 
%    \begin{macrocode}
1930
 
}%
1931
 
%    \end{macrocode}
1932
 
%
1933
 
% \subsubsection{\classoption{jmp}}%
1934
 
% Sole member of the journal class 4b, Journal of Mathematical Physics is single column.
1935
 
% For an example of \env{itemize}, see JMP\_122901\_1 (48).
1936
 
%    \begin{macrocode}
1937
 
\def\rtx@aipjmp{%
1938
 
 \typeout{Using journal substyle \@journal.}%
1939
 
%    \end{macrocode}
1940
 
% Article titles are allowed.
1941
 
% Journal is formatted in a single column.
1942
 
%    \begin{macrocode}
1943
 
 \@booleanfalse\aip@jtitx@sw
1944
 
 \@booleanfalse\twocolumn@sw
1945
 
%    \end{macrocode}
1946
 
%
1947
 
% End of \classoption{jmp} code.
1948
 
%    \begin{macrocode}
1949
 
}%
1950
 
%    \end{macrocode}
1951
 
%
1952
 
% \subsection{Establish AIP Defaults\label{sec:aip-defaults}}
1953
 
%
1954
 
% \begin{macro}{\footinbib@sw}
1955
 
% All AIP journals invoke the \classoption{footinbib} option.
1956
 
%    \begin{macrocode}
1957
 
\@booleantrue\footinbib@sw
1958
 
%    \end{macrocode}
1959
 
% \end{macro}
1960
 
%
1961
 
% \begin{macro}{\place@bibnumber}
1962
 
% \begin{macro}{\@bibstyle}
1963
 
% \begin{macro}{\bibpunct}
1964
 
% We install code that will 
1965
 
% govern the style in which \cmd\cite\ commands are
1966
 
% formatted, 
1967
 
% select the presentation for \cmd\bibitem s
1968
 
% and control the \BibTeX\ processing.
1969
 
%
1970
 
% Note that a journal substyle may override these settings.
1971
 
% Likewise, document preamble may itself invoke \cmd\bibpunct\ or \cmd\bibliographystyle,
1972
 
% thereby overriding these settings and those of the journal substyle. 
1973
 
%
1974
 
% The numbered citations of \file{aipnum} and \file{aipauthnum}
1975
 
% are compatible with \classoption{footinbib} and 
1976
 
% the compression and coalescing features of \classname{natbib}, 
1977
 
% while \file{aipauth}'s author-year citations are not.
1978
 
% Therefore, we de-select such options if we are selecting author-year citations. 
1979
 
%
1980
 
% Note on \classname{natbib} presets:
1981
 
% \file{aipnum} and \file{aipauthnum} uses the Chicago \cmd\bibpunct\ style;
1982
 
% while \file{aipauth} uses that of Nature. 
1983
 
%
1984
 
% Note on \cmd\NAT@mcite: if not using numerical citations, we set \cmd\NAT@mcite\ 
1985
 
% to a lower value, to turn off the mcite semantics of \classname{natbib}. 
1986
 
%    \begin{macrocode}
1987
 
\let\place@bibnumber\place@bibnumber@sup
1988
 
\appdef\setup@hook{%
1989
 
 \authoryear@sw{%
1990
 
  \aip@jtitx@sw{%
1991
 
   \def\@bibstyle{aipauth\substyle@post}%
1992
 
  }{%
1993
 
   \def\@bibstyle{aipauth\substyle@post}%
1994
 
  }%
1995
 
  \authornum@sw{%
1996
 
   \bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
1997
 
   \let\onlinecite\rev@citealpnum
1998
 
  }{%
1999
 
   \bibhang10\p@
2000
 
   \bibpunct{(%)
2001
 
              }{%(
2002
 
                )}{; }{a}{,}{,}%
2003
 
   \@booleanfalse\footinbib@sw
2004
 
   \let\NAT@mcite\@ne
2005
 
   \let\NAT@sort\z@
2006
 
   \def\NAT@cmprs{\z@}%
2007
 
   \let\NAT@def@citea\rtx@def@citea
2008
 
   \let\NAT@def@citea@close\rtx@def@citea@close
2009
 
  }%
2010
 
 }{%
2011
 
  \aip@jtitx@sw{%
2012
 
   \def\@bibstyle{aipnum\substyle@post}%
2013
 
  }{%
2014
 
   \def\@bibstyle{aipnum\substyle@post}%
2015
 
  }%
2016
 
  \bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
2017
 
  \let\onlinecite\rev@citealpnum
2018
 
 }%
2019
 
}%
2020
 
\def\make@footnote@endnote{%
2021
 
 \footinbib@sw{%
2022
 
  \authoryear@sw{\authornum@sw{\false@sw}{\true@sw}}{\false@sw}%
2023
 
  {}{%
2024
 
   \ltx@footnote@push
2025
 
   \def\thempfn{Note\thefootnote}%
2026
 
   \let\ltx@footmark\rev@citemark
2027
 
   \let\ltx@foottext\rev@endtext
2028
 
   \appdef\class@enddocumenthook{\auto@bib}%
2029
 
   \let\printendnotes\relax
2030
 
  }%
2031
 
 }{}%
2032
 
}%
2033
 
%    \end{macrocode}
2034
 
% \end{macro}
2035
 
% \end{macro}
2036
 
% \end{macro}
2037
 
%
2038
 
% \begin{macro}{\aipreprint}%
2039
 
% We want to override \filename{aps10pt.rtx}.
2040
 
%    \begin{macrocode}
2041
 
\def\aipreprint{%
2042
 
}%
2043
 
%    \end{macrocode}
2044
 
% \end{macro}
2045
 
%
2046
 
% \begin{macro}{\aippreprint}%
2047
 
% We want to override \filename{aps12pt.rtx}.
2048
 
%    \begin{macrocode}
2049
 
\def\aippreprint{%
2050
 
}%
2051
 
%    \end{macrocode}
2052
 
% \end{macro}
2053
 
%
2054
 
%    \begin{macrocode}
2055
 
%</package>
2056
 
%    \end{macrocode}
2057
 
%
2058
 
% \Finale
2059
 
% %Here ends the programmer's documentation.
2060
 
% \endinput
2061
 
%
2062
 
\endinput