summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--.latexmkrc10
-rw-r--r--.texlabroot (renamed from src/_postamble.tex)0
-rw-r--r--Tectonic.toml62
-rwxr-xr-xbuild.sh20
-rw-r--r--src/_preamble.tex0
-rw-r--r--src/preamble.tex1
7 files changed, 27 insertions, 67 deletions
diff --git a/.gitignore b/.gitignore
index fa2353f..551bdbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
build/
+*.pdf
# 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
index 28ae99a..a5b1b15 100644
--- a/.latexmkrc
+++ b/.latexmkrc
@@ -1,8 +1,8 @@
my $cwd = cwd();
-$pdf_mode = 1;
-$pdflatex = 'pdflatex -synctex=1 --interaction=nonstopmode';
-$aux_dir = "$cwd/build";
-$out_dir = "$cwd/build";
+ensure_path( 'TEXINPUTS', "$cwd/src//" );
+
+@default_files = "src/*.tex";
+@default_excluded_files = "src/preamble.tex";
$do_cd = 1;
-$emulate_aux = 1;
+$pdf_mode = 4;
$clean_ext = "%R-*.glstex %R_contourtmp*.* pdfsync synctex.gz";
diff --git a/src/_postamble.tex b/.texlabroot
index e69de29..e69de29 100644
--- a/src/_postamble.tex
+++ b/.texlabroot
diff --git a/Tectonic.toml b/Tectonic.toml
deleted file mode 100644
index 6001ce9..0000000
--- a/Tectonic.toml
+++ /dev/null
@@ -1,62 +0,0 @@
-[doc]
-name = 'resume'
-bundle = 'https://data1.fullyjustified.net/tlextras-2022.0r0.tar'
-
-[[output]]
-name = 'resume'
-type = 'pdf'
-
-[[output]]
-name = 'isrg'
-type = 'pdf'
-index = 'isrg/resume.tex'
-
-[[output]]
-name = 'lacework'
-type = 'pdf'
-index = 'lacework/resume.tex'
-
-[[output]]
-name = 'long_view_systems'
-type = 'pdf'
-index = 'long_view_systems/resume.tex'
-
-[[output]]
-name = 'mozilla'
-type = 'pdf'
-index = 'mozilla/resume.tex'
-
-[[output]]
-name = 'scythe'
-type = 'pdf'
-index = 'scythe/resume.tex'
-
-[[output]]
-name = 'verana_health'
-type = 'pdf'
-index = 'verana_health/resume.tex'
-
-[[output]]
-name = 'warp'
-type = 'pdf'
-index = 'warp/resume.tex'
-
-[[output]]
-name = 'smartthings'
-type = 'pdf'
-index = 'smartthings/resume.tex'
-
-[[output]]
-name = 'sandboxaq'
-type = 'pdf'
-index = 'sandboxaq/cover_letter.tex'
-
-[[output]]
-name = 'cloudflare'
-type = 'pdf'
-index = 'cloudflare/cover_letter.tex'
-
-[[output]]
-name = 'microsoft'
-type = 'pdf'
-index = 'microsoft/cover_letter.tex'
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..306c572
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+build() {
+ if ! grep '\\begin{document}' "$f" 1>/dev/null; then
+ return
+ fi
+
+ latexmk "$f"
+ pdf="$(printf %s "$f" | sed 's/\.tex$/.pdf/')"
+ out="build/$(dirname "$f" | xargs basename | sed 's/^src$//')"
+ mkdir -p "$out" && cp "$pdf" "$out"
+}
+
+for f in ./src/*.tex; do
+ build "$f"
+done
+
+for f in ./src/**/*.tex; do
+ build "$f"
+done
diff --git a/src/_preamble.tex b/src/_preamble.tex
deleted file mode 100644
index e69de29..0000000
--- a/src/_preamble.tex
+++ /dev/null
diff --git a/src/preamble.tex b/src/preamble.tex
index 223c3c4..27eddc9 100644
--- a/src/preamble.tex
+++ b/src/preamble.tex
@@ -2,6 +2,7 @@
\usepackage[utf8]{inputenc}
\usepackage[top=0.9cm, bottom=0.6cm, left=2cm, right=2cm]{geometry}
+\usepackage{luacode}
\moderncvtheme[blue]{classic}
\setlength{\hintscolumnwidth}{2.8cm}