New style for pandoc

This commit is contained in:
Connor Johnstone
2020-01-03 14:40:19 -07:00
parent 3ea2428ecd
commit b7a58e1da7
3 changed files with 234 additions and 0 deletions

70
details.yml Normal file
View File

@@ -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"
---

10
makefile Normal file
View File

@@ -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

154
template.tex Normal file
View File

@@ -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}