Updated some old things and began a new version
This commit is contained in:
4
colors.yaml
Normal file
4
colors.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
primary: "a0a19f"
|
||||
secondary: "ffffff"
|
||||
tertiary: "a08069"
|
||||
text: "000000"
|
||||
@@ -18,7 +18,7 @@ links:
|
||||
icon: "\\faGithub"
|
||||
- link: http://www.linkedin.com/rconnorjohnstone
|
||||
display: rconnorjohnstone
|
||||
icon: "\\faLinkedinSquare"
|
||||
icon: "\\faLinkedin"
|
||||
# Sections
|
||||
profile: Currently employed as an Aerospace Systems Engineer at Palski and Associates while earning a Master's in Aerospace Engineering, with a focus in Astrodynamics from the University of Colorado -- Boulder.
|
||||
|
||||
|
||||
25
makefile
25
makefile
@@ -1,15 +1,18 @@
|
||||
TEX = pandoc
|
||||
src = template.tex details.yml
|
||||
src_contract = template_contract.tex details.yml
|
||||
FLAGS = --pdf-engine=xelatex
|
||||
TEX = xelatex
|
||||
src = single_page.tex colors.yaml
|
||||
PRIMARY = $(shell yq e .primary colors.yaml)
|
||||
SECONDARY = $(shell yq e .secondary colors.yaml)
|
||||
TERTIARY = $(shell yq e .tertiary colors.yaml)
|
||||
TEXT = $(shell yq e .text colors.yaml)
|
||||
|
||||
output.pdf : $(src)
|
||||
$(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)
|
||||
|
||||
.PHONY: contract
|
||||
contract : $(src_contract)
|
||||
$(TEX) $(filter-out $<,$^ ) -o output_contract.pdf --template=$< $(FLAGS)
|
||||
single_page.pdf : $(src)
|
||||
sed -e "s/\$$primary/$(PRIMARY)/g" \
|
||||
-e "s/\$$secondary/$(SECONDARY)/g" \
|
||||
-e "s/\$$tertiary/$(TERTIARY)/g" \
|
||||
-e "s/\$$text/$(TEXT)/g" \
|
||||
single_page.tex > single_page_src.tex
|
||||
$(TEX) -o $(FLAGS) single_page_src.tex
|
||||
|
||||
.PHONY: clean
|
||||
clean :
|
||||
rm output.pdf output_contract.pdf
|
||||
rm single_page.pdf single_page_src.tex
|
||||
|
||||
15
makefile.old
Normal file
15
makefile.old
Normal file
@@ -0,0 +1,15 @@
|
||||
TEX = pandoc
|
||||
src = template.tex details.yml
|
||||
src_contract = template_contract.tex details.yml
|
||||
FLAGS = --pdf-engine=xelatex
|
||||
|
||||
output.pdf : $(src)
|
||||
$(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)
|
||||
|
||||
.PHONY: contract
|
||||
contract : $(src_contract)
|
||||
$(TEX) $(filter-out $<,$^ ) -o output_contract.pdf --template=$< $(FLAGS)
|
||||
|
||||
.PHONY: clean
|
||||
clean :
|
||||
rm output.pdf output_contract.pdf
|
||||
126
single_page.tex
Normal file
126
single_page.tex
Normal file
@@ -0,0 +1,126 @@
|
||||
%!TEX TS-program = xelatex
|
||||
%!TEX encoding = UTF-8 Unicode
|
||||
|
||||
\documentclass[11pt, letterpaper]{article}
|
||||
|
||||
% LAYOUT
|
||||
%--------------------------------
|
||||
% Margins
|
||||
\usepackage{geometry}
|
||||
\geometry{margin=0in}
|
||||
|
||||
% Do not indent paragraphs
|
||||
\setlength\parindent{0in}
|
||||
|
||||
% Enable multicolumns
|
||||
\usepackage{vwcol}
|
||||
\usepackage{multicol}
|
||||
|
||||
% Colors
|
||||
\usepackage{xcolor}
|
||||
\definecolor{sidebar}{HTML}{$primary}
|
||||
\definecolor{content}{HTML}{$secondary}
|
||||
\definecolor{topbar}{HTML}{$tertiary}
|
||||
\definecolor{text}{HTML}{$text}
|
||||
\definecolor{accent}{HTML}{$tertiary}
|
||||
\color{text}
|
||||
|
||||
% Uncomment to suppress page numbers
|
||||
\pagenumbering{gobble}
|
||||
|
||||
% LANGUAGE
|
||||
%--------------------------------
|
||||
% Set the main language
|
||||
% List Indents
|
||||
\usepackage{enumitem}
|
||||
|
||||
% TYPOGRAPHY
|
||||
%--------------------------------
|
||||
% Font Awesome
|
||||
\usepackage{fontawesome5}
|
||||
\usepackage{fontspec}
|
||||
\usepackage{xunicode}
|
||||
\usepackage{xltxtra}
|
||||
% converts LaTeX specials (quotes, dashes etc.) to Unicode
|
||||
\defaultfontfeatures{Mapping=tex-text}
|
||||
\setromanfont [Ligatures={Common}, Numbers={OldStyle}]{Roboto}
|
||||
% Cool ampersand
|
||||
\newcommand{\amper}{{\fontspec[Scale=.95]{Roboto}\selectfont\itshape\&}}
|
||||
|
||||
% GRAPHICS
|
||||
\usepackage{tikz}
|
||||
\usepackage{eso-pic}
|
||||
|
||||
% HEADINGS
|
||||
%--------------------------------
|
||||
\usepackage{sectsty}
|
||||
\usepackage[normalem]{ulem}
|
||||
\sectionfont{\rmfamily\mdseries}
|
||||
\subsectionfont{\rmfamily\mdseries\scshape\normalsize}
|
||||
\subsubsectionfont{\rmfamily\bfseries\upshape\normalsize}
|
||||
|
||||
% SHAMELESSLY STOLEN STUFF
|
||||
% ----------------------------------------------------------------------------
|
||||
% based on https://tex.stackexchange.com/questions/65731
|
||||
\makeatletter
|
||||
\def\cv@hrulefill{{\color{accent}\leavevmode\leaders\hrule height 1pt\hfill\kern\z@}}
|
||||
|
||||
% line before and after text (some tweaking is required here)
|
||||
% based on https://tex.stackexchange.com/questions/15119
|
||||
\NewDocumentCommand{\ruleline}{m}{\par\noindent\raisebox{\baselineskip/4}{\makebox[\linewidth]{\cv@hrulefill\hspace{1ex}\raisebox{-\baselineskip/4}{#1}\hspace{1ex}\cv@hrulefill}}}
|
||||
\makeatother
|
||||
|
||||
% PDF SETUP
|
||||
%--------------------------------
|
||||
\usepackage{hyperref}
|
||||
\hypersetup
|
||||
{
|
||||
pdfauthor={Connor Johnstone},
|
||||
pdfsubject={Connor Johnstone's CV},
|
||||
pdftitle={Connor Johnstone's CV},
|
||||
colorlinks, breaklinks, xetex, bookmarks,
|
||||
filecolor=black,
|
||||
urlcolor=[HTML]{$secondary},
|
||||
linkcolor=[HTML]{$secondary},
|
||||
citecolor=[HTML]{$secondary}
|
||||
}
|
||||
|
||||
%=============================================================================
|
||||
\begin{document}
|
||||
|
||||
% Basically the margins of each box section
|
||||
\setlength\fboxsep{10pt}
|
||||
% Set this to 1pt to see the box outlines
|
||||
\setlength\fboxrule{1pt}
|
||||
|
||||
% BACKGROUND -----------------------------------------------------------------
|
||||
\hspace{-10pt}
|
||||
\vspace{0.15in}
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\filldraw[sidebar, opacity=0.6] (current page.north west) -- (current page.south west) -- (2.75in,-12in) -- (2.75in,1in) -- cycle;
|
||||
\filldraw[topbar, opacity=0.6] (current page.north west) -- (0,-0.7in) -- (10in,-1.4in) -- (current page.north east) -- cycle;
|
||||
\filldraw[white] (1.325in,-0.79275in) circle (0.6in);
|
||||
\end{tikzpicture}
|
||||
|
||||
% TOP BAR --------------------------------------------------------------------
|
||||
\hspace{3.25in}
|
||||
\noindent\fbox{%
|
||||
\begin{minipage}[t][0.4in]{4.5in}
|
||||
\begin{center}
|
||||
\Huge Richard \strong{Connor} Johnstone
|
||||
\end{center}
|
||||
\end{minipage}}
|
||||
|
||||
% LEFT SIDEBAR ---------------------------------------------------------------
|
||||
\vspace{0.6in}
|
||||
\noindent\fbox{%
|
||||
\begin{minipage}[t][9in]{2.35in}
|
||||
Test text
|
||||
\end{minipage}}
|
||||
\hspace{-5pt}
|
||||
% MAIN CONTENT ---------------------------------------------------------------
|
||||
\noindent\fbox{%
|
||||
\begin{minipage}[t][9in]{\dimexpr\textwidth-2\fboxsep-2.35in\relax}
|
||||
Test text
|
||||
\end{minipage}}
|
||||
\end{document}
|
||||
126
single_page_src.tex
Normal file
126
single_page_src.tex
Normal file
@@ -0,0 +1,126 @@
|
||||
%!TEX TS-program = xelatex
|
||||
%!TEX encoding = UTF-8 Unicode
|
||||
|
||||
\documentclass[11pt, letterpaper]{article}
|
||||
|
||||
% LAYOUT
|
||||
%--------------------------------
|
||||
% Margins
|
||||
\usepackage{geometry}
|
||||
\geometry{margin=0in}
|
||||
|
||||
% Do not indent paragraphs
|
||||
\setlength\parindent{0in}
|
||||
|
||||
% Enable multicolumns
|
||||
\usepackage{vwcol}
|
||||
\usepackage{multicol}
|
||||
|
||||
% Colors
|
||||
\usepackage{xcolor}
|
||||
\definecolor{sidebar}{HTML}{a0a19f}
|
||||
\definecolor{content}{HTML}{ffffff}
|
||||
\definecolor{topbar}{HTML}{a08069}
|
||||
\definecolor{text}{HTML}{000000}
|
||||
\definecolor{accent}{HTML}{a08069}
|
||||
\color{text}
|
||||
|
||||
% Uncomment to suppress page numbers
|
||||
\pagenumbering{gobble}
|
||||
|
||||
% LANGUAGE
|
||||
%--------------------------------
|
||||
% Set the main language
|
||||
% List Indents
|
||||
\usepackage{enumitem}
|
||||
|
||||
% TYPOGRAPHY
|
||||
%--------------------------------
|
||||
% Font Awesome
|
||||
\usepackage{fontawesome5}
|
||||
\usepackage{fontspec}
|
||||
\usepackage{xunicode}
|
||||
\usepackage{xltxtra}
|
||||
% converts LaTeX specials (quotes, dashes etc.) to Unicode
|
||||
\defaultfontfeatures{Mapping=tex-text}
|
||||
\setromanfont [Ligatures={Common}, Numbers={OldStyle}]{Roboto}
|
||||
% Cool ampersand
|
||||
\newcommand{\amper}{{\fontspec[Scale=.95]{Roboto}\selectfont\itshape\&}}
|
||||
|
||||
% GRAPHICS
|
||||
\usepackage{tikz}
|
||||
\usepackage{eso-pic}
|
||||
|
||||
% HEADINGS
|
||||
%--------------------------------
|
||||
\usepackage{sectsty}
|
||||
\usepackage[normalem]{ulem}
|
||||
\sectionfont{\rmfamily\mdseries}
|
||||
\subsectionfont{\rmfamily\mdseries\scshape\normalsize}
|
||||
\subsubsectionfont{\rmfamily\bfseries\upshape\normalsize}
|
||||
|
||||
% SHAMELESSLY STOLEN STUFF
|
||||
% ----------------------------------------------------------------------------
|
||||
% based on https://tex.stackexchange.com/questions/65731
|
||||
\makeatletter
|
||||
\def\cv@hrulefill{{\color{accent}\leavevmode\leaders\hrule height 1pt\hfill\kern\z@}}
|
||||
|
||||
% line before and after text (some tweaking is required here)
|
||||
% based on https://tex.stackexchange.com/questions/15119
|
||||
\NewDocumentCommand{\ruleline}{m}{\par\noindent\raisebox{\baselineskip/4}{\makebox[\linewidth]{\cv@hrulefill\hspace{1ex}\raisebox{-\baselineskip/4}{#1}\hspace{1ex}\cv@hrulefill}}}
|
||||
\makeatother
|
||||
|
||||
% PDF SETUP
|
||||
%--------------------------------
|
||||
\usepackage{hyperref}
|
||||
\hypersetup
|
||||
{
|
||||
pdfauthor={Connor Johnstone},
|
||||
pdfsubject={Connor Johnstone's CV},
|
||||
pdftitle={Connor Johnstone's CV},
|
||||
colorlinks, breaklinks, xetex, bookmarks,
|
||||
filecolor=black,
|
||||
urlcolor=[HTML]{ffffff},
|
||||
linkcolor=[HTML]{ffffff},
|
||||
citecolor=[HTML]{ffffff}
|
||||
}
|
||||
|
||||
%=============================================================================
|
||||
\begin{document}
|
||||
|
||||
% Basically the margins of each box section
|
||||
\setlength\fboxsep{10pt}
|
||||
% Set this to 1pt to see the box outlines
|
||||
\setlength\fboxrule{1pt}
|
||||
|
||||
% BACKGROUND -----------------------------------------------------------------
|
||||
\hspace{-10pt}
|
||||
\vspace{0.15in}
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\filldraw[sidebar, opacity=0.6] (current page.north west) -- (current page.south west) -- (2.75in,-12in) -- (2.75in,1in) -- cycle;
|
||||
\filldraw[topbar, opacity=0.6] (current page.north west) -- (0,-0.7in) -- (10in,-1.4in) -- (current page.north east) -- cycle;
|
||||
\filldraw[white] (1.325in,-0.79275in) circle (0.6in);
|
||||
\end{tikzpicture}
|
||||
|
||||
% TOP BAR --------------------------------------------------------------------
|
||||
\hspace{3.25in}
|
||||
\noindent\fbox{%
|
||||
\begin{minipage}[t][0.4in]{4.5in}
|
||||
\begin{center}
|
||||
\Huge Richard \strong{Connor} Johnstone
|
||||
\end{center}
|
||||
\end{minipage}}
|
||||
|
||||
% LEFT SIDEBAR ---------------------------------------------------------------
|
||||
\vspace{0.6in}
|
||||
\noindent\fbox{%
|
||||
\begin{minipage}[t][9in]{2.35in}
|
||||
Test text
|
||||
\end{minipage}}
|
||||
\hspace{-5pt}
|
||||
% MAIN CONTENT ---------------------------------------------------------------
|
||||
\noindent\fbox{%
|
||||
\begin{minipage}[t][9in]{\dimexpr\textwidth-2\fboxsep-2.35in\relax}
|
||||
Test text
|
||||
\end{minipage}}
|
||||
\end{document}
|
||||
@@ -40,7 +40,7 @@ $endif$
|
||||
|
||||
% TYPOGRAPHY
|
||||
%--------------------------------
|
||||
\usepackage{fontawesome}
|
||||
\usepackage{fontawesome5}
|
||||
\usepackage{fontspec}
|
||||
\usepackage{xunicode}
|
||||
\usepackage{xltxtra}
|
||||
|
||||
Reference in New Issue
Block a user