% ****** Start of file apssamp.tex ******
%
%   This file is part of the APS files in the REVTeX 4.2 distribution.
%   Version 4.2a of REVTeX, December 2014
%
%   Copyright (c) 2014 The American Physical Society.
%
%   See the REVTeX 4 README file for restrictions and more information.
%
% TeX'ing this file requires that you have AMS-LaTeX 2.0 installed
% as well as the rest of the prerequisites for REVTeX 4.2
%
% See the REVTeX 4 README file
% It also requires running BibTeX. The commands are as follows:
%
%  1)  latex apssamp.tex
%  2)  bibtex apssamp
%  3)  latex apssamp.tex
%  4)  latex apssamp.tex
%
\documentclass[%
 reprint,
superscriptaddress,
%groupedaddress,
%unsortedaddress,
%runinaddress,
%frontmatterverbose, 
%preprint,
%preprintnumbers,
%nofootinbib,
%nobibnotes,
%bibnotes,
 amsmath,amssymb,
 aps,
%pra,
%prb,
%rmp,
%prstab,
%prstper,
prab,
%floatfix,
]{revtex4-2}

\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{hyperref}% add hypertext capabilities
\hypersetup{colorlinks=true, citecolor=blue, urlcolor=blue, linkcolor=blue}
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines

%\usepackage[showframe,%Uncomment any one of the following lines to test 
%%scale=0.7, marginratio={1:1, 2:3}, ignoreall,% default settings
%%text={7in,10in},centering,
%%margin=1.5in,
%%total={6.5in,8.75in}, top=1.2in, left=0.9in, includefoot,
%%height=10in,a5paper,hmargin={3cm,0.8in},
%]{geometry}

\usepackage[alsoload=hep]{siunitx} % use \SI{}{} % use hep to get the right c

\usepackage{xcolor} % use \textcolor{}{}

\usepackage{subcaption}% For use with subfigures

\usepackage{tikz}% A graphics class used to overlay text on images
\usepackage[printwatermark]{xwatermark}% Print a DRAFT watermark on every page
\newsavebox\mybox\savebox\mybox{\tikz[color=green!50,opacity=0.5]\node{DRAFT};}
\newwatermark*[allpages,angle=45,scale=16,xpos=-54,ypos=57]{\usebox\mybox}% Print a DRAFT watermark on every page.

\begin{document}

% g-2:
%\newcommand{\gmtwo}{\ensuremath{g-2}}
\newcommand{\gmtwo}{\ensuremath{g\!-\!2}}

% Magic Radius:
\newcommand{\rmagic}{\ensuremath{R_{0}}}

% Magic Circumference:
\newcommand{\cmagic}{\ensuremath{C_{0}}}

% Magic Momentum:
\newcommand{\pmagic}{\ensuremath{p_{0}}}
%\newcommand{\pmagic}{\ensuremath{p_{\textnormal{mag}}}}

% Magic Lorentz Factor:
\newcommand{\gammamagic}{\ensuremath{\gamma_{0}}}

% Dipole magnetic field
\newcommand{\dipbfield}{\ensuremath{B_{0}}}

% Run-1
\newcommand{\runone}{Run-1}

% Run-2
\newcommand{\runtwo}{Run-2}

\graphicspath{{./fig/}}

\preprint{APS/123-QED}

\input{tex/title_and_authors}

\date{\today}% It is always \today, today,
             %  but any date may be explicitly specified

\input{tex/abstract}

\maketitle % call abstract environment before \maketitle

%\tableofcontents

\input{tex/introduction}

\input{tex/experimental_method}

\input{tex/storage_ring}

\input{tex/simulation_tools_dlr}

\input{tex/storage_ring_optics}

\input{tex/systematics}

\input{tex/conclusion}

\input{tex/acknowledgments}

% \input{tex/appendix} % dummy appendix

% The \nocite command causes all entries in a bibliography to be printed out
% whether or not they are actually referenced in the text. This is appropriate
% for the sample file to show the different styles of references, but authors
% most likely will not want to use it.
% \nocite{*}

% Jason D. Crnkovic 2018-01-28: Sometimes the DOI links are broken. This is caused by a \href {\doibase } spanning 2 lines in
% the bbl file. I do not know how to prevent this from happening, but it can manually be fixed by putting the \href {\doibase } onto
% a single line in the bbl file. One should note that APS journals want you to copy and paste the bbl contents into the tex file when submitting the paper, see
% https://journals.aps.org/revtex/revtex-faq#b7

% Jason D. Crnkovic 2018-01-28: The DOI links can also lead to an error webpage. This can occur due to the BibTeX entry having extra stuff at the beginning. 
% Just delete the extra stuff so that only the actual DOI string remains.

\bibliography{g-2-srbd}% Produces the bibliography via BibTeX.

\end{document}
%
% ****** End of file apssamp.tex ******
