## Change delimiters for Cheetah
#compiler-settings
cheetahVarStartToken = ;
directiveStartToken = !
#end compiler-settings

\documentclass[margin,line]{res}

\usepackage{color}
\definecolor{linkcolor}{RGB}{50,80,130}

% TODO: Printable target should not color links and should display full URLs
% instead of \href
\usepackage{hyperref}
\hypersetup{
  pdfborder={0 0 0 0},
  colorlinks=true,
  urlcolor=linkcolor
}

% Disable ligatures (messes with search in pdf files)
% TODO: Add another make target (such as printable) that does not do this
\usepackage{microtype}
\DisableLigatures{encoding = *, family = * }

% Change some fonts
\renewcommand{\namefont}{\LARGE\emph}
\renewcommand{\sectionfont}{\large\bf\sc}

% Margins, spacing, etc.
\topmargin -.3in
\oddsidemargin -.5in
\evensidemargin -.5in
\textwidth=6.0in
\textheight=9.5in
\itemsep=0in
\parsep=0in
\pagestyle{plain}  % Do want page numbers

\begin{document}
\begin{sloppypar} % So long words will wrap to the next line instead of overflowing

\name{;contact.name}
\address{;contact.github\hspace{1cm};contact.phone\hspace{1cm};contact.email}

\begin{resume}

\section {Work Experience}

\begin{format}
  \employer{l}\title{r}\\
  \location{l}\dates{r}\\
  \body\\
\end{format}

!for ;position in ;work
    \employer{\textbf{;position.employer}}
    \title{;position.title}
    \location{;position.location}
    \dates{;position.dates}
    \begin{position}
        \vspace{-.3cm}
        !if ;position.description
            \begin{itemize}
            !for ;point in ;position.description
                \item ;point
            !end for
            \end{itemize}
        !else
            \vspace{-.2cm}
        !end if
    \end{position}
!end for


\section{Skills}
!for ;categoryMap in ;skills
    !for ;category, ;points in ;categoryMap.items()
        {\bf ;category}
        \begin{itemize}
        !for ;point in ;points
            \item ;point
        !end for
        \end{itemize}
    !end for
!end for


\section {University Activities}

\begin{format}
  \title{l}\location{r}\\
  \body\\
\end{format}

!for ;activity in ;university
    \title{\textbf{;activity.who}}
    \location{;activity.when}
    \begin{position}
        !if ;activity.what
            ;activity.what
        !else
            \vspace{-0.5cm}
        !end if
    \end{position}
!end for


\section {High School Activities}

!for ;activity in ;highSchool
    \title{\textbf{;activity.who}}
    \location{;activity.when}
    \begin{position}
        !if ;activity.what
            ;activity.what
        !else
            \vspace{-0.5cm}
        !end if
    \end{position}
!end for


\section{Education}

\begin{format}
  \title{l}\\
  \location{l}\dates{r}\\
  \body\\
\end{format}

!for ;school in ;education
    \title{\textbf{;school.degree}}
    \dates{;school.dates}
    \location{;school.school}
    \begin{position}
        \vspace{-.3cm}
        !if ;school.description
            \begin{itemize}
            !for ;point in ;school.description
                \item ;point
            !end for
            \end{itemize}
        !else
            \vspace{-.2cm}
        !end if
    \end{position}
!end for


\section{Awards}
\begin{itemize}
    !for ;award in ;awards
        \item ;award
    !end for
\end{itemize}


\section{Interests}
;interests


\vfill

\end{resume}
\end{sloppypar}
\end{document}
