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

% 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[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
}

\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]{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}
\author{Alan Gray and Kevin Stratford}
\date{}

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

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

\pagenumbering{arabic}

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

%\appendix

%Bibliography
%1. Extending \OpenMP to Survive the Heterogeneous Multi-core Era. Eduard Ayguade, Rosa M. Badia, Pieter Bellens, Daniel Cabrera, Alejandro Duran. 
%2. CAPS HMPP. http://www.caps-entreprise.com. [Online] [Cited: November 22, 2009.]
%3. hiCUDA: a high-level directive-based langauge for GPU programming. T.D. Han, T.S. Abdelrahman. Washington, D.C. : s.n., 2009. Proceedings of 2nd Workshop on General Purpose Processing of Graphics Processing Units (GPGPU-2). pp. 52-61.
%4. PGI | Resources | Accelerator. http://www.pgroup.com/resources/accel.htm. [Online] [Cited: November 22, 2009.]
%5. \OpenMP ARB. \OpenMP Application Program Interface Version 3.0. \OpenMP.org>>\OpenMP Specifications. [Online] May 2008. [Cited: November 22, 2009.] http://openmp.org/wp/openmp-specifications.

% don't forget to comment this for final version
% \input{tests}

\end{document}


