summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-01-18 16:46:47 -0600
committerToby Vincent <tobyv13@gmail.com>2023-01-18 16:46:47 -0600
commit389ba5f0519205f3264e29f6c2d1016b6bc3e19b (patch)
treeec35fd89c3b968344b904bf2c58a752a8f88a92c
parentaca1fc1c4be8de4f65c96baa2c0707036618b43c (diff)
feat(build): add cond build based on `jobname`
-rw-r--r--.gitignore1
-rw-r--r--.latexmkrc13
-rw-r--r--src/cover_letter.sty19
-rw-r--r--src/cover_letter.tex25
-rw-r--r--src/cover_letter/cover_letter-mozilla.tex9
-rw-r--r--src/cover_letter/cover_letter.tex14
6 files changed, 63 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index 225e68c..fa2353f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+build/
# Created by https://www.toptal.com/developers/gitignore/api/latex
# Edit at https://www.toptal.com/developers/gitignore?templates=latex
diff --git a/.latexmkrc b/.latexmkrc
new file mode 100644
index 0000000..c0c3a17
--- /dev/null
+++ b/.latexmkrc
@@ -0,0 +1,13 @@
+$pdf_mode = 1;
+$pdflatex = 'pdflatex -synctex=1 --interaction=nonstopmode';
+$do_cd = 1;
+$aux_dir = "../build";
+$out_dir = "../build";
+$emulate_aux = 1;
+$clean_ext = "%R-*.glstex %R_contourtmp*.* pdfsync synctex.gz";
+
+if(defined $ENV{JOBNAME}) {
+ $jobname = "%A-$ENV{JOBNAME}";
+} else {
+ $jobname = "%A";
+}
diff --git a/src/cover_letter.sty b/src/cover_letter.sty
new file mode 100644
index 0000000..f1aa3e8
--- /dev/null
+++ b/src/cover_letter.sty
@@ -0,0 +1,19 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{resume}[customization of moderncv]
+
+\newcommand{\@position}{}
+\newcommand{\position}[1]{\renewcommand{\@position}{#1}}
+\newcommand{\makeposition}[0]{\@position{}}
+
+\newcommand{\@intro}{}
+\newcommand{\intro}[1]{\renewcommand{\@intro}{#1}}
+\newcommand{\makeletterintro}[0]{\@intro}
+
+\newcommand{\@outro}{}
+\newcommand{\outro}[1]{\renewcommand{\@outro}{#1}}
+\newcommand{\makeletteroutro}[0]{
+ \@outro{}
+ \linebreak
+ \linebreak
+}
+
diff --git a/src/cover_letter.tex b/src/cover_letter.tex
index 6b716d4..e260db4 100644
--- a/src/cover_letter.tex
+++ b/src/cover_letter.tex
@@ -1,30 +1,19 @@
\input{preamble}
-\recipient{HR Department}{Mozilla\\Portland, OR }
-\date{\today}
-\opening{Dear Sir or Madam,}
-\closing{Thank you for your consideration,}
-\enclosure[Attached]{curriculum vit\ae{}}
+\usepackage{cover_letter}
-\newcommand{\position}{Software Engineer (Privacy and Security)}
+\input{cover_letter/\jobname}
\begin{document}
-
-\makelettertitle
-
-I am contacting you in regard to the \emph{\position} position and would love to discuss the
-opportunity you have.
+\makelettertitle{}
+\makeletterintro{}
I have been involved in software for most of my life, both as a hobby, as well as professionally. I
have found software engineering to be an excellent conduit for my love of problem solving,
engineering, and finding elegant solutions to complex problems. I have high standards for quality
solutions that focus on simplicity, efficiency, and correctness. While I have an affinity for the
-Rust programming language, I have experience many other languages such as C++, Python, and C\#.
-
-I really believe in open source software and the work being done at Mozilla as a whole. I think my
-proficiency for engineering, along with my passion and aptitude for Rust, provide unique
-qualifications for this opportunity.
-
-\makeletterclosing
+Rust, I have experience with many other languages such as C, Python, and C\#.
+\makeletteroutro{}
+\makeletterclosing{}
\end{document}
diff --git a/src/cover_letter/cover_letter-mozilla.tex b/src/cover_letter/cover_letter-mozilla.tex
new file mode 100644
index 0000000..a98e2f8
--- /dev/null
+++ b/src/cover_letter/cover_letter-mozilla.tex
@@ -0,0 +1,9 @@
+\input{cover_letter/cover_letter}
+
+\recipient{HR Department}{Mozilla\\Portland, OR }
+\position{Software Engineer (Privacy and Security)}
+\outro{
+ I really believe in open source software and the work being done at Mozilla as a whole. I
+ think my proficiency for engineering, along with my passion and aptitude for Rust, provide
+ unique qualifications for this opportunity.
+}
diff --git a/src/cover_letter/cover_letter.tex b/src/cover_letter/cover_letter.tex
new file mode 100644
index 0000000..ff879cf
--- /dev/null
+++ b/src/cover_letter/cover_letter.tex
@@ -0,0 +1,14 @@
+\recipient{HR Department}{}
+\date{\today}
+\opening{Dear Sir or Madam,}
+\closing{Thank you for your consideration,}
+\enclosure[Attached]{curriculum vit\ae{}}
+\position{Software Engineer}
+\intro{
+ I am contacting you in regard to the \makeposition{} position and would love to discuss the
+ opportunity you have.
+}
+\outro{
+ I think my proficiency for engineering, along with my passion and aptitude for Rust, provide
+ unique qualifications for this opportunity.
+}