From b7a58e1da7816facac6c0bd0991fc513c47110ab Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Fri, 3 Jan 2020 14:40:19 -0700 Subject: [PATCH] New style for pandoc --- details.yml | 70 +++++++++++++++++++++++ makefile | 10 ++++ template.tex | 154 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 234 insertions(+) create mode 100644 details.yml create mode 100644 makefile create mode 100644 template.tex diff --git a/details.yml b/details.yml new file mode 100644 index 0000000..dae8126 --- /dev/null +++ b/details.yml @@ -0,0 +1,70 @@ +--- +# Personal details +name: Richard Connor Johnstone +address: 4805 Devonshire St, Boulder, CO +phone: "1 (502) 414-1242" +email: connor@richardconnorjohnstone.com +website: www.rconnorjohnstone.com +github: www.github.com/rconnorjohnstone +linkedin: www.github.com/rconnorjohnstone + +# Sections + +profile: Currently pursuing employment as an Aerospace Software Engineer while earning a Masters in Aerospace Engineering (focus in Astrodynamics) at the University of Colorado – Boulder. + +skills: +- skill: Programming + info: Proficiency in blah blah +- skill: Orbit Determination, Estimation + info: here here +- skill: Trajectory Optimization + info: orbits +- skill: Attitude Control + info: i have attitude +- skill: Docker + info: docker + +experience: +- employer: Palski + title: Associate Systems Engineer + city: Colorado Springs, CO + description: job description +- employer: Lockheed + title: Mechanical Design Engineer II + city: Lexington, KY + description: job description +- employer: Rhodes Systems International + title: Lead Design Engineer + city: Louisville, KY + description: job description + +education: +- major: Aerospace Engineering + university: University of Colorado Boulder + degree: Masters of Science + completed: false +- major: Mechanical Engineering + university: University of Kentucky + degree: Bachelor of Science + completed: true +- major: Physics + university: University of Kentucky + degree: Bachelor of Science + completed: true + +languages: +- python +- c++ +- julia +- haskell +- javascript + +# Settings +mainfont: Roboto +fontsize: 10pt +geometry: letterpaper, left=0.5in, right=0.5in, top=0.5in, bottom=0.5in +par_separation: 7pt +contact_col: "0.32\\textwidth" #these three add to 0.94? +col_sep: "0.02\\textwidth" +profile_col: "0.60\\textwidth" +--- diff --git a/makefile b/makefile new file mode 100644 index 0000000..f5ed9b4 --- /dev/null +++ b/makefile @@ -0,0 +1,10 @@ +TEX = pandoc +src = template.tex details.yml +FLAGS = --pdf-engine=xelatex + +output.pdf : $(src) + $(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS) + +.PHONY: clean +clean : + rm output.pdf diff --git a/template.tex b/template.tex new file mode 100644 index 0000000..f94808d --- /dev/null +++ b/template.tex @@ -0,0 +1,154 @@ +%!TEX TS-program = xelatex +%!TEX encoding = UTF-8 Unicode + +\documentclass[$fontsize$, letterpaper]{article} + +% LAYOUT +%-------------------------------- +% Margins +\usepackage{geometry} +\geometry{$geometry$} + +% Do not indent paragraphs +\setlength\parindent{0in} + +% Enable multicolumns +\usepackage{vwcol} + +% Uncomment to suppress page numbers +\pagenumbering{gobble} + +% LANGUAGE +%-------------------------------- +% Set the main language +$if(lang)$ +\usepackage{polyglossia} +\setmainlanguage{$lang$} +$endif$ + +% TYPOGRAPHY +%-------------------------------- +\usepackage{fontspec} +\usepackage{xunicode} +\usepackage{xltxtra} +% converts LaTeX specials (quotes, dashes etc.) to Unicode +\defaultfontfeatures{Mapping=tex-text} +\setromanfont [Ligatures={Common}, Numbers={OldStyle}]{$mainfont$} +% Cool ampersand +\newcommand{\amper}{{\fontspec[Scale=.95]{$mainfont$}\selectfont\itshape\&}} + +% HEADINGS +%-------------------------------- +\usepackage{sectsty} +\usepackage[normalem]{ulem} +\sectionfont{\rmfamily\mdseries} +\subsectionfont{\rmfamily\mdseries\scshape\normalsize} +\subsubsectionfont{\rmfamily\bfseries\upshape\normalsize} + +% PDF SETUP +%-------------------------------- +\usepackage{hyperref} +\hypersetup +{ + pdfauthor={$name$}, + pdfsubject={$name$'s CV}, + pdftitle={$name$'s CV}, + colorlinks, breaklinks, xetex, bookmarks, + filecolor=black, + urlcolor=[rgb]{0.117,0.682,0.858}, + linkcolor=[rgb]{0.117,0.682,0.858}, + linkcolor=[rgb]{0.117,0.682,0.858}, + citecolor=[rgb]{0.117,0.682,0.858} +} + +% DOCUMENT +%-------------------------------- +\begin{document} + +{\LARGE $name$}\\ +\vspace{-5pt} + +\begin{center} + \fbox{ + \begin{minipage}[t]{$contact_col$} + $address$\\ + $phone$\\ + $if(email)$ + \href{mailto:$email$}{$email$}\\ + $endif$ + $if(website)$ + \href{http://$website$}{$website$}\\ + $endif$ + $if(github)$ + \href{http://$github$}{$github$}\\ + $endif$ + $if(linkedin)$ + \href{http://$linkedin$}{$linkedin$}\\ + $endif$ + \end{minipage} + } + \hspace*{$col_sep$} + \fbox{ + \begin{minipage}[t]{$profile_col$} + + $if(profile)$ + $profile$ + $endif$ + + \end{minipage} + } +\end{center} + +\fbox{ + \begin{minipage}[t]{\textwidth} + \subsection*{Skills} + $if(skills)$ + \begin{itemize} + $for(skills)$ + \item $skills.skill$ -- $skills.info$ + $endfor$ + \end{itemize} + $endif$ + \end{minipage} +} + +\fbox{ + \begin{minipage}{3in} $if(education)$ + \section*{Education} + \noindent + $for(education)$ + $education.degree$ in $education.major$\\ + \emph{$education.university$} + + $if(education.completed)$ + $else$ + Currently attending\\ + $endif$ + $endfor$ + $endif$ + \end{minipage} + \hspace*{$col_sep$} + \begin{minipage}{3in} + $if(languages)$ + \section*{Languages} + $for(languages)$ + \emph{$languages$}\\ + $endfor$ + $endif$ + \end{minipage} +} + +\fbox{ + \begin{minipage}{\textwidth} + \section*{Experience} + \noindent + $for(experience)$ + \textsc{$experience.employer$}\\ + \emph{$experience.title$}\\ + $experience.city$\\ + $experience.description$\\[$par_separation$] + $endfor$ + \end{minipage} +} + +\end{document}