%This program is free software; you can redistribute it and/or modify it under
%the terms of the GNU General Public License as published by the Free Software
%Foundation;
\documentclass{army/armymemo}
\title{Army Memo Template}
\usepackage{lipsum} %Only needed for example text.
%Add any other packages you might need. Some are here
\usepackage{amsmath} %more powerful math environment
\usepackage{graphicx}
\usepackage{titling}
\usepackage{float}
\usepackage[backref=page]{hyperref} % hypertext links in digital copy pdfs
%\usepackage{soul} %\st for strikethrough text
%\usepackage{subfigure} % for side by side images
%\usepackage{hyperref} % hypertext links in digital copy pdfs
\begin{document}
%the following are required fields
\AMdept{DEPARTMENT OF THE ARMY}
\AMunit{AFIT DETACHMENT, US ARMY STUDENT DETACHMENT}
\AMaddress{WRIGHT-PATTERSON AFB, OH 45433}
\AMsymbol{AFIT-ENS}
\AMsubject{Army Memoranda in \LaTeX.}
\AMfor{MEMORANDUM FOR Army Analytic Community}
\AMdate{\today}
%Can also use system date for today
%\AMdate{\today}
%\newdate{MDATE}{7}{12}{2016} % 7 December 2016 -- dd MM YYYY Manual input of Date
% as ans ide, the 5 charcaters "\\~\\" will make a whole line of space if \newline or \\ do not work.
\AMsethead
\Ni This is a template for Army memoranda using \LaTeX. It is still a work in progress, and improvements or suggestions for improvements are welcome.
\Nii If including references, include them here or at thend, using FM-360: \textit{Army Targeting} \cite{FM3-60} as the first example.
\Nii By AR 25-50 \cite{AR25-50}
\Niii You should only have:
\Niiii Three subdivisions of a paragraph.
\Niiii And two of each subdivision.
\Niii But when a subparagraph wraps around, it should extend the entire length of a page in order to not waste space.
\Nii Our optimization model is in Equation \ref{MOLPModel}:
\begin{equation}
\label{MOLPModel}
\begin{array}{ll@{}ll}
\text{lex}\displaystyle \min_{\boldsymbol{X}\in\boldsymbol{U}} & & \big( f_1(\boldsymbol{X}), f_2(\boldsymbol{X})\big) \\
\text{subject to}& \displaystyle\sum\limits_{i \in O} &x_{ij} = 1, &\forall j \in A\\
& \displaystyle\sum\limits_{j \in A} &x_{ij} = 1, &\forall i \in O\\
& &x_{ij} \in \{0,1\}, &\forall i\in O,j \in A
\end{array}
\end{equation}
\Ni \lipsum[1]
\Nii \lipsum[2]
\Nii \lipsum[3]
\Niii Second Model is given by Equation \ref{MOLPModel2}.
\begin{equation}
\label{MOLPModel2}
\begin{array}{ll@{}ll}
\displaystyle \text{lex}\min_{\boldsymbol{X}\in\boldsymbol{U}} & & \big ( f_1 (\boldsymbol{X}), f_3(\boldsymbol{X}) \big ) \\
\text{subject to}& \displaystyle\sum\limits_{i \in O} &x_{ij} = 1, &\forall j \in A\\
& \displaystyle\sum\limits_{j \in A} &x_{ij} = 1, &\forall i \in O\\
& &x_{ij} \in \{0,1\}, &\forall i\in O,j \in A
\end{array}
\end{equation}
\Niii \lipsum[5]
% Enclosures
\newcounter{enclosureCount}
% initialize counter to zero
\setcounter{enclosureCount}{0}
% define some enclosure terms and increment the counter
\def \ENCLONETITLE{ENCLOSURE 1:}
\def \ENCLAMPV{AMP-V}\stepcounter{enclosureCount}
\def \ENCLTWOTITLE{ENCLOSURE 2:}
\def \ENCLLOREMTWO{Lorem Ipsum}\stepcounter{enclosureCount}
\def \ENCLLASTTITLE{ENCLOSURE 3:}
\def \ENCLLASTREF{References}\stepcounter{enclosureCount}
% Original contribtuors
% Signature Block with Enclosures
% \AMsigblock{Matthew D. Ferguson}{MAJ, FA49}{Student}{Encl:\\1. Enclosure 1\\2. Enclosure 2}
% technically, this is one line too low for using "/signed/"
% \AMsigblock{/signed/\\Matthew D. Ferguson}{MAJ, FA49}{Student}
% 3rd contributor
\AMsigblock{Timothy J Naudet}{CPT, IN}{Data Scientist}{\theenclosureCount \space Encl.
\\1. \ENCLAMPV
\\2. \ENCLLOREMTWO
\\3. \ENCLLASTREF
}
% now to increase pages with proper commands
% make a new page
\newpage
\underline{\textbf{\ENCLONETITLE}} \ENCLAMPV
\\~\\
% add something to show, like an image
\begin{figure}[h!]
\label{fig:figAMPV}
\centering
\fbox{\includegraphics[width=0.7\linewidth]{army/ampv-mortar-carrier.png}}
\caption{Armored Multi-Purpose Vehicle (AMP-V), Mortar Carrier.}
\end{figure}
\textcolor{red}{DANGER} : \lipsum[6].
\vspace{150 pt}
\centerline{Intentionally left blank.}
% clear the page for completion
\clearpage
% begin sequence again
\newpage
\underline{\textbf{\ENCLTWOTITLE}} \ENCLLOREMTWO
\\~\\
\lipsum[7]
\clearpage
% references enclosure
\newpage
\underline{\textbf{\ENCLLASTTITLE}} \ENCLLASTREF
% references
\bibliographystyle{unsrt}
\bibliography{ref}
\clearpage
\end{document}