Add scaffolding for coverletters

This commit is contained in:
Ethan Paul 2022-05-01 19:14:02 -04:00
parent 6881580482
commit 97cb5388db
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A
3 changed files with 132 additions and 4 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@
## Output
*.pdf
publish/
build/

View File

@ -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 <letter name> to build a specific letter

112
coverletter.tex Normal file
View File

@ -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 <posquit0.bj@gmail.com>
% Lars Richter <mail@ayeks.de>
%
% 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(<left>, <center>, <right>)
% 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}