From 97cb5388db3e42fcf9d48e672d7f80815b441aa1 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sun, 1 May 2022 19:14:02 -0400 Subject: [PATCH] Add scaffolding for coverletters --- .gitignore | 1 + Makefile | 23 ++++++++-- coverletter.tex | 112 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 4 deletions(-) create mode 100644 coverletter.tex diff --git a/.gitignore b/.gitignore index 7f1691c..ce9ff34 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ ## Output *.pdf publish/ +build/ diff --git a/Makefile b/Makefile index 4851232..6dc36b4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ # personal resume makefile +LETTERS = $(shell command ls letters/*.tex -1 | sed 's/letters\///' | sed 's/.tex//') + .PHONY: help # Put it first so that "make" without argument is like "make help" # Adapted from: @@ -10,8 +12,21 @@ help: ## List Makefile targets clean: ## Clean up temp resources rm --recursive --force publish/ - rm Awesome-CV/*.log + rm --recursive --force build/ + rm --force Awesome-CV/*.log -pdf: ## Build the resume PDF - mkdir --parents publish/ - xelatex -output-directory=publish/ resume.tex content/ +resume: ## Build the resume PDF + @mkdir --parents publish/ + @xelatex -output-directory=publish/ resume.tex content/ + +$(LETTERS): + @mkdir --parents publish/ + @mkdir --parents build/ + @cp letters/$@.tex build/coverletter-content.tex + @xelatex -output-directory=publish/ coverletter.tex build/ + @mv publish/coverletter.pdf publish/coverletter-$@.pdf + @mv publish/coverletter.log publish/coverletter-$@.log + @mv publish/coverletter.out publish/coverletter-$@.out + @mv publish/coverletter.aux publish/coverletter-$@.aux + +letters: $(LETTERS); ## Build all cover letters, or use to build a specific letter diff --git a/coverletter.tex b/coverletter.tex new file mode 100644 index 0000000..46a9836 --- /dev/null +++ b/coverletter.tex @@ -0,0 +1,112 @@ +%!TEX TS-program = xelatex +%!TEX encoding = UTF-8 Unicode +% Awesome CV LaTeX Template for Cover Letter +% +% This template has been downloaded from: +% https://github.com/posquit0/Awesome-CV +% +% Authors: +% Claud D. Park +% Lars Richter +% +% Template license: +% CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/) +% + + +%------------------------------------------------------------------------------- +% CONFIGURATIONS +%------------------------------------------------------------------------------- +% A4 paper size by default, use 'letterpaper' for US letter +\documentclass[11pt, letterpaper]{awesome-cv} + +% Configure page margins with geometry +\geometry{left=1.4cm, top=.8cm, right=1.4cm, bottom=1.8cm, footskip=.5cm} + +% Color for highlights +% Awesome Colors: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange +% awesome-nephritis, awesome-concrete, awesome-darknight +\colorlet{awesome}{awesome-darknight} +% Uncomment if you would like to specify your own color +% \definecolor{awesome}{HTML}{CA63A8} + +% Colors for text +% Uncomment if you would like to specify your own color +% \definecolor{darktext}{HTML}{414141} +% \definecolor{text}{HTML}{333333} +% \definecolor{graytext}{HTML}{5D5D5D} +% \definecolor{lighttext}{HTML}{999999} +% \definecolor{sectiondivider}{HTML}{5D5D5D} + +% Set false if you don't want to highlight section with awesome color +\setbool{acvSectionColorHighlight}{false} + +% If you would like to change the social information separator from a pipe (|) to something else +\renewcommand{\acvHeaderSocialSep}{\enskip\cdotp\enskip} + +\newcommand*{\letterbody}[1]{\def\@letterbody{#1}} + +% This file doesn't actually exist in the repo, but will be created by the +% makefile +\input{build/coverletter-content.tex} + +%------------------------------------------------------------------------------- +% PERSONAL INFORMATION +% Comment any of the lines below if they are not required +%------------------------------------------------------------------------------- +% Available options: circle|rectangle,edge/noedge,left/right +\name{Ethan}{Paul} +%\position{Systems Administrator / Development Operations Engineer} + +\mobile{+1.617.733.0601} +\email{me@enp.one} +%\dateofbirth{January 1st, 1970} +%\homepage{enpaul.net} +%\github{posquit0} +%\linkedin{posquit0} +% \gitlab{gitlab-id} +% \stackoverflow{SO-id}{SO-name} +% \twitter{@twit} +% \skype{skype-id} +% \reddit{reddit-id} +% \medium{madium-id} +% \kaggle{kaggle-id} +% \googlescholar{googlescholar-id}{name-to-display} +%% \firstname and \lastname will be used +% \googlescholar{googlescholar-id}{} +% \extrainfo{extra information} + +% How the letter is closed +\letterclosing{Sincerely,} +% Any enclosures with the letter +%\letterenclosure[Attached]{Resume} + + +%------------------------------------------------------------------------------- +\begin{document} + +\makecvheader[R] + +% Print the footer with 3 arguments(,
, ) +% Leave any of these blank if they are not needed +\makecvfooter + {\today} + {} + {\href{https://creativecommons.org/licenses/by-nc-nd/4.0/}{CC BY-NC-ND 4.0}} + +% Print the title with above letter information +\makelettertitle + +%------------------------------------------------------------------------------- +% LETTER CONTENT +%------------------------------------------------------------------------------- +\begin{cvletter} + \@letterbody +\end{cvletter} + + +%------------------------------------------------------------------------------- +% Print the signature and enclosures with above letter information +\makeletterclosing + +\end{document}