diff --git a/.gitignore b/.gitignore index 38e66a8..859fa16 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ ## Mac OS X metadata files: *.DS_Store +# Bazel +bazel-* diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 0000000..3d4a865 --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,55 @@ +load("@bazel_latex//:latex.bzl", "latex_document") + +latex_document( + name="cv", + srcs=glob([ + "examples/cv/*.tex" + ]) + [":shared_files"], + main="examples/cv.tex", +) + +latex_document( + name="resume", + srcs=glob([ + "examples/resume/*.tex" + ]) + [":shared_files"], + main="examples/resume.tex", +) + +latex_document( + name="coverletter", + srcs=glob([ + "examples/coverletter/*.tex" + ]) + [":shared_files"], + main="examples/coverletter.tex", +) + +# Magical list of available packages (`@bazel_latex//packages:some-package-name`) with their deps +# https://github.com/ProdriveTechnologies/bazel-latex/blob/master/packages/BUILD.bazel +filegroup( + name="shared_files", + srcs=["awesome-cv.cls"] + + glob(["fonts/*.ttf"]) + + [ + "@bazel_latex//packages:array", + "@bazel_latex//packages:enumitem", + "@bazel_latex//packages:geometry", + "@bazel_latex//packages:fancyhdr", + "@bazel_latex//packages:xcolor", + "@bazel_latex//packages:xifthen", + "@bazel_latex//packages:etoolbox", + "@texlive_texmf__texmf-dist__tex__latex__setspace", + "@bazel_latex//packages:fontspec", + "@bazel_latex//packages:unicode-math", + "@bazel_latex//packages:fontawesome", + + "@bazel_latex//packages:xkeyval", + "@texlive_texmf__texmf-dist__tex__latex__roboto", + # https://github.com/silkeh/latex-sourcesanspro + "@texlive_texmf__texmf-dist__tex__latex__sourcesanspro", + "@texlive_texmf__texmf-dist__fonts__opentype__adobe__sourcesanspro", + "@bazel_latex//packages:tcolorbox", + "@bazel_latex//packages:parskip", + "@bazel_latex//packages:hyperref", + ], +) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel new file mode 100644 index 0000000..47e85c4 --- /dev/null +++ b/WORKSPACE.bazel @@ -0,0 +1,12 @@ +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "bazel_latex", + sha256 = "6fee813c68fcb5d24a499178584469465a490b0fb227aa4ef417e427bb004245", + strip_prefix = "bazel-latex-master", + url = "https://github.com/ProdriveTechnologies/bazel-latex/archive/master.tar.gz", +) + +load("@bazel_latex//:repositories.bzl", "latex_repositories") + +latex_repositories() diff --git a/awesome-cv.cls b/awesome-cv.cls index c26c775..7c2ae81 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -161,7 +161,7 @@ % Configuration for fonts %------------------------------------------------------------------------------- % Set the FontAwesome font to be up-to-date. -\newfontfamily\FA[Path=\@fontdir]{FontAwesome} +\setfontfamily\FA[Path=\@fontdir]{FontAwesome} % Set font for header (default is Roboto) \newfontfamily\headerfont[ Path=\@fontdir, diff --git a/examples/cv.tex b/examples/cv.tex index 0e0130d..c119f81 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -95,14 +95,14 @@ % CV/RESUME CONTENT % Each section is imported separately, open each file in turn to modify content %------------------------------------------------------------------------------- -\input{cv/education.tex} -\input{cv/skills.tex} -\input{cv/experience.tex} -\input{cv/extracurricular.tex} -\input{cv/honors.tex} -\input{cv/presentation.tex} -\input{cv/writing.tex} -\input{cv/committees.tex} +\input{examples/cv/education.tex} +\input{examples/cv/skills.tex} +\input{examples/cv/experience.tex} +\input{examples/cv/extracurricular.tex} +\input{examples/cv/honors.tex} +\input{examples/cv/presentation.tex} +\input{examples/cv/writing.tex} +\input{examples/cv/committees.tex} %-------------------------------------------------------------------------------