\documentclass[10pt]{report}
\usepackage[latin1]{inputenc}

%\usepackage{draftwatermark}
%\SetWatermarkText{DRAFT}
%\SetWatermarkScale{1}
%\SetWatermarkLightness{0.95}

% packages
%%%%%%%%%%%%

\usepackage[pagewise]{lineno}
\usepackage{listing}
\usepackage{hyperref}
\usepackage[light,conditional,final]{draftcopy}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{cite}
\usepackage{array}
\usepackage[absolute]{textpos}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{color}
\usepackage{listings}
\lstset{escapeinside={(*@}{@*)},
frame=single,
numbers=right
}
%\usepackage{comment}

% \usepackage[tight,footnotesize]{subfigure}

% style commands
%%%%%%%%%%%%%%%%
% load helvetica for sans-serif fonts
\usepackage{helvet}
% load times for regular fonts
% \usepackage{times}
\usepackage{charter}

% use sans-serif in titles
\usepackage{sectsty}
\allsectionsfont{\sffamily}

% TODO: adjust this
%% Control the fonts and formatting used in the table of contents.
\usepackage[titles]{tocloft}
%% Aesthetic spacing redefines that look nicer to me than the defaults.
\setlength{\cftbeforechapskip}{2ex}
\setlength{\cftbeforesecskip}{0.5ex}
%% Use Helvetica-Narrow Bold for Chapter entries
\renewcommand{\cftchapfont}{%
  \fontsize{11}{13}\usefont{OT1}{phv}{bc}{n}\selectfont
}

%\renewenvironment{comment}{}{}

%\linenumbers
\onehalfspacing

\fancyhead{}
\fancyhead[LE]{\bf \leftmark}
\fancyhead[RO]{\bf \rightmark}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\headrulewidth}{0.4pt}
%\addtolength{\headheight}{4pt}
\setlength{\headheight}{28pt}

% new macros and environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% styles
\newcommand{\keyword}[1]{\texttt{\textbf{#1}}}
\newcommand{\varname}[1]{\textit{#1}}

\newcommand{\directive}[1]{\texttt{#1}}
\newcommand{\clause}[1]{\texttt{#1}}

% macros
\newcommand{\OpenMP}{OpenMP}
\newcommand{\openmp}{OpenMP}
\newcommand{\pragma}{\keyword{\#pragma}}

% sections

\newcommand{\summary}{\subsection*{Summary}}
\newcommand{\binding}{\subsection*{Binding}}
\newcommand{\format}{\subsection*{Format}}
\newcommand{\descript}{\subsection*{Description}}
\newcommand{\restrictions}{\subsubsection*{Restrictions}}
\newcommand{\crossreferences}{\subsubsection*{Cross-references}}

% other

\newcommand{\comment}[1]{\color{red}COMMENT: #1}

\newcommand{\command}[1]{\par\fbox{\texttt{#1}}\par}

% environments

\newcommand{\marklinetop}[1]{$\blacktriangledown$\hrulefill \texttt{#1} \hrulefill$\blacktriangledown$}
\newcommand{\marklinebottom}[1]
{$\blacktriangle$\hrulefill \texttt{#1} \hrulefill$\blacktriangle$}

\newenvironment{rulebox}[1]
{%
\newcommand{\boxtext}{#1}
\par\noindent
\marklinetop{\boxtext}
\par\noindent
}
{\par\noindent\marklinebottom{\boxtext}\par}

\newenvironment{cpptext}{\begin{rulebox}{C/C++}}{\end{rulebox}}
\newenvironment{fortrantext}{\begin{rulebox}{Fortran}}{\end{rulebox}}

\newenvironment{nonnormativetext}
{\par\noindent\marklinetop{}\par\noindent \textbf{\sffamily Note --} }
{\par\noindent\marklinebottom{}\par}



% document info
%%%%%%%%%%%%%%%

\title{targetDP Specification \\ Version 0.1.0}
\author{Alan Gray and Kevin Stratford}
\date{\today}

%\includecomment{comment}

\setcounter{tocdepth}{1}

\begin{document}
\pagestyle{empty}
\maketitle

\pagestyle{fancy}
\pagenumbering{roman}
\tableofcontents

\pagenumbering{arabic}

\linenumbers
\input{introduction.tex}
\input{execution_model.tex}
\input{memory_model.tex}
\input{memory_management.tex}
\input{data_parallel_execution.tex}
\input{examples.tex}

\begin{thebibliography}{}
\bibitem{hpcc} Alan Gray and Kevin Stratford, {\it targetDP: an Abstraction of Lattice Based Parallelism with Portable Performance}, Proceedings of 2014 IEEE International Conference on High Performance Computing and Communications (HPCC), 312-315 (2014),  arxiv.org/abs/1405.6162 
\end{thebibliography}{}

\end{document}


