| 1 |
% ****** Start of file aipsamp.tex ****** |
| 2 |
% |
| 3 |
% This file is part of the AIP files in the AIP distribution for REVTeX 4. |
| 4 |
% Version 4.2a of REVTeX, December 2014 |
| 5 |
% |
| 6 |
% Copyright (c) 2014 American Institute of Physics. |
| 7 |
% |
| 8 |
% See the AIP README file for restrictions and more information. |
| 9 |
% |
| 10 |
% TeX'ing this file requires that you have AMS-LaTeX 2.0 installed |
| 11 |
% as well as the rest of the prerequisites for REVTeX 4.2 |
| 12 |
% |
| 13 |
% It also requires running BibTeX. The commands are as follows: |
| 14 |
% |
| 15 |
% 1) latex aipsamp |
| 16 |
% 2) bibtex aipsamp |
| 17 |
% 3) latex aipsamp |
| 18 |
% 4) latex aipsamp |
| 19 |
% |
| 20 |
% Use this file as a source of example code for your aip document. |
| 21 |
% Use the file aiptemplate.tex as a template for your document. |
| 22 |
\documentclass[% |
| 23 |
aip, |
| 24 |
jmp,% |
| 25 |
amsmath,amssymb, |
| 26 |
%preprint,% |
| 27 |
reprint,% |
| 28 |
%author-year,% |
| 29 |
%author-numerical,% |
| 30 |
]{revtex4-2} |
| 31 |
|
| 32 |
\usepackage{graphicx}% Include figure files |
| 33 |
\usepackage{dcolumn}% Align table columns on decimal point |
| 34 |
\usepackage{bm}% bold math |
| 35 |
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math |
| 36 |
%\linenumbers\relax % Commence numbering lines |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
|
| 40 |
\preprint{AIP/123-QED} |
| 41 |
|
| 42 |
\title[Sample title]{Sample Title:\\with Forced Linebreak\footnote{Error!}}% Force line breaks with \\ |
| 43 |
\thanks{Footnote to title of article.} |
| 44 |
|
| 45 |
\author{A. Author} |
| 46 |
\altaffiliation[Also at ]{Physics Department, XYZ University.}%Lines break automatically or can be forced with \\ |
| 47 |
\author{B. Author}% |
| 48 |
\email{[email protected].} |
| 49 |
\affiliation{ |
| 50 |
Authors' institution and/or address%\\This line break forced with \textbackslash\textbackslash |
| 51 |
}% |
| 52 |
|
| 53 |
\author{C. Author} |
| 54 |
\homepage{http://www.Second.institution.edu/~Charlie.Author.} |
| 55 |
\affiliation{% |
| 56 |
Second institution and/or address%\\This line break forced% with \\ |
| 57 |
}% |
| 58 |
|
| 59 |
\date{\today}% It is always \today, today, |
| 60 |
% but any date may be explicitly specified |
| 61 |
|
| 62 |
\begin{abstract} |
| 63 |
An article usually includes an abstract, a concise summary of the work |
| 64 |
covered at length in the main body of the article. It is used for |
| 65 |
secondary publications and for information retrieval purposes. |
| 66 |
% |
| 67 |
\end{abstract} |
| 68 |
|
| 69 |
\keywords{Suggested keywords}%Use showkeys class option if keyword |
| 70 |
%display desired |
| 71 |
\maketitle |
| 72 |
|
| 73 |
\begin{quotation} |
| 74 |
The ``lead paragraph'' is encapsulated with the \LaTeX\ |
| 75 |
\verb+quotation+ environment and is formatted as a single paragraph before the first section heading. |
| 76 |
(The \verb+quotation+ environment reverts to its usual meaning after the first sectioning command.) |
| 77 |
Note that numbered references are allowed in the lead paragraph. |
| 78 |
% |
| 79 |
The lead paragraph will only be found in an article being prepared for the journal \textit{Chaos}. |
| 80 |
\end{quotation} |
| 81 |
|
| 82 |
\section{\label{sec:level1}First-level heading:\protect\\ The line |
| 83 |
break was forced \lowercase{via} \textbackslash\textbackslash} |
| 84 |
|
| 85 |
This sample document demonstrates proper use of REV\TeX~4.2 (and |
| 86 |
\LaTeXe) in manuscripts prepared for submission to AIP |
| 87 |
journals. Further information can be found in the documentation included in the distribution or available at |
| 88 |
\url{http://authors.aip.org} and in the documentation for |
| 89 |
REV\TeX~4.2 itself. |
| 90 |
|
| 91 |
When commands are referred to in this example file, they are always |
| 92 |
shown with their required arguments, using normal \TeX{} format. In |
| 93 |
this format, \verb+#1+, \verb+#2+, etc. stand for required |
| 94 |
author-supplied arguments to commands. For example, in |
| 95 |
\verb+\section{#1}+ the \verb+#1+ stands for the title text of the |
| 96 |
author's section heading, and in \verb+\title{#1}+ the \verb+#1+ |
| 97 |
stands for the title text of the paper. |
| 98 |
|
| 99 |
Line breaks in section headings at all levels can be introduced using |
| 100 |
\textbackslash\textbackslash. A blank input line tells \TeX\ that the |
| 101 |
paragraph has ended. |
| 102 |
|
| 103 |
\subsection{\label{sec:level2}Second-level heading: Formatting} |
| 104 |
|
| 105 |
This file may be formatted in both the \texttt{preprint} (the default) and |
| 106 |
\texttt{reprint} styles; the latter format may be used to |
| 107 |
mimic final journal output. Either format may be used for submission |
| 108 |
purposes; however, for peer review and production, AIP will format the |
| 109 |
article using the \texttt{preprint} class option. Hence, it is |
| 110 |
essential that authors check that their manuscripts format acceptably |
| 111 |
under \texttt{preprint}. Manuscripts submitted to AIP that do not |
| 112 |
format correctly under the \texttt{preprint} option may be delayed in |
| 113 |
both the editorial and production processes. |
| 114 |
|
| 115 |
The \texttt{widetext} environment will make the text the width of the |
| 116 |
full page, as on page~\pageref{eq:wideeq}. (Note the use the |
| 117 |
\verb+\pageref{#1}+ to get the page number right automatically.) The |
| 118 |
width-changing commands only take effect in \texttt{twocolumn} |
| 119 |
formatting. It has no effect if \texttt{preprint} formatting is chosen |
| 120 |
instead. |
| 121 |
|
| 122 |
\subsubsection{\label{sec:level3}Third-level heading: Citations and Footnotes} |
| 123 |
|
| 124 |
Citations in text refer to entries in the Bibliography; |
| 125 |
they use the commands \verb+\cite{#1}+ or \verb+\onlinecite{#1}+. |
| 126 |
Because REV\TeX\ uses the \verb+natbib+ package of Patrick Daly, |
| 127 |
its entire repertoire of commands are available in your document; |
| 128 |
see the \verb+natbib+ documentation for further details. |
| 129 |
The argument of \verb+\cite+ is a comma-separated list of \emph{keys}; |
| 130 |
a key may consist of letters and numerals. |
| 131 |
|
| 132 |
By default, citations are numerical; \cite{feyn54} author-year citations are an option. |
| 133 |
To give a textual citation, use \verb+\onlinecite{#1}+: (Refs.~\onlinecite{witten2001,epr,Bire82}). |
| 134 |
REV\TeX\ ``collapses'' lists of consecutive numerical citations when appropriate. |
| 135 |
REV\TeX\ provides the ability to properly punctuate textual citations in author-year style; |
| 136 |
this facility works correctly with numerical citations only with \texttt{natbib}'s compress option turned off. |
| 137 |
To illustrate, we cite several together \cite{feyn54,witten2001,epr,Berman1983}, |
| 138 |
and once again (Refs.~\onlinecite{epr,feyn54,Bire82,Berman1983}). |
| 139 |
Note that, when numerical citations are used, the references were sorted into the same order they appear in the bibliography. |
| 140 |
|
| 141 |
A reference within the bibliography is specified with a \verb+\bibitem{#1}+ command, |
| 142 |
where the argument is the citation key mentioned above. |
| 143 |
\verb+\bibitem{#1}+ commands may be crafted by hand or, preferably, |
| 144 |
generated by using Bib\TeX. |
| 145 |
The AIP styles for REV\TeX~4 include Bib\TeX\ style files |
| 146 |
\verb+aipnum.bst+ and \verb+aipauth.bst+, appropriate for |
| 147 |
numbered and author-year bibliographies, |
| 148 |
respectively. |
| 149 |
REV\TeX~4 will automatically choose the style appropriate for |
| 150 |
the document's selected class options: the default is numerical, and |
| 151 |
you obtain the author-year style by specifying a class option of \verb+author-year+. |
| 152 |
|
| 153 |
This sample file demonstrates a simple use of Bib\TeX\ |
| 154 |
via a \verb+\bibliography+ command referencing the \verb+aipsamp.bib+ file. |
| 155 |
Running Bib\TeX\ (in this case \texttt{bibtex |
| 156 |
aipsamp}) after the first pass of \LaTeX\ produces the file |
| 157 |
\verb+aipsamp.bbl+ which contains the automatically formatted |
| 158 |
\verb+\bibitem+ commands (including extra markup information via |
| 159 |
\verb+\bibinfo+ commands). If not using Bib\TeX, the |
| 160 |
\verb+thebibiliography+ environment should be used instead. |
| 161 |
|
| 162 |
\paragraph{Fourth-level heading is run in.}% |
| 163 |
Footnotes are produced using the \verb+\footnote{#1}+ command. |
| 164 |
Numerical style citations put footnotes into the |
| 165 |
bibliography\footnote{Automatically placing footnotes into the bibliography requires using BibTeX to compile the bibliography.}. |
| 166 |
Author-year and numerical author-year citation styles (each for its own reason) cannot use this method. |
| 167 |
Note: due to the method used to place footnotes in the bibliography, \emph{you |
| 168 |
must re-run BibTeX every time you change any of your document's |
| 169 |
footnotes}. |
| 170 |
|
| 171 |
\section{Math and Equations} |
| 172 |
Inline math may be typeset using the \verb+$+ delimiters. Bold math |
| 173 |
symbols may be achieved using the \verb+bm+ package and the |
| 174 |
\verb+\bm{#1}+ command it supplies. For instance, a bold $\alpha$ can |
| 175 |
be typeset as \verb+$\bm{\alpha}$+ giving $\bm{\alpha}$. Fraktur and |
| 176 |
Blackboard (or open face or double struck) characters should be |
| 177 |
typeset using the \verb+\mathfrak{#1}+ and \verb+\mathbb{#1}+ commands |
| 178 |
respectively. Both are supplied by the \texttt{amssymb} package. For |
| 179 |
example, \verb+$\mathbb{R}$+ gives $\mathbb{R}$ and |
| 180 |
\verb+$\mathfrak{G}$+ gives $\mathfrak{G}$ |
| 181 |
|
| 182 |
In \LaTeX\ there are many different ways to display equations, and a |
| 183 |
few preferred ways are noted below. Displayed math will center by |
| 184 |
default. Use the class option \verb+fleqn+ to flush equations left. |
| 185 |
|
| 186 |
Below we have numbered single-line equations, the most common kind: |
| 187 |
\begin{eqnarray} |
| 188 |
\chi_+(p)\alt{\bf [}2|{\bf p}|(|{\bf p}|+p_z){\bf ]}^{-1/2} |
| 189 |
\left( |
| 190 |
\begin{array}{c} |
| 191 |
|{\bf p}|+p_z\\ |
| 192 |
px+ip_y |
| 193 |
\end{array}\right)\;, |
| 194 |
\\ |
| 195 |
\left\{% |
| 196 |
\openone234567890abc123\alpha\beta\gamma\delta1234556\alpha\beta |
| 197 |
\frac{1\sum^{a}_{b}}{A^2}% |
| 198 |
\right\}% |
| 199 |
\label{eq:one}. |
| 200 |
\end{eqnarray} |
| 201 |
Note the open one in Eq.~(\ref{eq:one}). |
| 202 |
|
| 203 |
Not all numbered equations will fit within a narrow column this |
| 204 |
way. The equation number will move down automatically if it cannot fit |
| 205 |
on the same line with a one-line equation: |
| 206 |
\begin{equation} |
| 207 |
\left\{ |
| 208 |
ab12345678abc123456abcdef\alpha\beta\gamma\delta1234556\alpha\beta |
| 209 |
\frac{1\sum^{a}_{b}}{A^2}% |
| 210 |
\right\}. |
| 211 |
\end{equation} |
| 212 |
|
| 213 |
When the \verb+\label{#1}+ command is used [cf. input for |
| 214 |
Eq.~(\ref{eq:one})], the equation can be referred to in text without |
| 215 |
knowing the equation number that \TeX\ will assign to it. Just |
| 216 |
use \verb+\ref{#1}+, where \verb+#1+ is the same name that used in |
| 217 |
the \verb+\label{#1}+ command. |
| 218 |
|
| 219 |
Unnumbered single-line equations can be typeset |
| 220 |
using the \verb+\[+, \verb+\]+ format: |
| 221 |
\[g^+g^+ \rightarrow g^+g^+g^+g^+ \dots ~,~~q^+q^+\rightarrow |
| 222 |
q^+g^+g^+ \dots ~. \] |
| 223 |
|
| 224 |
\subsection{Multiline equations} |
| 225 |
|
| 226 |
Multiline equations are obtained by using the \verb+eqnarray+ |
| 227 |
environment. Use the \verb+\nonumber+ command at the end of each line |
| 228 |
to avoid assigning a number: |
| 229 |
\begin{eqnarray} |
| 230 |
{\cal M}=&&ig_Z^2(4E_1E_2)^{1/2}(l_i^2)^{-1} |
| 231 |
\delta_{\sigma_1,-\sigma_2} |
| 232 |
(g_{\sigma_2}^e)^2\chi_{-\sigma_2}(p_2)\nonumber\\ |
| 233 |
&&\times |
| 234 |
[\epsilon_jl_i\epsilon_i]_{\sigma_1}\chi_{\sigma_1}(p_1), |
| 235 |
\end{eqnarray} |
| 236 |
\begin{eqnarray} |
| 237 |
\sum \vert M^{\text{viol}}_g \vert ^2&=&g^{2n-4}_S(Q^2)~N^{n-2} |
| 238 |
(N^2-1)\nonumber \\ |
| 239 |
& &\times \left( \sum_{i<j}\right) |
| 240 |
\sum_{\text{perm}} |
| 241 |
\frac{1}{S_{12}} |
| 242 |
\frac{1}{S_{12}} |
| 243 |
\sum_\tau c^f_\tau~. |
| 244 |
\end{eqnarray} |
| 245 |
\textbf{Note:} Do not use \verb+\label{#1}+ on a line of a multiline |
| 246 |
equation if \verb+\nonumber+ is also used on that line. Incorrect |
| 247 |
cross-referencing will result. Notice the use \verb+\text{#1}+ for |
| 248 |
using a Roman font within a math environment. |
| 249 |
|
| 250 |
To set a multiline equation without \emph{any} equation |
| 251 |
numbers, use the \verb+\begin{eqnarray*}+, |
| 252 |
\verb+\end{eqnarray*}+ format: |
| 253 |
\begin{eqnarray*} |
| 254 |
\sum \vert M^{\text{viol}}_g \vert ^2&=&g^{2n-4}_S(Q^2)~N^{n-2} |
| 255 |
(N^2-1)\\ |
| 256 |
& &\times \left( \sum_{i<j}\right) |
| 257 |
\left( |
| 258 |
\sum_{\text{perm}}\frac{1}{S_{12}S_{23}S_{n1}} |
| 259 |
\right) |
| 260 |
\frac{1}{S_{12}}~. |
| 261 |
\end{eqnarray*} |
| 262 |
To obtain numbers not normally produced by the automatic numbering, |
| 263 |
use the \verb+\tag{#1}+ command, where \verb+#1+ is the desired |
| 264 |
equation number. For example, to get an equation number of |
| 265 |
(\ref{eq:mynum}), |
| 266 |
\begin{equation} |
| 267 |
g^+g^+ \rightarrow g^+g^+g^+g^+ \dots ~,~~q^+q^+\rightarrow |
| 268 |
q^+g^+g^+ \dots ~. \tag{2.6$'$}\label{eq:mynum} |
| 269 |
\end{equation} |
| 270 |
|
| 271 |
A few notes on \verb=\tag{#1}=. \verb+\tag{#1}+ requires |
| 272 |
\texttt{amsmath}. The \verb+\tag{#1}+ must come before the |
| 273 |
\verb+\label{#1}+, if any. The numbering set with \verb+\tag{#1}+ is |
| 274 |
\textit{transparent} to the automatic numbering in REV\TeX{}; |
| 275 |
therefore, the number must be known ahead of time, and it must be |
| 276 |
manually adjusted if other equations are added. \verb+\tag{#1}+ works |
| 277 |
with both single-line and multiline equations. \verb+\tag{#1}+ should |
| 278 |
only be used in exceptional case - do not use it to number all |
| 279 |
equations in a paper. |
| 280 |
|
| 281 |
Enclosing single-line and multiline equations in |
| 282 |
\verb+\begin{subequations}+ and \verb+\end{subequations}+ will produce |
| 283 |
a set of equations that are ``numbered'' with letters, as shown in |
| 284 |
Eqs.~(\ref{subeq:1}) and (\ref{subeq:2}) below: |
| 285 |
\begin{subequations} |
| 286 |
\label{eq:whole} |
| 287 |
\begin{equation} |
| 288 |
\left\{ |
| 289 |
abc123456abcdef\alpha\beta\gamma\delta1234556\alpha\beta |
| 290 |
\frac{1\sum^{a}_{b}}{A^2} |
| 291 |
\right\},\label{subeq:1} |
| 292 |
\end{equation} |
| 293 |
\begin{eqnarray} |
| 294 |
{\cal M}=&&ig_Z^2(4E_1E_2)^{1/2}(l_i^2)^{-1} |
| 295 |
(g_{\sigma_2}^e)^2\chi_{-\sigma_2}(p_2)\nonumber\\ |
| 296 |
&&\times |
| 297 |
[\epsilon_i]_{\sigma_1}\chi_{\sigma_1}(p_1).\label{subeq:2} |
| 298 |
\end{eqnarray} |
| 299 |
\end{subequations} |
| 300 |
Putting a \verb+\label{#1}+ command right after the |
| 301 |
\verb+\begin{subequations}+, allows one to |
| 302 |
reference all the equations in a subequations environment. For |
| 303 |
example, the equations in the preceding subequations environment were |
| 304 |
Eqs.~(\ref{eq:whole}). |
| 305 |
|
| 306 |
\subsubsection{Wide equations} |
| 307 |
The equation that follows is set in a wide format, i.e., it spans |
| 308 |
across the full page. The wide format is reserved for long equations |
| 309 |
that cannot be easily broken into four lines or less: |
| 310 |
\begin{widetext} |
| 311 |
\begin{equation} |
| 312 |
{\cal R}^{(\text{d})}= |
| 313 |
g_{\sigma_2}^e |
| 314 |
\left( |
| 315 |
\frac{[\Gamma^Z(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2} |
| 316 |
+\frac{[\Gamma^Z(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2} |
| 317 |
\right) |
| 318 |
+ x_WQ_e |
| 319 |
\left( |
| 320 |
\frac{[\Gamma^\gamma(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2} |
| 321 |
+\frac{[\Gamma^\gamma(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2} |
| 322 |
\right)\;. \label{eq:wideeq} |
| 323 |
\end{equation} |
| 324 |
\end{widetext} |
| 325 |
This is typed to show the output is in wide format. |
| 326 |
(Since there is no input line between \verb+\equation+ and |
| 327 |
this paragraph, there is no paragraph indent for this paragraph.) |
| 328 |
\section{Cross-referencing} |
| 329 |
REV\TeX{} will automatically number sections, equations, figure |
| 330 |
captions, and tables. In order to reference them in text, use the |
| 331 |
\verb+\label{#1}+ and \verb+\ref{#1}+ commands. To reference a |
| 332 |
particular page, use the \verb+\pageref{#1}+ command. |
| 333 |
|
| 334 |
The \verb+\label{#1}+ should appear in a section heading, within an |
| 335 |
equation, or in a table or figure caption. The \verb+\ref{#1}+ command |
| 336 |
is used in the text where the citation is to be displayed. Some |
| 337 |
examples: Section~\ref{sec:level1} on page~\pageref{sec:level1}, |
| 338 |
Table~\ref{tab:table1},% |
| 339 |
\begin{table} |
| 340 |
\caption{\label{tab:table1}This is a narrow table which fits into a |
| 341 |
text column when using \texttt{twocolumn} formatting. Note that |
| 342 |
REV\TeX~4 adjusts the intercolumn spacing so that the table fills the |
| 343 |
entire width of the column. Table captions are numbered |
| 344 |
automatically. This table illustrates left-aligned, centered, and |
| 345 |
right-aligned columns. } |
| 346 |
\begin{ruledtabular} |
| 347 |
\begin{tabular}{lcr} |
| 348 |
Left\footnote{Note a.}&Centered\footnote{Note b.}&Right\\ |
| 349 |
\hline |
| 350 |
1 & 2 & 3\\ |
| 351 |
10 & 20 & 30\\ |
| 352 |
100 & 200 & 300\\ |
| 353 |
\end{tabular} |
| 354 |
\end{ruledtabular} |
| 355 |
\end{table} |
| 356 |
and Fig.~\ref{fig:epsart}. |
| 357 |
|
| 358 |
\section{Figures and Tables} |
| 359 |
Figures and tables are typically ``floats''; \LaTeX\ determines their |
| 360 |
final position via placement rules. |
| 361 |
\LaTeX\ isn't always successful in automatically placing floats where you wish them. |
| 362 |
|
| 363 |
Figures are marked up with the \texttt{figure} environment, the content of which |
| 364 |
imports the image (\verb+\includegraphics+) followed by the figure caption (\verb+\caption+). |
| 365 |
The argument of the latter command should itself contain a \verb+\label+ command if you |
| 366 |
wish to refer to your figure with \verb+\ref+. |
| 367 |
|
| 368 |
Import your image using either the \texttt{graphics} or |
| 369 |
\texttt{graphix} packages. These packages both define the |
| 370 |
\verb+\includegraphics{#1}+ command, but they differ in the optional |
| 371 |
arguments for specifying the orientation, scaling, and translation of the figure. |
| 372 |
Fig.~\ref{fig:epsart}% |
| 373 |
\begin{figure} |
| 374 |
\includegraphics{fig_1}% Here is how to import EPS art |
| 375 |
\caption{\label{fig:epsart} A figure caption. The figure captions are |
| 376 |
automatically numbered.} |
| 377 |
\end{figure} |
| 378 |
is small enough to fit in a single column, while |
| 379 |
Fig.~\ref{fig:wide}% |
| 380 |
\begin{figure*} |
| 381 |
\includegraphics{fig_2}% Here is how to import EPS art |
| 382 |
\caption{\label{fig:wide}Use the \texttt{figure*} environment to get a wide |
| 383 |
figure, spanning the page in \texttt{twocolumn} formatting.} |
| 384 |
\end{figure*} |
| 385 |
is too wide for a single column, |
| 386 |
so instead the \texttt{figure*} environment has been used. |
| 387 |
|
| 388 |
The analog of the \texttt{figure} environment is \texttt{table}, which uses |
| 389 |
the same \verb+\caption+ command. |
| 390 |
However, you should type your caption command first within the \texttt{table}, |
| 391 |
instead of last as you did for \texttt{figure}. |
| 392 |
|
| 393 |
The heart of any table is the \texttt{tabular} environment, |
| 394 |
which represents the table content as a (vertical) sequence of table rows, |
| 395 |
each containing a (horizontal) sequence of table cells. |
| 396 |
Cells are separated by the \verb+&+ character; |
| 397 |
the row terminates with \verb+\\+. |
| 398 |
The required argument for the \texttt{tabular} environment |
| 399 |
specifies how data are displayed in each of the columns. |
| 400 |
For instance, a column |
| 401 |
may be centered (\verb+c+), left-justified (\verb+l+), right-justified (\verb+r+), |
| 402 |
or aligned on a decimal point (\verb+d+). |
| 403 |
(Table~\ref{tab:table4}% |
| 404 |
\begin{table} |
| 405 |
\caption{\label{tab:table4}Numbers in columns Three--Five have been |
| 406 |
aligned by using the ``d'' column specifier (requires the |
| 407 |
\texttt{dcolumn} package). |
| 408 |
Non-numeric entries (those entries without |
| 409 |
a ``.'') in a ``d'' column are aligned on the decimal point. |
| 410 |
Use the |
| 411 |
``D'' specifier for more complex layouts. } |
| 412 |
\begin{ruledtabular} |
| 413 |
\begin{tabular}{ccddd} |
| 414 |
One&Two&\mbox{Three}&\mbox{Four}&\mbox{Five}\\ |
| 415 |
\hline |
| 416 |
one&two&\mbox{three}&\mbox{four}&\mbox{five}\\ |
| 417 |
He&2& 2.77234 & 45672. & 0.69 \\ |
| 418 |
C\footnote{Some tables require footnotes.} |
| 419 |
&C\footnote{Some tables need more than one footnote.} |
| 420 |
& 12537.64 & 37.66345 & 86.37 \\ |
| 421 |
\end{tabular} |
| 422 |
\end{ruledtabular} |
| 423 |
\end{table} |
| 424 |
illustrates the use of decimal column alignment.) |
| 425 |
|
| 426 |
Extra column-spacing may be be specified as well, although |
| 427 |
REV\TeX~4 sets this spacing so that the columns fill the width of the |
| 428 |
table. |
| 429 |
Horizontal rules are typeset using the \verb+\hline+ |
| 430 |
command. |
| 431 |
The doubled (or Scotch) rules that appear at the top and |
| 432 |
bottom of a table can be achieved by enclosing the \texttt{tabular} |
| 433 |
environment within a \texttt{ruledtabular} environment. |
| 434 |
Rows whose columns span multiple columns can be typeset using \LaTeX's |
| 435 |
\verb+\multicolumn{#1}{#2}{#3}+ command |
| 436 |
(for example, see the first row of Table~\ref{tab:table3}).% |
| 437 |
\begin{table*} |
| 438 |
\caption{\label{tab:table3}This is a wide table that spans the page |
| 439 |
width in \texttt{twocolumn} mode. It is formatted using the |
| 440 |
\texttt{table*} environment. It also demonstrates the use of |
| 441 |
\textbackslash\texttt{multicolumn} in rows with entries that span |
| 442 |
more than one column.} |
| 443 |
\begin{ruledtabular} |
| 444 |
\begin{tabular}{ccccc} |
| 445 |
&\multicolumn{2}{c}{$D_{4h}^1$}&\multicolumn{2}{c}{$D_{4h}^5$}\\ |
| 446 |
Ion&1st alternative&2nd alternative&lst alternative |
| 447 |
&2nd alternative\\ \hline |
| 448 |
K&$(2e)+(2f)$&$(4i)$ &$(2c)+(2d)$&$(4f)$ \\ |
| 449 |
Mn&$(2g)$\footnote{The $z$ parameter of these positions is $z\sim\frac{1}{4}$.} |
| 450 |
&$(a)+(b)+(c)+(d)$&$(4e)$&$(2a)+(2b)$\\ |
| 451 |
Cl&$(a)+(b)+(c)+(d)$&$(2g)$\footnote{This is a footnote in a table that spans the full page |
| 452 |
width in \texttt{twocolumn} mode. It is supposed to set on the full width of the page, just as the caption does. } |
| 453 |
&$(4e)^{\text{a}}$\\ |
| 454 |
He&$(8r)^{\text{a}}$&$(4j)^{\text{a}}$&$(4g)^{\text{a}}$\\ |
| 455 |
Ag& &$(4k)^{\text{a}}$& &$(4h)^{\text{a}}$\\ |
| 456 |
\end{tabular} |
| 457 |
\end{ruledtabular} |
| 458 |
\end{table*} |
| 459 |
|
| 460 |
The tables in this document illustrate various effects. |
| 461 |
Tables that fit in a narrow column are contained in a \texttt{table} |
| 462 |
environment. |
| 463 |
Table~\ref{tab:table3} is a wide table, therefore set with the |
| 464 |
\texttt{table*} environment. |
| 465 |
Lengthy tables may need to break across pages. |
| 466 |
A simple way to allow this is to specify |
| 467 |
the \verb+[H]+ float placement on the \texttt{table} or |
| 468 |
\texttt{table*} environment. |
| 469 |
Alternatively, using the standard \LaTeXe\ package \texttt{longtable} |
| 470 |
gives more control over how tables break and allows headers and footers |
| 471 |
to be specified for each page of the table. |
| 472 |
An example of the use of \texttt{longtable} can be found |
| 473 |
in the file \texttt{summary.tex} that is included with the REV\TeX~4 |
| 474 |
distribution. |
| 475 |
|
| 476 |
There are two methods for setting footnotes within a table (these |
| 477 |
footnotes will be displayed directly below the table rather than at |
| 478 |
the bottom of the page or in the bibliography). |
| 479 |
The easiest |
| 480 |
and preferred method is just to use the \verb+\footnote{#1}+ |
| 481 |
command. This will automatically enumerate the footnotes with |
| 482 |
lowercase roman letters. |
| 483 |
However, it is sometimes necessary to have |
| 484 |
multiple entries in the table share the same footnote. |
| 485 |
In this case, |
| 486 |
create the footnotes using |
| 487 |
\verb+\footnotemark[#1]+ and \verb+\footnotetext[#1]{#2}+. |
| 488 |
\texttt{\#1} is a numeric value. |
| 489 |
Each time the same value for \texttt{\#1} is used, |
| 490 |
the same mark is produced in the table. |
| 491 |
The \verb+\footnotetext[#1]{#2}+ commands are placed after the \texttt{tabular} |
| 492 |
environment. |
| 493 |
Examine the \LaTeX\ source and output for Tables~\ref{tab:table1} and |
| 494 |
\ref{tab:table2}% |
| 495 |
\begin{table} |
| 496 |
\caption{\label{tab:table2}A table with more columns still fits |
| 497 |
properly in a column. Note that several entries share the same |
| 498 |
footnote. Inspect the \LaTeX\ input for this table to see |
| 499 |
exactly how it is done.} |
| 500 |
\begin{ruledtabular} |
| 501 |
\begin{tabular}{cccccccc} |
| 502 |
&$r_c$ (\AA)&$r_0$ (\AA)&$\kappa r_0$& |
| 503 |
&$r_c$ (\AA) &$r_0$ (\AA)&$\kappa r_0$\\ |
| 504 |
\hline |
| 505 |
Cu& 0.800 & 14.10 & 2.550 &Sn\footnotemark[1] |
| 506 |
& 0.680 & 1.870 & 3.700 \\ |
| 507 |
Ag& 0.990 & 15.90 & 2.710 &Pb\footnotemark[2] |
| 508 |
& 0.450 & 1.930 & 3.760 \\ |
| 509 |
Au& 1.150 & 15.90 & 2.710 &Ca\footnotemark[3] |
| 510 |
& 0.750 & 2.170 & 3.560 \\ |
| 511 |
Mg& 0.490 & 17.60 & 3.200 &Sr\footnotemark[4] |
| 512 |
& 0.900 & 2.370 & 3.720 \\ |
| 513 |
Zn& 0.300 & 15.20 & 2.970 &Li\footnotemark[2] |
| 514 |
& 0.380 & 1.730 & 2.830 \\ |
| 515 |
Cd& 0.530 & 17.10 & 3.160 &Na\footnotemark[5] |
| 516 |
& 0.760 & 2.110 & 3.120 \\ |
| 517 |
Hg& 0.550 & 17.80 & 3.220 &K\footnotemark[5] |
| 518 |
& 1.120 & 2.620 & 3.480 \\ |
| 519 |
Al& 0.230 & 15.80 & 3.240 &Rb\footnotemark[3] |
| 520 |
& 1.330 & 2.800 & 3.590 \\ |
| 521 |
Ga& 0.310 & 16.70 & 3.330 &Cs\footnotemark[4] |
| 522 |
& 1.420 & 3.030 & 3.740 \\ |
| 523 |
In& 0.460 & 18.40 & 3.500 &Ba\footnotemark[5] |
| 524 |
& 0.960 & 2.460 & 3.780 \\ |
| 525 |
Tl& 0.480 & 18.90 & 3.550 & & & & \\ |
| 526 |
\end{tabular} |
| 527 |
\end{ruledtabular} |
| 528 |
\footnotetext[1]{Here's the first, from Ref.~\onlinecite{feyn54}.} |
| 529 |
\footnotetext[2]{Here's the second.} |
| 530 |
\footnotetext[3]{Here's the third.} |
| 531 |
\footnotetext[4]{Here's the fourth.} |
| 532 |
\footnotetext[5]{And etc.} |
| 533 |
\end{table} |
| 534 |
for an illustration. |
| 535 |
|
| 536 |
All AIP journals require that the initial citation of |
| 537 |
figures or tables be in numerical order. |
| 538 |
\LaTeX's automatic numbering of floats is your friend here: |
| 539 |
just put each \texttt{figure} environment immediately following |
| 540 |
its first reference (\verb+\ref+), as we have done in this example file. |
| 541 |
|
| 542 |
\begin{acknowledgments} |
| 543 |
We wish to acknowledge the support of the author community in using |
| 544 |
REV\TeX{}, offering suggestions and encouragement, testing new versions, |
| 545 |
\dots. |
| 546 |
\end{acknowledgments} |
| 547 |
|
| 548 |
\appendix |
| 549 |
|
| 550 |
\section{Appendixes} |
| 551 |
|
| 552 |
To start the appendixes, use the \verb+\appendix+ command. |
| 553 |
This signals that all following section commands refer to appendixes |
| 554 |
instead of regular sections. Therefore, the \verb+\appendix+ command |
| 555 |
should be used only once---to set up the section commands to act as |
| 556 |
appendixes. Thereafter normal section commands are used. The heading |
| 557 |
for a section can be left empty. For example, |
| 558 |
\begin{verbatim} |
| 559 |
\appendix |
| 560 |
\section{} |
| 561 |
\end{verbatim} |
| 562 |
will produce an appendix heading that says ``APPENDIX A'' and |
| 563 |
\begin{verbatim} |
| 564 |
\appendix |
| 565 |
\section{Background} |
| 566 |
\end{verbatim} |
| 567 |
will produce an appendix heading that says ``APPENDIX A: BACKGROUND'' |
| 568 |
(note that the colon is set automatically). |
| 569 |
|
| 570 |
If there is only one appendix, then the letter ``A'' should not |
| 571 |
appear. This is suppressed by using the star version of the appendix |
| 572 |
command (\verb+\appendix*+ in the place of \verb+\appendix+). |
| 573 |
|
| 574 |
\section{A little more on appendixes} |
| 575 |
|
| 576 |
Observe that this appendix was started by using |
| 577 |
\begin{verbatim} |
| 578 |
\section{A little more on appendixes} |
| 579 |
\end{verbatim} |
| 580 |
|
| 581 |
Note the equation number in an appendix: |
| 582 |
\begin{equation} |
| 583 |
E=mc^2. |
| 584 |
\end{equation} |
| 585 |
|
| 586 |
\subsection{\label{app:subsec}A subsection in an appendix} |
| 587 |
|
| 588 |
You can use a subsection or subsubsection in an appendix. Note the |
| 589 |
numbering: we are now in Appendix~\ref{app:subsec}. |
| 590 |
|
| 591 |
\subsubsection{\label{app:subsubsec}A subsubsection in an appendix} |
| 592 |
Note the equation numbers in this appendix, produced with the |
| 593 |
subequations environment: |
| 594 |
\begin{subequations} |
| 595 |
\begin{eqnarray} |
| 596 |
E&=&mc, \label{appa} |
| 597 |
\\ |
| 598 |
E&=&mc^2, \label{appb} |
| 599 |
\\ |
| 600 |
E&\agt& mc^3. \label{appc} |
| 601 |
\end{eqnarray} |
| 602 |
\end{subequations} |
| 603 |
They turn out to be Eqs.~(\ref{appa}), (\ref{appb}), and (\ref{appc}). |
| 604 |
|
| 605 |
\nocite{*} |
| 606 |
\bibliography{aipsamp}% Produces the bibliography via BibTeX. |
| 607 |
|
| 608 |
\end{document} |
| 609 |
% |
| 610 |
% ****** End of file aipsamp.tex ****** |