%\documentclass[twocolumn]{article}
\documentclass[aps,prl,twocolumn,superscriptaddress]{revtex4}
 
\include{jm-tex-macros-public}

\begin{document}
\title{The Title of Your Paper}
\author{Your Name}  
\affiliation{Department of Physics, 
University of California at San Diego,
La Jolla, CA 92093} 

\begin{abstract}
A concise abstract summarizing the point in a few sentences goes here.
\end{abstract}
%\pacs{Keywords: }
\maketitle
%

%\tableofcontents

\section{Introduction}


Words explaining the context go here.  
Much of \htmladdnormallink{Geroch's wise advice about giving talks}{http://arxiv.org/abs/gr-qc/9703019} applies here, too.
The introduction could end with an outline of what's going to happen in the rest of the paper.

\section{Files to include}

I've found it useful to keep a collection of tex macros all in one place,
rather than copying them to the top of every file I use.  
\htmladdnormallink{Here}{http://physics.ucsd.edu/~mcgreevy/jm-tex-macros-public.tex}
is the current version.
You can put it in the same directory as your tex file,
or you can put it in some directory that your tex engine looks at when it compiles,
such as {\tt Library/texmf/tex/latex}.

A bibliography style file that makes nice links to the arxiv 
is
\htmladdnormallink{here}{http://physics.ucsd.edu/~mcgreevy/ucsd.bst}.
You can put this in the local directory or 
in {\tt Library/texmf/bibtex/bst}.

\section{Equations and figures}

Here is an in-line equation $ \vec F = m \vec a$.
Here is a displayed equation.
$$ \vec F = m \vec a $$

Here is a numbered equation:
\be \label{eq:equation}
\vec F = m \vec a 
\ee
\eqref{eq:equation} is a numbered equation.
You have to latex the document twice to get the number to appear.

\cor This sentence is red.  \cob
\begin{shaded}
This sentence is in a patch of grey background.
\end{shaded}

\vskip0.2in
There is some vertical space before this sentence.

Here is how to include a figure called figure-name.png:
  \begin{center}
\begin{verbatim}
    \includegraphics[width=0.41\textwidth]
    {figure-name.png}
    \end{verbatim}
  \end{center}
  
  \section{How to make the bibliography}

To make the bibilography you have two options.
\begin{enumerate}
\item You can get the references from e.g.~\htmladdnormallink{Spires}{http://inspirehep.net}
(click on LaTeX(US))
or Google Scholar
and paste them into a list below, like this:
\begin{verbatim}
\begin{thebibliography}{99}
%\cite{Polyakov:1976fu}
\bibitem{Polyakov:1976fu} 
  A.~M.~Polyakov,
  ``Quark Confinement and 
  Topology of Gauge Groups,''
  Nucl.\ Phys.\ B {\bf 120}, 429 (1977).
  
  %\cite{Belavin:1976vj}
\bibitem{Belavin:1976vj} 
  A.~A.~Belavin and A.~M.~Polyakov,
``Quantum Fluctuations 
of Pseudoparticles,''
  Nucl.\ Phys.\ B {\bf 123}, 429 (1977).
\end{thebibliography}
\end{verbatim}
This requires you to put them in the right order, which is silly.

\item Alternatively you can use BibTeX:
Paste the BibTeX entries
(on Spires or Google Scholar, click on BibTeX; the 
\htmladdnormallink{Physical Review Online}{http://prola.aps.org/}
website also exports BibTeX references)
into a file called \eg\ collection.bib.
The entries look like this:
\begin{verbatim}
@article{Polyakov:1976fu,
      author         = "Polyakov, Alexander M.",
      title          = "{Quark Confinement and Topology of Gauge Groups}",
      journal        = "Nucl.Phys.",
      volume         = "B120",
      pages          = "429-458",
      doi            = "10.1016/0550-3213(77)90086-4",
      year           = "1977",
      reportNumber   = "NORDITA-76/33",
      SLACcitation   = "%%CITATION = NUPHA,B120,429;%%",
}
\end{verbatim}
I find it useful to keep this file somewhere universal on my computer
(namely {\tt Library/texmf/bibtex/bib/collection.bib})
and just put every reference I ever use in there.  It is a pretty fun file.

Then, instead of the bibliography list, place this command before the end:
\begin{verbatim}
\bibliographystyle{ucsd}
\bibliography{collection}
\end{verbatim}
The style file being included here ({\tt ucsd.bst}) is \htmladdnormallink{here}{http://physics.ucsd.edu/~mcgreevy/ucsd.sty}.
In this case, 
to compile you will have to run latex then bibtex then latex again (maybe once more for good measure)
to get everything in the right place.
\end{enumerate}



In either case, cite a paper like this:
\cite{Polyakov:1976fu} and this: \cite{Belavin:1976vj} and this: \cite{Swingle:2009bg}.


\vskip.2in
{\bf Acknowledgements}

Here you can acknowledge people who helped you.
\bibliographystyle{ucsd}
\bibliography{collection}
\end{document}

%%% if you don't want to use bibtex, put this instead of \bibliography{collection}

\begin{thebibliography}{99}
\bibitem{Polyakov:1976fu} 
  A.~M.~Polyakov,
  ``Quark Confinement and Topology of Gauge Groups,''
  Nucl.\ Phys.\ B {\bf 120}, 429 (1977).
  

\bibitem{Belavin:1976vj} 
  A.~A.~Belavin and A.~M.~Polyakov,
``Quantum Fluctuations of Pseudoparticles,''
  Nucl.\ Phys.\ B {\bf 123}, 429 (1977).
\end{thebibliography}


\end{document}