aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-14 08:30:07 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-14 11:25:22 -0500
commit8caef57197bd52cddb5d4b38249bf45cdb7feffb (patch)
tree3c6c7e9e0cd32ddaf33c667f5c82d7da28a052eb /make
parent1739818bf6ceee25007c4a95f58aab5ed592322b (diff)
now make single, double reports and separated extra picture pages
Diffstat (limited to 'make')
-rwxr-xr-xmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/make b/make
index c830f3c..e4ced2b 100755
--- a/make
+++ b/make
@@ -13,18 +13,25 @@ cd graph
python3 ../data.py depwid || python ../data.py depwid
python3 ../data.py nei || python ../data.py nei
cd ..
+mkdir outputs
cd document
+cp ../format.orig.tex ../format.tex
pdftex report.tex || echo "You must install \`pdftex\` (MacTeX, TeXLive, MikTeX, etc)"
+mv pageno.tex ..
+mv report.pdf ../outputs/report-double.pdf
+sed ../format.orig.tex -e 's/\\baselineskip=24pt/\\baselineskip=14pt/g' >../format.tex
+pdftex report.tex
+mv report.pdf ../outputs/report-single.pdf
cd ..
-mkdir outputs
pdftex pics.tex
mv pics.pdf outputs/pics.pdf
-pdftk document/report.pdf cat 1-end 11-12 15-16 output outputs/report.pdf
-pdftk document/report.pdf cat 13-14 output outputs/tables.pdf
+export pageno=$(cat pageno)
+pdftk outputs/report-double.pdf cat $pageno-$(eval $pageno+5) output outputs/graphs-tables.pdf
rm *.log
rm document/report.log
cp assets/* outputs/
cd $orig
+rm format.tex pageno.tex document/pageno.tex
}
create 2>/dev/null