% ****** 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,
%floatfix,
]{revtex4-2}

%\usepackage{graphicx}% Include figure files
% \usepackage{dcolumn}% Align table columns on decimal point
% \usepackage{bm}% bold math
% \usepackage{xcolor}
% \usepackage{diagbox}
% \usepackage{booktabs}
% \usepackage{tabularx}
\usepackage{algorithm}
%\usepackage{algpseudocode}
\usepackage{algorithmic}
% \usepackage[colorlinks]{hyperref}
% \hypersetup{
%     colorlinks = true,
%     linkcolor=blue
%   }

\usepackage{lipsum}
%\usepackage{siunitx}
%\usepackage{hyperref}% add hypertext capabilities
%\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}

\newcommand{\tp}{\mathsf{T}}
\newcommand{\wt}[1]{\widetilde{#1}}
%\newcolumntype{Y}{>{\centering\arraybackslash}X}

\begin{document}

\preprint{APS/123-QED}

\title{Ultra-low-energy defibrillation through adjoint optimization (ODEs)}
\author{First Author}
 \altaffiliation[Also at ]{Physics Department, XYZ University.}%Lines break automatically or can be forced with \\
\author{Second Author}%
 \email{Second.Author@institution.edu}
\affiliation{%
 Authors' institution and/or address
}%

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

\begin{abstract}
An article usually includes an abstract, a concise summary of the work
covered at length in the main body of the article. 
\end{abstract}

%\keywords{Suggested keywords}%Use showkeys class option if keyword
                              %display desired
\maketitle

%\tableofcontents

\section{Model equations}
\lipsum[1-1]
\begin{align}\label{eq:puwtLu}
  \partial_tu&=\widetilde{L}u + F(u),
\end{align}

\lipsum[2-2]
\begin{align}
  \label{eq:nu1E}
  {\bf n}\cdot(\nabla u_1 - {\bf E})= 0,
\end{align}

\lipsum[3-3]
\begin{equation}
  \label{eq:nui}
  {\bf n}\cdot\nabla u_i= 0.
\end{equation}

\lipsum[4-4]
\begin{equation*}
  \int_0^T [E(t)]^2dt.
\end{equation*}

\lipsum[5-5]
%  W A R N I N G:
% Floating environments created with the float package (as algorithm is) are incompatible with the revtex4-1 class. The only way you have to include such an environment in your document, is to use the floating specifier H, which avoids the environment to float. Alternatively, the algorithm can be put inside \begin{figure} \end{figure}, with no caption. Source: https://tex.stackexchange.com/questions/231191/algorithm-in-revtex4-1
\begin{algorithm}[H] % do not change or remove the H
  \algsetup{linenosize=\normalsize}
  \normalsize
  \caption{Fast algorithm}
  \label{alg:adj}
  \begin{algorithmic}[1]
    \STATE $a \gets b$
    \STATE $b \gets c$
    \STATE $c \gets d$
  \end{algorithmic}
\end{algorithm}

\lipsum[5-5]
\begin{equation}
  \label{eq:calJi}
  \widetilde{\cal J}_i = \int_\Omega \left\|\nabla u_i\right\|_{t=T}^2\,d\Omega.
\end{equation}

\lipsum[5-5]
\begin{equation}
  \label{eq:L0}
  \widetilde{\cal L}_0=\frac{1}{2}\sum_{i=1}^n\gamma_i \widetilde{\cal J}_i
  +\frac{\alpha}{2}\int_0^T [E(t)]^2\,dt.
\end{equation}



\end{document}
