% The line above defines the type of LaTeX document.
% Note that AJP uses the same style as Phys. Rev. B (prb).
% The % character begins a comment, which continues to the end of the line.
\usepackage{amsmath}% needed for \tfrac, \bmatrix, etc.
\usepackage{amsfonts}% needed for bold Greek, Fraktur, and blackboard bold
\usepackage{graphicx}% needed for figures
\begin{document}
% Be sure to use the \title, \author, \affiliation, and \abstract macros
% to format your title page. Don't use lower-level macros to manually
% adjust the fonts and centering.
\title{Preparation of manuscripts for the American Journal of Physics
using \LaTeX}
% In a long title you can use \\ to force a line break at a certain location.
%When submitting the manuscript for review, do not include the author's name or institution
%\author{Daniel V. Schroeder}
%\email{dschroeder@weber.edu} % optional
%\altaffiliation[permanent address: ]{101 Main Street, Anytown, USA} % optional second address
% If there were a second author at the same address, we would put another
% \author{} statement here. Don't combine multiple authors in a single
% \author statement.
%\affiliation{Department of Physics, Weber State University, Ogden, UT 84408-2508}
% Please provide a full mailing address here.
%\author{David P. Jackson}
%\email{ajp@dickinson.edu}
%\affiliation{Department of Physics, Dickinson College, Carlisle, PA 17013}
% See the REVTeX documentation for more examples of author and affiliation lists.
\date{\today}
\begin{abstract}
This article explains and illustrates the use of \LaTeX\ in preparing manuscripts
for submission to the American Journal of Physics (AJP). While it is not a
comprehensive reference, we hope it will suffice for the needs of most
AJP authors. For help on a specific question, an internet search engine will
generally return many useful answers if the term ``latex'' is included in the
search box.
\end{abstract}
% AJP requires an abstract for all regular article submissions.
% Abstracts are optional for submissions to the "Notes and Discussions" section.
\maketitle% title page is now complete
\section{Introduction}% Section titles are automatically converted to all-caps.
% Section numbering is automatic.
\LaTeX\ is typesetting software that is widely used by mathematicians
and physicists because it is so good at typesetting equations. It is
also completely programmable, so it can be configured to produce
documents with almost any desired formatting, and to automatically
number equations, figures, endnotes, and so on.
To prepare manuscripts for the American Journal of Physics (AJP),
you should use the REV\TeX\ 4.1 format for Physical Review B
preprints, as indicated in the \texttt{documentclass} line at the top
of this article's source file. (If you're already familiar with
\LaTeX\ and have used other \LaTeX\ formats, please resist the
temptation to use them, or to otherwise override REV\TeX's formatting
conventions, in manuscripts that you prepare for AJP.)
This sample article is intended as a tutorial, template, and reference for
AJP authors, illustrating most of the \LaTeX\ and REV\TeX\ features that
authors will need. For a more comprehensive introduction to \LaTeX,
numerous books and online references are available.\cite{latexsite,
wikibook, latexbook} Documentation for the REV\TeX\ package
can be found on the APS web site.\cite{revtex}
\LaTeX\ is free software, available for Unix/Linux, Mac OS X, and Windows
operating systems. For downloading and installation instructions, follow
the links from the \LaTeX\ web site.\cite{latexsite} It is most
convenient\cite{cloudLaTeX} to install a ``complete \TeX\ distribution,''
which will include \LaTeX, the underlying \TeX\ engine, macro packages
such as REV\TeX, a large collection of fonts, and GUI tools for editing
and viewing your documents. To test your installation, try to process
this sample article.
\section{Ordinary text and paragraphs}
To typeset a paragraph of ordinary text, just type the text in your source
file like this. Put line breaks
wherever
you
want, and don't worry about extra spaces between words, which \LaTeX\ will ignore. You can almost always trust \LaTeX\ to make your paragraphs look good, with neatly justified margins. % Long lines of text are fine, since most editing programs will wrap them automatically.
To start a new paragraph, just leave a blank line in your source file.
A few punctuation characters require special treatment in \LaTeX. There
are no ``smart quotes,'' so you need to use the left-quote key (at the
top-left corner of the keyboard) for a left quote, and the ordinary apostrophe
key (next to the semi-colon) for a right quote. Hit either key twice for double
quotes, which are standard in American English. Don't use shift-apostrophe
to make double quotes. Use single quotes when they're nested inside a
double-quoted quotation. When a period or comma belongs at the end of
a quotation, put it inside the quotes---even if it's not part of what you're
quoting.\cite{nevermindlogic}
Your fingers also need to distinguish between a hyphen (used for
multi-word adjectives and for hyphenated names like Lennard-Jones), an
en-dash (formed by typing two consecutive hyphens, and used for ranges
of numbers like 1--100), and an em-dash (formed out of three consecutive
hyphens and used as an attention-getting punctuation symbol---preferably
not too often).
Some non-alphanumeric symbols like \$, \&, and \% have special meanings
in a \LaTeX\ source file, so if you want these symbols to appear in the output,
you need to precede them with a backslash.
There are also special codes for generating the various accents
that can appear in foreign-language words and names, such as Amp\`ere
and Schr\"odinger.\cite{FontEncodingComment}
You can switch to \textit{italic}, \textbf{bold}, and \texttt{typewriter} fonts
when necessary. Use curly braces to enclose the text that is to appear in
the special font. In general, \LaTeX\ uses curly braces to group characters
together for some common transformation.
Notice that any word or symbol preceded by the backslash character is
a special instruction to \LaTeX, typically used to produce a special
symbol or to modify the typeset output in some way. These instructions
are also called \textit{control sequences} or \textit{macros}.
After you've used \LaTeX\ for a while, the little finger of your right
hand will be really good at finding the backslash and curly-brace keys.
\section{Math symbols}
To type mathematical symbols and expressions within a paragraph, put
them between \$ signs, which indicate \textit{math mode}: $ab +2c/d = e-3f$.
\LaTeX\ ignores spaces in math mode, using its own algorithms to determine
the right amount of space between symbols. Notice that an ordinary letter
like~$x$, when used in math mode, is automatically typeset in italics.
This is why you need to use math mode for all mathematical
expressions (except plain numerals), even when they don't contain any
special symbols. But don't use math mode to italicize ordinary \textit{words}.
Besides ordinary letters and numerals and common arithmetic symbols, math
mode provides a host of other characters that you can access via control
sequences.\cite{wikimathpage} These include Greek letters like $\pi$ and
$\Delta$ (note capitalization), symbols for operations and relations such
as $\cdot$, $\times$, $\pm$, $\gg$, $\leq$, $\sim$, $\approx$, $\propto$,
and $\rightarrow$, and special symbols like $\nabla$, $\partial$, $\infty$,
and~$\hbar$. You can decorate symbols with dots ($\dot x$ or $\ddot x$),