
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Journal Article
% LaTeX Template
% Version 1.3 (9/9/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Frits Wenneker (http://www.howtotex.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[twoside]{article}

\usepackage{lipsum} % Package to generate dummy text throughout this template

\usepackage[sc]{mathpazo} % Use the Palatino font
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\linespread{1.05} % Line spacing - Palatino needs more space between lines
\usepackage{microtype} % Slightly tweak font spacing for aesthetics

\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins
\usepackage{multicol} % Used for the two-column layout of the document
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures
\usepackage{booktabs} % Horizontal rules in tables
\usepackage{float} % Required for tables and figures in the multi-column environment - they need to be placed in specific locations with the [H] (e.g. \begin{table}[H])
\usepackage{hyperref} % For hyperlinks in the PDF

\usepackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text
\usepackage{paralist} % Used for the compactitem environment which makes bullet points with less space between them

\usepackage{abstract} % Allows abstract customization
\renewcommand{\abstractnamefont}{\normalfont\bfseries} % Set the "Abstract" text to bold
\renewcommand{\abstracttextfont}{\normalfont\small\itshape} % Set the abstract itself to small italic text

\usepackage{titlesec} % Allows customization of titles
\renewcommand\thesection{\Roman{section}} % Roman numerals for the sections
\renewcommand\thesubsection{\Roman{subsection}} % Roman numerals for subsections
\titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{} % Change the look of the section titles
\titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{} % Change the look of the section titles

\usepackage{listings}
\usepackage{color}
\definecolor{lightgray}{rgb}{.9,.9,.9}
\definecolor{darkgray}{rgb}{.4,.4,.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
\lstdefinelanguage{JavaScript}{
  keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with},
  morecomment=[l]{//},
  morecomment=[s]{/*}{*/},
  morestring=[b]',
  morestring=[b]",
  ndkeywords={class, export, boolean, throw, implements, import, this},
  keywordstyle=\color{blue}\bfseries,
  ndkeywordstyle=\color{darkgray}\bfseries,
  identifierstyle=\color{black},
  commentstyle=\color{purple}\ttfamily,
  stringstyle=\color{red}\ttfamily,
  sensitive=true
}

\lstset{
   language=JavaScript,
   backgroundcolor=\color{lightgray},
   extendedchars=true,
   basicstyle=\footnotesize\ttfamily,
   showstringspaces=false,
   showspaces=false,
   numbers=left,
   numberstyle=\footnotesize,
   numbersep=9pt,
   tabsize=2,
   breaklines=true,
   showtabs=false,
   captionpos=b
}

\usepackage{fancyhdr} % Headers and footers
\pagestyle{fancy} % All pages have headers and footers
\fancyhead{} % Blank out the default header
\fancyfoot{} % Blank out the default footer
\fancyhead[C]{Running title $\bullet$ November 2012 $\bullet$ Vol. XXI, No. 1} % Custom header text
\fancyfoot[RO,LE]{\thepage} % Custom footer text

%----------------------------------------------------------------------------------------
% TITLE SECTION
%----------------------------------------------------------------------------------------

\title{\vspace{-15mm}\fontsize{24pt}{10pt}\selectfont\textbf{Article Title}} % Article title

\author{
\large
\textsc{Carl A.~Bauer}\thanks{}\\[2mm] % Your name
%\normalsize The Internet \\ % Your institution
\normalsize \href{mailto:carl.a.bauer@gmail.com}{carl.a.bauer@gmail.com} % Your email address
\vspace{-5mm}
}
\date{}

%----------------------------------------------------------------------------------------

\begin{document}

\maketitle % Insert title

\thispagestyle{fancy} % All pages have headers and footers

%----------------------------------------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------------------------------------

\begin{abstract}

\noindent Yet another javascript packager.

\end{abstract}

%----------------------------------------------------------------------------------------
% ARTICLE CONTENTS
%----------------------------------------------------------------------------------------

%\begin{multicols}{2} % Two-column layout throughout the main article text

\section{Introduction}


%------------------------------------------------

\section{Dependencies}

There are two kinds of dependencies, \emph{static} and \emph{dynamic}.
A static dependency is merely a technique for splitting up (and
sharing) your code; a developer could easily replace static
dependencies with copied and pasted code in the dependent module
(resulting in a giant mess) and the program would run identically as
before. The code in the dependent module need not be run to determine
its static dependencies; therefore, tools like \textsc{browserify} can
exist to bundle up static dependencies for use in the browser.

Dynamic dependencies, on the other hand, imply that the code in the
dependency is required only under certain conditions. That is, the
dependent module code \emph{must run} to determine whether or not a
dynamic dependency should be loaded.

A static or dynamic dependency between modules $i$ and $j$ (where
module $i$ depends on module $j$) will be specified by the symbol
$d^{(s)}_{i,j}$ or $d^{(s)}_{i,j}$, respectively.

Following the CommonJS format (for static deps), a module defines
static dependencies with
calls to \lstinline{require('module_name')}
and dynamic dependencies by declaring a string literal *immediately*
followed by the comment: \lstinline{/*module*/}. For example:

\begin{lstlisting}[language=JavaScript]
var through = require('through');   // static
var react = 'react'/*module*/;      // dynamic
\end{lstlisting}

\section{Bundle}

A \emph{bundle} is a set of modules defined by a single entry-point module.
The set is formed by first adding the entry module to the empty set,
then following the entry module's static dependencies (recursively),
adding each visited module to the set. We are talking about formal
sets here, so if a module is visited twice in the dependency traverse, it
occurs only once in the final set.

\begin{equation}
b(i) = \{\, j \, | \, j \in \, c^{(s)}(i,j) \,\}
\end{equation}


Every module, m, has a set of reachable dynamic dependencies
defined as the set of all dynamic dependencies defined in the modules of
the bundle found with 

\begin{equation}
D^{(d)}(i) = \{\, k \, | \, k \in \, d^{(d)}(j), \, j \in b(i) \, \}
\end{equation}

For example, an
entry module for a bundle can access \emph{all} dynamic dependencies defined
in the bundle, whereas a static dependency of the entry module (also in
the same bundle.

%------------------------------------------------

\section{State}

A state identifies which 

%------------------------------------------------

\section{Discussion}

\subsection{Subsection One}


\subsection{Subsection Two}


%----------------------------------------------------------------------------------------
% REFERENCE LIST
%----------------------------------------------------------------------------------------

\begin{thebibliography}{99} % Bibliography - this is intentionally simple in this template

\bibitem[Figueredo and Wolf, 2009]{Figueredo:2009dg}
Figueredo, A.~J. and Wolf, P. S.~A. (2009).
\newblock Assortative pairing and life history strategy - a cross-cultural
  study.
\newblock {\em Human Nature}, 20:317--330.
 
\end{thebibliography}

%----------------------------------------------------------------------------------------

%\end{multicols}

\end{document}



