diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .latexmkrc | 10 | ||||
-rw-r--r-- | .texlabroot (renamed from src/_postamble.tex) | 0 | ||||
-rw-r--r-- | Tectonic.toml | 62 | ||||
-rwxr-xr-x | build.sh | 20 | ||||
-rw-r--r-- | src/_preamble.tex | 0 | ||||
-rw-r--r-- | src/preamble.tex | 1 |
7 files changed, 27 insertions, 67 deletions
@@ -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 @@ -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} |