1
% \iffalse meta-comment
2
% aip.dtx: package to change page grid, MVL.
3
% Copyright (c) 2008 American Institute of Physics
7
% This file is distributed WITHOUT ANY WARRANTY;
8
% without even the implied warranty of
9
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
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).
15
% For the documentation and more detailed instructions for
16
% installation, typeset this document with \LaTeX.
18
% This work has the LPPL maintenance status "maintained";
19
% Current Maintainer of this work is Arthur Ogawa.
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.
25
% CTAN:macros/latex/contrib/aip/
33
% Programm calls to get the documentation (example):
35
% makeindex -s gind.ist aip
36
% makeindex -s gglo.ist -o aip.gls aip.glo
38
% makeindex -s gind.ist aip
44
% TDS:source/latex/aip/
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!
56
0\expandafter\ifx\csname processbatchFile\endcsname\relax\else1\fi\ifx\fmtname\x\else 1\fi
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
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.
74
Copyright (c) 2008 American Institute of Physics.
77
Maintained by Arthur Ogawa (mailto:arthur_ogawa at sbcglobal.net)
78
under contract to American Institute of Physics.
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).
85
This file is distributed WITHOUT ANY WARRANTY;
86
without even the implied warranty of MERCHANTABILITY
87
or FITNESS FOR A PARTICULAR PURPOSE.
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}}%
100
\Msg{***********************************************************}
102
\Msg{* To finish the installation, please move}
104
\Msg{* into a directory searched by TeX;}
105
\Msg{* in a TDS-compliant installation:}
106
\Msg{* texmf/tex/macros/latex/aip/.}
108
\Msg{* To produce the documentation,
109
run aip.dtx through LaTeX.}
112
\Msg{***********************************************************}
121
% \GetFileInfo{aip.dtx}\CheckSum{1163}
123
% \iffalse ltxdoc klootch
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.
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
139
%%% address = "AIP Journal Program
140
%%% American Institute of Physics,
141
%%% Suite 1NO1, 2 Huntington Quadrangle,
142
%%% Melville, NY 11747 USA",
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",
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.
163
% \subsection{Bill of Materials}
165
% Following is a list of the files in this distribution arranged
166
% according to provenance.
168
% \subsubsection{Primary Source}%
169
% One single file generates all.
174
% \subsubsection{Generated by \texttt{latex aip.dtx}}%
175
% Typesetting the source file under \LaTeX\
176
% generates the readme and the installer.
181
% \subsubsection{Generated by \texttt{tex aip.dtx}}%
182
% Typesetting the installer generates
188
% \subsubsection{Documentation}%
189
% The following are the online documentation:
194
% \subsubsection{Auxiliary}%
195
% The following are auxiliary files generated
196
% in the course of running \LaTeX:
198
%aip.aux aip.idx aip.ind aip.log aip.toc
201
% \section{Code common to all modules}%
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.
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.
215
\NeedsTeXFormat{LaTeX2e}[1996/12/01]%
218
% As desired, the following modules all
219
% take common version information:
221
%<package>\ProvidesFile{aip4-1.rtx}%
223
\expandafter\ProvidesFile\expandafter{\jobname.dtx}%
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.
235
[2010/07/25 4.1r AIP substyle for REVTeX]% \fileversion
240
% \section{The driver module \texttt{driver}}
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.
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.
254
% The \enve{document} command concludes the typesetting run.
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.
265
\documentclass{ltxdoc}
266
\RequirePackage{ltxdocext}%
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}%
275
\gdef\lquote{`}\gdef\rquote{'}%
276
\CodelineIndex\EnableCrossrefs % makeindex -s gind.ist aip
277
\RecordChanges % makeindex -s gglo.ist -o aip.gls aip.glo
280
% \subsubsection{Docstrip and info directives}
281
% We use so many {\sc docstrip} modules that we set the
282
% \texttt{StandardModuleDepth} counter to 1.
284
\setcounter{StandardModuleDepth}{1}
286
% The following command retrieves the date and version information
289
\expandafter\GetFileInfo\expandafter{\jobname.dtx}%
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?
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.
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.
309
% The usual user will not be asked to
310
% do a full build, not to speak
312
% Instructions for carrying these processes
313
% begin the programmer's manual.
315
%\changes{4.1b}{2008/08/06}{Beta candidate b}
317
\begin{filecontents*}{README}
319
The \classname{aip} substyle for REV\TeX%
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.
329
Arthur Ogawa\thanks{mailto:arthur\_ogawa at sbcglobal.net}%
331
\date{Version \fileversion, dated \filedate}%
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.
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.
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}.
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.
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.
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.
360
To use, read the user documentation \file{auguide.pdf}.
365
\revtex\ is a \LaTeXe\ document class, somewhat like a hybrid of
366
the standard \LaTeX\ \classname{book} and \classname{article} classes.
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}.
373
\section{Processing Instructions}
375
The package file \file{aip.rtx}
376
is generated from this file, \file{aip.dtx},
377
using the {\sc docstrip} facility of \LaTeX
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|.
383
\subsection{Build Instructions}
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:
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,
394
the installer \file{aip.ins},
395
and the file \file{README}.
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.
400
Now typeset \file{aip.dtx} with \TeX (not \LaTeX),
401
thereby generating the package file \file{aip.rtx}.
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}.
408
Install \classname{aip.pdf}
410
\file{doc/latex/aip}.
412
Using the \file{.dbj} information herein,
413
generate the needed \file{.bst} files and install them in
414
\file{bibtex/bst/aip}.
419
% \subsection{The Document Body}
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.
426
\newcommand\revtex{REV\TeX}%
427
\expandafter\DocInput\expandafter{\jobname.dtx}%
436
% \section{AIP: A set of journal-specifc extensions to \revtex}
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:
446
% \@ifx{\@journal\journal@jmp}{%
447
% <code specific to the JMP>
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}.
455
% Here, code specific to AIP journals appears.
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.
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.
474
% \subsection{Defend Against Forseeable Errors}%
475
% Protect this file from being read in by anything but \revtex.
477
\ifx\undefined\substyle@ext
480
\GenericWarning{I must be read in by REVTeX! (Bailing out)}%
484
\expandafter\fi\@tempa
485
\class@info{RevTeX society AIP selected}%
488
% \subsection{Substyle Options}%
490
% Here are the class options relating to the AIP:
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}}%
504
% Option allowing for ``numerical author-year'' bibliography.
506
\DeclareOption{author-numerical}{%
507
\@booleantrue\authoryear@sw
508
\@booleantrue\authornum@sw
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.
518
\DeclareOption{article-title}{%
519
\@booleanfalse\aip@jtitx@sw
521
\@booleantrue \aip@jtitx@sw
524
% Establish default options for this society.
527
\@booleanfalse\authoryear@sw
528
\@booleanfalse\authornum@sw
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.
540
\appdef\@bibdataout@rev{\@bibdataout@aip}%
541
\def\@bibdataout@aip{%
542
\immediate\write\@bibdataout{%
544
% An entry that controls processing of the \filename{.bst} file has entry type \texttt{@CONTROL}.
549
% Say whether we want long bibliography style (the default), or the abbreviated style.
551
\longbibliography@sw{\true@sw}{\aip@jtitx@sw{\false@sw}{\true@sw}}%
553
,pages="1",title="0"%
560
% Place a \cmd\citation\ into the auxiliary file corresponding to this entry.
563
\immediate\write\@auxout{\string\citation{aip41Control}}%
570
% For AIP, the preprint style \classoption{preprint} is the default.
572
\@booleantrue\preprintsty@sw
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,
579
% Similarly for \cmd\showKEYS@sw\ and the keywords.
581
\@booleantrue\showPACS@sw
582
\@booleantrue\showKEYS@sw
587
% \begin{macro}{\refname}
589
% In reprint style only, we eliminate the head above the bibliography.
599
% \subsection{AIP Setup}%
600
% Here we define the default procedures for AIP journals.
601
% Individual AIP journals may override these definitions.
603
% \subsubsection{Running header and footer}%
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?
620
% The spc says: ``Running title must be provided on title page'',
621
% and that journal classes 1b and 2 have no running title.
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
633
\def\@evenhead{\let\\\heading@cr\thepage\quad\checkindate\hfil\@runningtitle}%
634
\def\@oddhead{\let\\\heading@cr\@runningtitle\hfil\checkindate\quad\thepage}%
637
\let\@mkboth\@gobbletwo
638
\let\sectionmark\@gobble
639
\let\subsectionmark\@gobble
641
\def\@runningtitle{\@shorttitle}%
644
% \subsubsection{Title block}%
646
% The specifics of the title block.
647
% Apply to all AIP journals; individual journals may override these settings.
649
% \begin{macro}{\titlepage}
651
\renewenvironment{titlepage}{%
652
\let\wastwocol@sw\twocolumn@sw
655
\thispagestyle{titlepage}%
656
\c@page\z@% article sets this to one not zero???
658
\wastwocol@sw{\twocolumngrid}{\newpage}%
663
% \begin{macro}{\@fnsymbol}
664
% On the title page, footnotes are lettered with right parenthesis: ``a)''.
666
\let\@fnsymbol@latex\@fnsymbol
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.
675
\def\adjust@abstractwidth{%
677
\advance\leftskip.5in\relax
678
\@totalleftmargin\leftskip
679
\@afterheading\@afterindentfalse
684
% \begin{macro}{\frontmatter@abstractheading}
685
% AIP Journals all set the abstract head the same way, with no head.
687
\def\frontmatter@abstractheading{}%
691
% \begin{macro}{\frontmatter@abstractfont}
692
% All AIP journals set the abstract body the same way.
694
\def\frontmatter@abstractfont{%
696
\adjust@abstractwidth
701
% All AIP journal preprints use separate titlepage and full-width abstract.
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
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.
723
\def\frontmatter@@indent{%
725
\@flushglue\z@ plus.3\hsize\relax
727
\advance\leftskip.5in\relax
728
\@totalleftmargin\leftskip
731
\def\frontmatter@authorformat{%
734
%\advance\baselineskip\p@
735
%\parskip11.5\p@\relax
737
\renewcommand*\email[1][Electronic mail: ]{\begingroup\sanitize@url\@email{#1}}%
741
% \begin{macro}{\frontmatter@above@affilgroup}
742
% The default amount of space above affiliation.
744
\def\frontmatter@above@affilgroup{%
749
% \begin{macro}{\frontmatter@above@affiliation}
750
% \begin{macro}{\frontmatter@above@affiliation@script}
751
% The default amount of space above affiliation.
753
\def\frontmatter@above@affiliation@script{%
757
\def\frontmatter@above@affiliation{%
763
% \begin{macro}{\frontmatter@affiliationfont}
764
% All AIP journals set the affiliation the same.
765
% Like the author, but in italic.
767
\def\frontmatter@affiliationfont{%
769
\preprintsty@sw{}{\small}%
775
% \begin{macro}{\frontmatter@collaboration@above}
777
\def\frontmatter@collaboration@above{%
782
% Set up the default AIP style for title block authors and affiliations.
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.
789
\def\frontmatter@setup{%
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.
801
\def\frontmatter@title@above{\addvspace{6\p@}}%
802
\def\frontmatter@title@format{%
803
\preprintsty@sw{}{\Large}%
809
\def\frontmatter@title@below{\addvspace{3\p@}}%
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.
819
\def\@author@parskip{3\p@}%
820
\@booleantrue\altaffilletter@sw
821
\def\frontmatter@makefnmark{%
823
\normalfont\@thefnmark%(
827
\def\frontmatter@authorbelow{%
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.
838
\let\affil@cutoff\tw@
843
% \begin{macro}{\frontmatter@RRAP@format}
844
% All AIP journals use the same format for the ``Received, Revised, etc.'' block on the title page.
846
% Change note: 11.5 points b-b from author/affiliation down to date.
848
\def\frontmatter@RRAP@format{%
852
\advance\leftskip.5in\relax
853
\@totalleftmargin\leftskip
854
% \preprintsty@sw{}{\parskip.5ex\relax}%
856
\hbox\bgroup(\@gobble@leavemode@uppercase%)
860
\unskip)\egroup\@@par
864
\def\punct@RRAP{;\egroup\ \hbox\bgroup}%
865
\def\@gobble@leavemode@uppercase#1#2{\expandafter\MakeTextUppercase}%
869
% \begin{macro}{\frontmatter@PACS@format}
872
\def\frontmatter@PACS@format{%
875
\adjust@abstractwidth
882
% \begin{macro}{\frontmatter@keys@format}
885
\def\frontmatter@keys@format{%
887
\adjust@abstractwidth
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.
902
\produce@preprints\@preprint
904
\let\@evenhead\@oddhead
906
\hb@xt@\z@{\byrevtex\hss}%
908
\preprintsty@sw{\thepage}{}%
912
\let\@evenfoot\@oddfoot
914
\def\byrevtex{\byrevtex@sw{Typeset by REV\TeX and AIP}{}}%
918
% \begin{macro}{\produce@preprints}
920
\def\produce@preprints#1{%
923
\def\baselinestretch{1}%
925
\let\preprint\preprint@count
926
\count@\z@#1\@ifnum{\count@>\tw@}{%
928
\let\preprint\preprint@hlist
932
\let\preprint\preprint@cr
933
\halign{\hfil##\cr#1\crcr}%
940
\def\preprint@cr#1{#1\cr}%
941
\def\preprint@count#1{\advance\count@\@ne}%
942
\def\preprint@hlist#1{#1\hbox{, }}%
946
% \subsubsection{Lead-in paragraph}%
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.
953
\newenvironment{Lead@inParagraph}{%
956
\@afterheading\@afterindentfalse
959
\hb@xt@\hsize{\hfil\leaders\hrule\hfil\leaders\hrule\hfil\hfil}%
962
% At the beginning of the document temporarily change the meaning of
963
% the \env{quotation} environment, restoring it once the first sectioning
966
\appdef\frontmatter@init{%
967
\let@environment{quotation@ltx}{quotation}%
968
\let@environment{quotation}{Lead@inParagraph}%
970
\appdef\@startsection@hook{%
971
\let@environment{quotation}{quotation@ltx}%
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.
979
\def\@seccntformat#1{\csname the#1\endcsname.\quad}%
980
\def\@hang@from#1#2#3{#1#2#3}%
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
989
% To accomplish this, we use the \cmd\@hangfrom@\ hook, which was developed for this
998
{0.8cm \@plus1ex \@minus .2ex}%
1008
\def\@hangfrom@section#1#2#3{\@hangfrom{#1#2}\MakeTextUppercase{#3}}%
1009
\def\@hangfroms@section#1#2{#1\MakeTextUppercase{#2}}%
1012
% See, e.g., BMF\_044101\_1 (1) or BMF\_044103\_1 (1)
1019
{.8cm \@plus1ex \@minus .2ex}%
1031
% See, e.g., BMF\_044104\_1 (1), JMP\_123520\_1 (48),
1033
\def\subsubsection{%
1038
{.8cm \@plus1ex \@minus .2ex}%
1051
% \subsubsection{Runin Heads}%
1060
{\normalfont\normalsize\itshape}%
1070
{3.25ex \@plus1ex \@minus .2ex}%
1072
{\normalfont\normalsize\bfseries}%
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.
1083
\def\section@preprintsty{%
1088
{0.8cm \@plus1ex \@minus .2ex}%
1096
%\def\@hangfrom@section@preprintsty#1#2#3{\@hangfrom{#1#2}\MakeTextUppercase{#3}}%
1099
\def\subsection@preprintsty{%
1104
{.8cm \@plus1ex \@minus .2ex}%
1114
\def\subsubsection@preprintsty{%
1119
{.8cm \@plus1ex \@minus .2ex}%
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).
1140
% For theorems, etc, numbered by section, (and with theorems in the appendix)
1141
% but equations numbered throughout,
1142
% see JMP\_123301\_1 (48).
1144
% For a (roman) list in text, theorem, and proof,
1145
% see JMP\_123514\_1 (48).
1147
% For numbered list in text,
1148
% and equations numbered by section,
1149
% see JMP\_123518\_1 (48).
1151
% All AIP journals use frontmatter footnotes by default.
1153
\let\frontmatter@footnote@produce\frontmatter@footnote@produce@footnote
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.
1161
\def\@pnumwidth{1.55em}
1162
\def\@tocrmarg {2.55em}
1164
\def\ltxu@dotsep{4.5pt}
1165
\setcounter{tocdepth}{3}
1169
\def\tableofcontents{%
1170
\addtocontents{toc}{\string\tocdepth@munge}%
1172
\addtocontents{toc}{\string\tocdepth@restore}%
1177
\def\tocdepth@munge{%
1178
\let\l@section@saved\l@section
1179
\let\l@section\@gobble@tw@
1181
\def\@gobble@tw@#1#2{}%
1185
\def\tocdepth@restore{%
1186
\let\l@section\l@section@saved
1191
\def\l@part#1#2{\addpenalty{\@secpenalty}%
1193
\set@tocdim@pagenum{#2}%
1196
\rightskip\tocleft@pagenum plus 1fil\relax
1197
\skip@\parfillskip\parfillskip\z@
1198
\addvspace{2.25em plus\p@}%
1200
\leavevmode\ignorespaces#1\unskip\nobreak\hskip\skip@
1201
\hb@xt@\rightskip{\hfil\unhbox\z@}\hskip-\rightskip\hskip\z@skip
1208
% \begin{macro}{\l@section}
1209
% Determine which TOC elements are automatically indented.
1212
\def\tocdim@min{5\p@}%
1214
\l@@sections{}{section}% Implicit #3#4
1217
\addpenalty{\@secpenalty}%
1218
\addvspace{1.0em plus\p@}%
1222
\l@@sections{section}{subsection}% Implicit #3#4
1224
\def\l@subsubsection{%
1225
\l@@sections{subsection}{subsubsection}% Implicit #3#4
1227
\def\l@paragraph#1#2{}%
1228
\def\l@subparagraph#1#2{}%
1232
% Activate the auto TOC processing.
1234
\let\toc@pre\toc@pre@auto
1235
\let\toc@post\toc@post@auto
1239
\def\listoffigures{\print@toc{lof}}%
1240
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
1244
\def\listoftables{\print@toc{lot}}%
1245
\let\l@table\l@figure
1248
% \subsubsection{Default column bottom}%
1249
% All AIP journal styles have flush bottoms.
1252
\@booleanfalse\raggedcolumn@sw
1256
% \subsubsection{Table alignment style}%
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.
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}%
1279
% \subsubsection{Footnote formatting}%
1280
% We customize the formatting of footnotes for all AIP journals.
1281
% \begin{macro}{\@makefntext}
1283
\def\@makefntext#1{%
1284
\def\baselinestretch{1}%
1288
\nobreak\hskip-\leftskip
1299
% \subsubsection{Appendix}%
1300
% \begin{macro}{\appendix}
1301
% \begin{macro}{\@hangfrom@appendix}
1302
% \begin{macro}{\@hangfroms@appendix}
1303
% \begin{macro}{\@appendixcntformat}
1307
\let\@hangfrom@section\@hangfrom@appendix
1308
%\let\@hangfroms@section\@hangfroms@appendix
1309
\let\@sectioncntformat\@appendixcntformat
1311
\def\@hangfrom@appendix#1#2#3{%
1316
#2\@if@empty{#3}{}{:\ #3}%
1319
\def\@hangfroms@appendix#1#2{%
1322
\def\@appendixcntformat#1{\appendixname\ \csname the#1\endcsname}%
1329
% \subsubsection{Bibliography}%
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.
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.
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:
1349
% ORDERING OF REFERENCES: c: seq-no (references in order of Citation);
1351
% AUTHOR NAMES: i: nm-init,ed-au (Initials + surname);
1353
% NUMBER OF AUTHORS: l: max 12, min 12 (there will be three prompts total);
1355
% TYPEFACE FOR AUTHORS IN LIST OF REFERENCES: u: nmft,nmft-def (User defined author font);
1357
% FONT FOR FIRST NAMES: u: fnm-def (First names in user defined font);
1359
% EDITOR NAMES IN INCOLLECTION ETC: a: nmfted (Editors incollection like authors);
1361
% DATE FORMAT: p: yr-par (Date in parentheses);
1363
% SUPPRESS MONTH: x: xmth (Date is year only);
1365
% TITLE OF ARTICLE: i: tit-it (Title italic)
1367
% ARTICLE TITLE PRESENT: x: jtit-x (No article title);
1369
% JOURNAL NAME FONT: r: jttl-rm (Journal title normal);
1371
% TECHNICAL REPORT TITLE: b: trtit-b (Tech. report title like books);
1373
% JOURNAL VOLUME: b: vol-bf (Volume bold);
1375
% VOLUME PUNCTUATION: c: volp-com (Volume with comma);
1377
% PAGE NUMBERS: f: jpg-1 (Only start page number);
1379
% JOURNAL NAME PUNCTUATION: x: jnm-x (Space after journal);
1381
% PUBLISHER IN PARENTHESES: d: pub-date (Publisher and date in parentheses);
1383
% PUBLISHER POSITION: p: pre-pub (Publisher before chapter, pages);
1385
% ISBN NUMBER: isbn: (Include ISBN for books, booklets)
1387
% ISSN NUMBER: issn: (Include ISSN for periodicals)
1389
% EDITOR IN COLLECTIONS: b: edby (Booktitle, edited by \dots);
1391
% PUNCTUATION BETWEEN SECTIONS (BLOCKS): c: blk-com (Comma between blocks);
1393
% ABBREVIATE WORD `PAGES': a: pp (`Page' abbreviated);
1395
% ABBREVIATE WORD `EDITORS': a: ed (`Editor' abbreviated);
1397
% OTHER ABBREVIATIONS: a: abr (Abbreviations);
1399
% ABBREVIATION FOR `EDITION': a: ednx (`Edition' abbreviated as `ed');
1401
% EDITION NUMBERS: n: ord (Numerical editions);
1403
% STORED JOURNAL NAMES: a: jabr (Abbreviated journal names);
1405
% FONT OF `ET AL': i: etal-it (Italic et al);
1407
% ADDITIONAL REVTeX DATA FIELDS: r: revdata, eprint, url, url-blk (Include REVTeX data fields collaboration, eid, eprint, numpages, url)
1409
% NEW FONT SELECTION SCHEME: n: nfss (NFSS);
1411
% ADDITIONAL REVTeX DATA FIELDS: y: revdata (additional data fields);
1413
% REFERENCE COMPONENT TAGS: y: reference component tags;
1415
% URL ADDRESS: n: URL as note;
1418
% A file \file{aipnum.dbj} file equivalent to the following should result:
1422
%----------------------------------------
1423
%*** REVTeX-compatible aipnum4-1.bst 2009-10-08 ***
1426
%End of customized bst file
1429
%\askforoverwritefalse
1430
%\def\MBopts{\from{merlin.mbs}{%
1432
%\from{physjour.mbs}{\MBopta}
1433
%\from{geojour.mbs}{\MBopta}
1434
%\from{photjour.mbs}{\MBopta}
1435
%\from{merlin.mbs}{tail,\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
1506
%\generate{\file{aipnum4-1.bst}{\MBopts}}
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}:
1514
% seq-no,%: Citation order (unsorted, like unsrt.bst)
1515
% nm-init,ed-au,%: Initials + surname (J. F. Smith)
1517
% thus, the ``numbered citation'' bibliography is sorted by citation order, and
1518
% the names are give first inital, then last name.
1520
% Likewise, \file{aipauth.dbj} has one line lacking in \file{aipnum.dbj}:
1522
% nm-rev,%: Surname + comma + initials (Smith, J. F.)
1524
% Thus, the ``author-year'' bibliography is sorted by author name, and
1525
% names are given last name first, followed by initials.
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}).
1532
% \begin{macro}{\pre@bibdata}
1534
% Set up to write endnotes to a .bib file; its data will be incorporated into the bibliography.
1536
\def\pre@bibdata{\jobname\bibdata@app}%
1540
% \begin{macro}{\bibsection}
1541
% We define the sectioning command to use when starting the bibliography
1542
% (we use \cmd\refname).
1544
\def\refname{References}%
1545
\def\rtx@bibsection{%
1546
\@ifx@empty\refname{%
1547
\par\vspace{6\p@ plus 6\p@}%
1550
% The following line has been commented out:
1552
% \let\@hangfroms@section\@hang@froms
1555
\expandafter\section\expandafter*\expandafter{\refname}%
1562
% \begin{macro}{\bibpreamble}
1563
% \begin{macro}{\bibsep}
1564
% \begin{macro}{\newblock}
1566
\let\bibpreamble\@empty
1567
\appdef\setup@hook{%
1576
% \begin{macro}{\bibfont}
1577
% We define the font switch that applies to the body of the bibliography.
1580
\appdef\setup@hook{%
1582
\preprintsty@sw{}{\footnotesize}%
1583
\@clubpenalty\clubpenalty
1587
\let\place@bibnumber\place@bibnumber@sup
1592
% \subsubsection{Index}%
1594
\newenvironment{theindex}{%
1597
\c@secnumdepth-\maxdimen
1599
\section{\indexname}%
1600
\thispagestyle{plain}%
1602
\parskip\z@ plus.3\p@\relax
1608
\def\@idxitem{\par\hangindent 40\p@}
1610
\def\subitem{\par\hangindent 40\p@ \hspace*{20\p@}}
1612
\def\subsubitem{\par\hangindent 40\p@ \hspace*{30\p@}}
1614
\def\indexspace{\par \vskip 10\p@ plus5\p@ minus3\p@\relax}
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.
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.
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}%
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}%
1648
% \begin{macro}{\today}
1649
% Procedure \cmd\today\ is used in the article class, but not in
1650
% this document class.
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%
1663
% \subsection{A. Running Title}
1664
% User-provided running title \cmd\@shorttitle\ to be set.
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.
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.
1675
% \subsection{D. Author footnote}
1676
% Set short line above these footnotes.
1678
% \subsection{E. Author}
1679
% Class option \classoption{superscriptaddress} is standard.
1681
\clo@superscriptaddress
1684
% \subsection{F. Affiliations}
1687
% \subsection{G. Received date}
1690
% \subsection{H. Abstract}
1691
% Single paragraph, no indent.
1693
% \subsection{J. Lead Paragraph}
1694
% Set boldface, flush left before main text, single paragraph.
1695
% Separated from text by a short centered rule.
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.
1701
% Theorem, proof title followed by colon. Follow author.
1703
% \subsection{L. Text Footnotes}
1704
% Not permitted; use endnotes.
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.
1711
% \subsection{N. References}
1713
% Article Title usage:
1715
% Article title required in all journals with "unpublished", "to be published", "in press" and "submitted" refs.
1719
% Journal classes 1a,1b,2,4a:
1721
% Article title not allowed in published references, except in the case of "in press" or submitted" (see sample references below).
1725
% Article title allowed but not required in author-year references (use must be consistent within a single manuscript).
1729
% Article title required in all journal references and report references.
1733
% Article title allowed in journal references in author-year mode.
1735
% \subsection{O. Examples of Numerical References}
1738
% \subsection{P. References in Author-year mode}
1741
% \subsection{Q. Numbered Author-year References}
1744
% \subsection{R. Tables}
1745
% Placed within text (floated), labeled with Roman numeral.
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.
1751
% Footnotes labeled with superior lower-case letter, set below table contents.
1753
% \subsection{S. Figures}
1754
% Placed within text (floated), labeled with arabic numbers.
1756
% Caption set below figure. A citation to be set inline, not superscripted.
1758
% \subsection{Society defaults}%
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.
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.
1769
\def\@journal@default{cha}%
1770
\def\@pointsize@default{12}%
1773
% \subsection{Journal-Specific Code}%
1775
% For AIP journals, we supply code specific to JCP, POP, RSI, JAP, APL, CHA, POF, BMF, RSE, JMP.
1777
% \subsubsection{\classoption{jcp}}%
1778
%A member of the journal class 1a.
1781
\typeout{Using journal substyle \@journal.}%
1783
% Journal class 1a uses the (superscript) numerical citation style by default.
1785
\@booleanfalse\authoryear@sw
1788
% End of \classoption{jcp} code.
1793
% \subsubsection{\classoption{pop}}%
1794
%A member of the journal class 1a.
1797
\typeout{Using journal substyle \@journal.}%
1799
% Journal class 1a uses the (superscript) numerical citation style by default.
1801
\@booleanfalse\authoryear@sw
1804
% End of \classoption{pop} code.
1809
% \subsubsection{\classoption{rsi}}%
1810
%A member of the journal class 1a.
1813
\typeout{Using journal substyle \@journal.}%
1815
% Journal class 1a uses the (superscript) numerical citation style by default.
1817
\@booleanfalse\authoryear@sw
1820
% End of \classoption{rsi} code.
1825
% \subsubsection{\classoption{jap}}%
1826
%Sole member of the journal class 1b.
1831
\typeout{Using journal substyle \@journal.}%
1833
% Journal class 1b uses the (superscript) numerical citation style by default.
1835
\@booleanfalse\authoryear@sw
1836
\let\@runningtitle\@empty
1839
% End of \classoption{jap} code.
1844
% \subsubsection{\classoption{apl}}%
1845
%Sole member of the journal class 2.
1850
\typeout{Using journal substyle \@journal.}%
1852
% Journal class 2 uses the (superscript) numerical citation style by default.
1854
\@booleanfalse\authoryear@sw
1855
\let\@runningtitle\@empty
1858
% End of \classoption{apl} code.
1863
% \subsubsection{\classoption{cha}}%
1864
%Sole member of the journal class 3a.
1867
\typeout{Using journal substyle \@journal.}%
1869
% Article titles are allowed.
1871
\@booleanfalse\aip@jtitx@sw
1874
% End of \classoption{cha} code.
1879
% \subsubsection{\classoption{pof}}%
1880
%Sole member of the journal class 3b.
1883
\typeout{Using journal substyle \@journal.}%
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}.
1889
\@booleanfalse\authoryear@sw
1890
\@booleanfalse\aip@jtitx@sw
1893
% End of \classoption{pof} code.
1898
% \subsubsection{\classoption{bmf}}%
1899
% A member of the journal class 4a,
1900
% the Biomicrofluidics journal is single column.
1903
\typeout{Using journal substyle \@journal.}%
1905
% Journal class 4a uses the (superscript) numerical citation style by default.
1906
% Journal is formatted in a single column.
1908
\@booleanfalse\authoryear@sw
1909
\@booleanfalse\twocolumn@sw
1912
% End of \classoption{bmf} code.
1917
% \subsubsection{\classoption{rse}}%
1918
%A member of the journal class 4a.
1921
\typeout{Using journal substyle \@journal.}%
1923
% Journal class 4a uses the (superscript) numerical citation style by default.
1925
\@booleanfalse\authoryear@sw
1928
% End of \classoption{rse} code.
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).
1938
\typeout{Using journal substyle \@journal.}%
1940
% Article titles are allowed.
1941
% Journal is formatted in a single column.
1943
\@booleanfalse\aip@jtitx@sw
1944
\@booleanfalse\twocolumn@sw
1947
% End of \classoption{jmp} code.
1952
% \subsection{Establish AIP Defaults\label{sec:aip-defaults}}
1954
% \begin{macro}{\footinbib@sw}
1955
% All AIP journals invoke the \classoption{footinbib} option.
1957
\@booleantrue\footinbib@sw
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
1967
% select the presentation for \cmd\bibitem s
1968
% and control the \BibTeX\ processing.
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.
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.
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.
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}.
1987
\let\place@bibnumber\place@bibnumber@sup
1988
\appdef\setup@hook{%
1991
\def\@bibstyle{aipauth\substyle@post}%
1993
\def\@bibstyle{aipauth\substyle@post}%
1996
\bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
1997
\let\onlinecite\rev@citealpnum
2003
\@booleanfalse\footinbib@sw
2006
\def\NAT@cmprs{\z@}%
2007
\let\NAT@def@citea\rtx@def@citea
2008
\let\NAT@def@citea@close\rtx@def@citea@close
2012
\def\@bibstyle{aipnum\substyle@post}%
2014
\def\@bibstyle{aipnum\substyle@post}%
2016
\bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
2017
\let\onlinecite\rev@citealpnum
2020
\def\make@footnote@endnote{%
2022
\authoryear@sw{\authornum@sw{\false@sw}{\true@sw}}{\false@sw}%
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
2038
% \begin{macro}{\aipreprint}%
2039
% We want to override \filename{aps10pt.rtx}.
2046
% \begin{macro}{\aippreprint}%
2047
% We want to override \filename{aps12pt.rtx}.
2059
% %Here ends the programmer's documentation.