%\documentclass[11pt]{article}
%\documentclass[a4paper,11pt]{report}
%\documentclass[11pt]{report}
%\documentclass[a4paper,11pt]{scrartcl}
\documentclass[a4paper,11pt]{scrreprt} %book}
%\usepackage{times}
\usepackage{fullpage,amsmath,placeins,graphicx,color,amssymb,setspace,listings,tikz,amsthm,yfonts,subfigure}
\usepackage{natbib}

\usepackage[linkbordercolor=white,citecolor={1 1 1}]{hyperref}

\usepackage{amsthm} % theorem
	
\newcounter{proof}
\stepcounter{proof}	
\newtheorem{corollary}{Corollary}[proof]

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}

%\lstset{language=c++,numbers=left,numberstyle=\tiny,showstringspaces=false,color=true}
\lstset{language=c++,
   keywords={real, VectorXd, SparseMatrix, string, this, default, exit, float, double,int, break, case,
             catch,continue,else,elseif,end,for,function,Real,Complex,
             global,if,otherwise,persistent,return,switch,try,while,long, unsigned, vector},
   basicstyle=\ttfamily,
   keywordstyle=\color{blue},
   commentstyle=\color{red},
   stringstyle=\color{dkgreen},
   numbers=left,
   numberstyle=\tiny\color{gray},
   stepnumber=1,
   numbersep=10pt,
   backgroundcolor=\color{white},
   tabsize=4,
   showspaces=false,
   showstringspaces=false}


\def\LAPL#1{\nabla^2 {#1}}
\def\VEC#1{\mathbf{#1}}
\def\LBM{ \mathcal{L} ( \mathbb{R}^n ) }
\def\LBO{ \mathcal{L} ( \mathbb{R}^1 ) }
\def\LBT{ \mathcal{L} ( \mathbb{R}^2 ) }
\def\REB{ \mathbb{R} }
\def\REBN{ \mathbb{R}^n }
\def\CENSECA{\alpha(U_{n+1}^m-2U_n^m+U_{n-1}^m)}
%\def\DD#1{\frac{\partial}{\partial #1}}
\def\DD#1{\frac{d}{d #1}}

\author{Trevor Irons \\  
        XRI Geophysics, LLC \\ 
        Trevor.Irons@xrigeo.com   }

\title{FEM4EllipticPDE}
\subtitle{Lemma module v1.0}

\begin{document}

\maketitle

\tableofcontents

\renewcommand{\labelenumi}{(\Roman{enumi})}
\renewcommand{\labelenumii}{(\arabic{enumii})}
\renewcommand{\labelenumiii}{(\roman{enumiii})}

\abstract
	This Lemma module provides a Galerkin-style finite element solution to general elliptic problems. 
	Lemma is an open source geophysical programming API that supports modular plug-ins, such as this one. 
	Lemma may be freely downloaded from \href{http://lemmasoftware.org}{http://lemmasoftware.org}.
	This module is currently closed source. Development of FEM4EllipticPDE started at the 
	Center for Gravity Electrical and Magnetic Studies (CGEM) at the Colorado School of Mines. The modules  
	was completed by XRI Geophysics, LLC. 

\input{chapters/derivation}
\input{chapters/usage}

\input{chapters/magnetics}
\input{chapters/examples}

\bibliographystyle{seg}
\bibliography{nmr}

\end{document}
