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