diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-14 20:52:38 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-14 20:52:38 -0500 |
commit | 22b74df8f6335495ac36eb59774642d469840b06 (patch) | |
tree | 17921f68cd6012a08ebfd61e17613677c3eb1efe | |
parent | 9543c59a5d3e20f00946754e8caf804c89b3ee7d (diff) |
majorly improved make
-rw-r--r-- | document/report.tex | 5 | ||||
-rwxr-xr-x | make | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/document/report.tex b/document/report.tex index ed98a7a..27e44f6 100644 --- a/document/report.tex +++ b/document/report.tex @@ -15,6 +15,7 @@ \include Conclusion;conclusion \vfil\eject + \openout1=pageno\relax \write1{\number\pageno} \closeout1 @@ -25,6 +26,10 @@ \include Appendix B: Tables;tables +\openout1=pageno2\relax +\write1{\number\pageno} +\closeout1 + \vfil\eject \include Appendix C: Pictures;pics @@ -18,6 +18,7 @@ cd document cp ../format.orig.tex ../format.tex pdftex report.tex || echo "You must install \`pdftex\` (MacTeX, TeXLive, MikTeX, etc)" mv pageno.tex .. +mv pageno2.tex .. mv report.pdf ../outputs/report-double.pdf sed ../format.orig.tex -e 's/\\baselineskip=24pt/\\baselineskip=14pt/g' >../format.tex pdftex report.tex @@ -25,12 +26,12 @@ mv report.pdf ../outputs/report-single.pdf cd .. pdftex pics.tex mv pics.pdf outputs/pics.pdf -pdftk outputs/report-double.pdf cat $pageno-$(expr $pageno + 4) output outputs/graphs-tables.pdf +pdftk outputs/report-double.pdf cat $(expr $(cat pageno.tex) + 1)-$(expr $(cat pageno2.tex) + 1) output outputs/graphs-tables.pdf rm *.log rm document/report.log cp assets/* outputs/ +rm format.tex pageno.tex document/pageno.tex pageno2.tex document/pageno2.tex cd $orig -rm format.tex pageno.tex document/pageno.tex } create 2>/dev/null |