| 1 |
% AIP (style option to ARTICLE) for American Institute of Physics journals |
| 2 |
% AIP DOCUMENT SUBSTYLE -- released 17 January 1989 |
| 3 |
% Written by Charles Karney ([email protected]). |
| 4 |
|
| 5 |
% This document style is designed for manuscripts to be submitted to |
| 6 |
% one of the journals published by the Americal Institute of Physics. |
| 7 |
% To use this give AIP as an optional argument to \documentstyle. The |
| 8 |
% main style should be ARTICLE. E.g., |
| 9 |
% \documentstyle[12pt,aip]{article} |
| 10 |
% This provides |
| 11 |
|
| 12 |
% (1) Section numbering for AIP journals (e.g., II.B.2.) |
| 13 |
|
| 14 |
% (2) Superscript reference numbers in citation and bibliography. You |
| 15 |
% should put the references in the logically correct place, e.g., "... as |
| 16 |
% is given by Landau \cite{landau}. Next sentence ..." \cite takes care |
| 17 |
% of removing the preceding spaces and putting the reference after the |
| 18 |
% punctuation (e.g, "... Landau.$^7$ ..."). |
| 19 |
|
| 20 |
% (3) Three or more consecutive reference numbers are represented as a |
| 21 |
% range. Thus 1,3,4,5,6,8,9 is printed as 1,3--6,8,9. No sorting is |
| 22 |
% performed; i.e., 1,3,2 is printed as such. |
| 23 |
|
| 24 |
% (4) \citenum and \citea give you more control over the appearance of |
| 25 |
% the citations. \citenum emits the plain citation number without |
| 26 |
% ornament as in "... as shown in Ref.~\citenum{foo}.". \citea puts it's |
| 27 |
% argument into the ornamentation for citations. Thus \cite{foo} is |
| 28 |
% equivalent to \citea{\citenum{foo}}. |
| 29 |
|
| 30 |
% (5) The \maketitle command puts the "date" at the top. Typical usage is |
| 31 |
% \begin{document} |
| 32 |
% \date{PPPL--2128 (1984)} |
| 33 |
% \title{Efficiency of Current Drive by Fast Waves} |
| 34 |
% \author{Charles F. F. Karney and Nathaniel J. Fisch\\ |
| 35 |
% Plasma Physics Laboratory, Princeton University\\Princeton, NJ 08543} |
| 36 |
% \maketitle |
| 37 |
% \begin{abstract} |
| 38 |
% etc. |
| 39 |
|
| 40 |
% (6) Abstract appears full size. Abstract is labeled ``Abstract'' unless |
| 41 |
% the ``abstract*'' environment is used. Section I begins on a new page. |
| 42 |
|
| 43 |
% (7) First paragraph of sections, etc., is normally indented. |
| 44 |
|
| 45 |
% (8) In appendices equations are numbered as B2 etc. |
| 46 |
|
| 47 |
% (9) Appendix appears in the section title for appendices. A period is |
| 48 |
% put after the section or appendix number. E.g., I. Introduction. |
| 49 |
|
| 50 |
% (10) The ``thefigures'' and ``thetables'' environments are defined |
| 51 |
% analogously to ``thebibliography''. This allows you the put the figure |
| 52 |
% captions and tables at the end of the document. The entries are |
| 53 |
% preceded by \figitem{<label>} and \tableitem{<label>} respectively. |
| 54 |
% (This doesn't interfer with LaTeX's figure and table environments for |
| 55 |
% inserting figures within the text.) ``thefigures'' is used as follows: |
| 56 |
% \begin{thefigures}{99} |
| 57 |
% \figitem{coords} The coordinate system used in this work. |
| 58 |
% etc. |
| 59 |
% \end{thefigures} |
| 60 |
% Figures and tables are refered to by the \ref mechanism. E.g., |
| 61 |
% Fig.~\ref{coords}. |
| 62 |
% The starred versions of these environments, e.g., ``thefigures*'' causes |
| 63 |
% the heading to appear in the singular, i.e., ``Figure'' instead of |
| 64 |
% ``Figures''. |
| 65 |
|
| 66 |
% (11) The first appendix, the references, figure captions, and tables |
| 67 |
% all start on on new pages. |
| 68 |
|
| 69 |
% (12) \appendix* causes the appendices to be unnumbered. This is normally |
| 70 |
% only sensible if you have just one appendix. It is labeled ``Appendix.'' |
| 71 |
% instead of ``Appendix A.'' The equation numbered are still labeled A3 etc. |
| 72 |
|
| 73 |
\typeout{Document Substyle 'AIP'. Released 17 January 1989} |
| 74 |
|
| 75 |
\def\thesection {\Roman{section}} |
| 76 |
\def\thesubsection {\Alph{subsection}} |
| 77 |
\def\thesubsubsection {\arabic{subsubsection}} |
| 78 |
|
| 79 |
\def\thebibliography#1{\par\clearpage\section*{References\@mkboth |
| 80 |
{REFERENCES}{REFERENCES}}\list |
| 81 |
{$\m@th^{\arabic{enumi}}$}{\settowidth\labelwidth{$\m@th^{#1}$}% |
| 82 |
\labelsep0pt\leftmargin\parindent |
| 83 |
\itemindent-\leftmargin\advance\itemindent\labelwidth |
| 84 |
\usecounter{enumi}} |
| 85 |
\def\newblock{\hskip .11em plus .33em minus -.07em} |
| 86 |
\sloppy |
| 87 |
\sfcode`\.=1000\relax} |
| 88 |
|
| 89 |
% Superscript citations -- skip optional arg to \cite |
| 90 |
% Move citation after period and comma. |
| 91 |
\def\@cite#1#2{\unskip\nobreak\relax |
| 92 |
\def\@tempa{$\m@th^{\hbox{\the\scriptfont0 #1}}$}% |
| 93 |
\futurelet\@tempc\@citexx} |
| 94 |
\def\@citexx{\ifx.\@tempc\let\@tempd=\@citepunct\else |
| 95 |
\ifx,\@tempc\let\@tempd=\@citepunct\else |
| 96 |
\let\@tempd=\@tempa\fi\fi\@tempd} |
| 97 |
\def\@citepunct{\@tempc\edef\@sf{\spacefactor=\the\spacefactor\relax}\@tempa |
| 98 |
\@sf\@gobble} |
| 99 |
|
| 100 |
% \citenum emits the plain citation number without ornament |
| 101 |
% \citea puts it's argument into the ornamentation for citations |
| 102 |
% thus \cite{foo} is equivalent to \citea{\citenum{foo}} |
| 103 |
\def\citenum#1{{\def\@cite##1##2{##1}\cite{#1}}} |
| 104 |
\def\citea#1{\@cite{#1}{}} |
| 105 |
|
| 106 |
% Collapse citation numbers to ranges. Non-numeric and undefined labels |
| 107 |
% are handled. No sorting is done. E.g., 1,3,2,3,4,5,foo,1,2,3,?,4,5 |
| 108 |
% gives 1,3,2-5,foo,1-3,?,4,5 |
| 109 |
\newcount\@tempcntc |
| 110 |
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi |
| 111 |
\@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do |
| 112 |
{\@ifundefined |
| 113 |
{b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bf ?}\@warning |
| 114 |
{Citation `\@citeb' on page \thepage \space undefined}}% |
| 115 |
{\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}% |
| 116 |
\ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne |
| 117 |
\@citea\def\@citea{,}\hbox{\csname b@\@citeb\endcsname}% |
| 118 |
\else |
| 119 |
\advance\@tempcntb\@ne |
| 120 |
\ifnum\@tempcntb=\@tempcntc |
| 121 |
\else\advance\@tempcntb\m@ne\@citeo |
| 122 |
\@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}} |
| 123 |
\def\@citeo{\ifnum\@tempcnta>\@tempcntb\else\@citea\def\@citea{,}% |
| 124 |
\ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else |
| 125 |
{\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else \def\@citea{--}\fi |
| 126 |
\advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi} |
| 127 |
|
| 128 |
% Title page |
| 129 |
\def\@maketitle{\newpage |
| 130 |
\null |
| 131 |
\vskip 1em plus 2em minus 1em % Vertical space before date. |
| 132 |
\ifx\@date\@empty\else |
| 133 |
\begin{flushright} |
| 134 |
{\normalsize \@date} % Date set in \large size. |
| 135 |
\end{flushright} |
| 136 |
\vskip 2em plus 2em minus 1em % Vertical space above title. |
| 137 |
\fi |
| 138 |
\begin{center} |
| 139 |
{\Large\bf \@title \par} % Title set in \Large size. |
| 140 |
\vskip 1.5em plus 0em minus .5em % Vertical space after title. |
| 141 |
{\large % each author set in \large, in a |
| 142 |
\lineskip .5em plus 0em minus .3em % tabular environment |
| 143 |
\begin{tabular}[t]{c}\@author |
| 144 |
\end{tabular}\par} |
| 145 |
\end{center} |
| 146 |
\par |
| 147 |
\vskip 1.5em plus .5em minus .5em} % Vertical space after author. |
| 148 |
|
| 149 |
\newif\if@starvariant \@starvariantfalse |
| 150 |
|
| 151 |
\def\abstract{\if@starvariant\else\section*{Abstract}\fi} |
| 152 |
\def\endabstract{\par\clearpage} |
| 153 |
|
| 154 |
\@namedef{abstract*}{\@starvarianttrue\abstract} |
| 155 |
\@namedef{endabstract*}{\endabstract} |
| 156 |
|
| 157 |
\parskip 1.5pt plus 1.5pt % Extra vertical space between paragraphs. |
| 158 |
\tabcolsep 12pt % Double column separation in tables |
| 159 |
|
| 160 |
\def\section{\@startsection {section}{1}{\z@}{3.5ex plus 1ex minus |
| 161 |
.2ex}{2.3ex plus .2ex}{\large\bf}} |
| 162 |
\def\subsection{\@startsection{subsection}{2}{\z@}{3.25ex plus 1ex minus |
| 163 |
.2ex}{1.5ex plus .2ex}{\large\bf}} |
| 164 |
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{3.25ex plus |
| 165 |
1ex minus .2ex}{1.5ex plus .2ex}{\normalsize\bf}} |
| 166 |
|
| 167 |
\newif\if@numbersec \@numbersectrue |
| 168 |
\def\appendix{\par\clearpage |
| 169 |
\setcounter{section}{0} |
| 170 |
\setcounter{subsection}{0} |
| 171 |
\@addtoreset{equation}{section} |
| 172 |
\def\theequation{\thesection\arabic{equation}} |
| 173 |
\def\thesection{\Alph{section}} |
| 174 |
\def\thesubsection{\arabic{subsection}} |
| 175 |
\@ifstar{\def\@sectname{Appendix}\@numbersecfalse} |
| 176 |
{\def\@sectname{Appendix~}\@numbersectrue}} |
| 177 |
|
| 178 |
% Figures |
| 179 |
\def\thefigures#1{\par\clearpage |
| 180 |
\if@starvariant\section*{Figure\@mkboth |
| 181 |
{FIGURE}{FIGURE}}\else |
| 182 |
\section*{Figures\@mkboth |
| 183 |
{FIGURES}{FIGURES}}\fi |
| 184 |
\list |
| 185 |
{FIG.~\arabic{enumi}.}{\labelwidth\parindent\advance\labelwidth -\labelsep |
| 186 |
\leftmargin\parindent\usecounter{enumi}}} |
| 187 |
\def\figitem#1{\item\label{#1}} |
| 188 |
\let\endthefigures=\endlist |
| 189 |
|
| 190 |
\@namedef{thefigures*}{\@starvarianttrue\thefigures} |
| 191 |
\@namedef{endthefigures*}{\endthefigures} |
| 192 |
|
| 193 |
% Tables |
| 194 |
\def\thetables#1{\par\clearpage |
| 195 |
\if@starvariant\section*{Table\@mkboth |
| 196 |
{TABLE}{TABLE}}\else |
| 197 |
\section*{Tables\@mkboth |
| 198 |
{TABLES}{TABLES}}\fi |
| 199 |
\list |
| 200 |
{TABLE~\Roman{enumi}.}{\labelwidth-\labelsep |
| 201 |
\leftmargin0pt\usecounter{enumi}% |
| 202 |
\def\theenumi{\Roman{enumi}}}} |
| 203 |
\def\tableitem#1{\item\label{#1}} |
| 204 |
\let\endthetables=\endlist |
| 205 |
|
| 206 |
\@namedef{thetables*}{\@starvarianttrue\thetables} |
| 207 |
\@namedef{endthetables*}{\endthetables} |
| 208 |
|
| 209 |
% Put period after section number and allow for APPENDIX prefix. |
| 210 |
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth |
| 211 |
\def\@svsec{}\else |
| 212 |
\refstepcounter{#1}\edef\@svsec{\ifnum #2=1 \@sectname |
| 213 |
\if@numbersec\csname the#1\endcsname\fi.\else |
| 214 |
\csname the#1\endcsname.\fi |
| 215 |
\hskip 1em }\fi |
| 216 |
\@tempskipa #5\relax |
| 217 |
\ifdim \@tempskipa>\z@ |
| 218 |
\begingroup #6\relax |
| 219 |
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par} |
| 220 |
\endgroup |
| 221 |
\csname #1mark\endcsname{#7}\addcontentsline |
| 222 |
{toc}{#1}{\ifnum #2>\c@secnumdepth \else |
| 223 |
\protect\numberline{\csname the#1\endcsname}\fi |
| 224 |
#7}\else |
| 225 |
\def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname |
| 226 |
{#7}\addcontentsline |
| 227 |
{toc}{#1}{\ifnum #2>\c@secnumdepth \else |
| 228 |
\protect\numberline{\csname the#1\endcsname}\fi |
| 229 |
#7}}\fi |
| 230 |
\@xsect{#5}} |
| 231 |
|
| 232 |
\def\@sectname{} |
| 233 |
|
| 234 |
\endinput |