diff options
author | Holden Rohrer <hr@hrhr.dev> | 2021-01-20 17:31:00 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2021-01-20 17:31:00 -0500 |
commit | 4dc09d93cc9a6df1f0a7d6b228300252192c1fc0 (patch) | |
tree | a93ac25dbf2f31caaa7b91801b8ded35fe6e9dc0 | |
parent | 00ce84fd393dcbf572ceedd4d7fb15195636a3a7 (diff) |
switched out sed for \input code (more reusable)
-rw-r--r-- | Makefile | 23 | ||||
-rw-r--r-- | fmt/doc.h | 2 | ||||
-rw-r--r-- | poster.tex | 2 | ||||
-rw-r--r-- | report/tables.i | 2 | ||||
-rw-r--r-- | src/results.i | 3 | ||||
-rw-r--r-- | tables.i (renamed from tables.orig.tex) | 4 |
6 files changed, 19 insertions, 17 deletions
@@ -5,10 +5,11 @@ PDFTEX = pdftex PY = python3 -all: report.pdf poster.pdf logbook.pdf +all: report.pdf poster.pdf logbook.pdf report2.pdf poster2.pdf \ +logbook2.pdf clean: - rm -rf {report,poster,logbook}.{pdf,log} qr gen graph imgs + rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs .tex.pdf: $(PDFTEX) -jobname $* $< @@ -34,9 +35,9 @@ img/2019-11-21-2.jpg img/2019-11-21-3.jpg img/2019-12-02-1.jpg src/conc.i \ img/2019-12-13-1.jpg img/2019-12-13-3.rot.jpg fmt/doc.h report/tables.i report.pdf poster.pdf logbook.pdf: fmt/com.h imgs graph/made \ -gen/tables.i fmt/font.h src/mats.i img/2019-12-02-2.jpg \ -img/2019-10-18-2.jpg img/2019-10-18-1.jpg img/2019-11-21-4.jpg \ -img/2019-12-13-2.jpg +tables.i gen/deathtable.i gen/table.i fmt/font.h src/mats.i \ +img/2019-12-02-2.jpg img/2019-10-18-2.jpg img/2019-10-18-1.jpg \ +img/2019-11-21-4.jpg img/2019-12-13-2.jpg imgs: py/data.py py/img.py mkdir -p imgs @@ -46,15 +47,11 @@ gen/dir: mkdir -p gen touch gen/dir -gen/tables.i: tables.orig.tex gen/deathtable gen/table gen/dir - sed -e '/%%DEATHTABLE%%/{r gen/deathtable' -e 'd}' \ - -e '/%%MAINTABLE%%/{r gen/table' -e 'd}' tables.orig.tex >gen/tables.i +gen/deathtable.i: py/data.py py/deathtable.py gen/dir + $(PY) py/deathtable.py > gen/deathtable.i -gen/deathtable: py/data.py py/deathtable.py gen/dir - $(PY) py/deathtable.py > gen/deathtable - -gen/table: py/data.py py/table.py gen/dir - $(PY) py/table.py > gen/table +gen/table.i: py/data.py py/table.py gen/dir + $(PY) py/table.py > gen/table.i graph/dir: mkdir -p graph @@ -1,6 +1,8 @@ % Generic format file pulled out from format.tex +\let\oldinput\input \input color %blue links! +\let\input\oldinput % color tries to redefine input \input fmt/font.h @@ -13,7 +13,9 @@ \input fmt/font.h \input fmt/multicol.h \input fmt/com.h +\let\oldinput\input \input color +\let\input\oldinput \fboxsep=0pt \input poster/palette.h diff --git a/report/tables.i b/report/tables.i index 2042d34..8f2eb5f 100644 --- a/report/tables.i +++ b/report/tables.i @@ -1,4 +1,4 @@ -\input gen/tables.i +\input tables.i {%\baselineskip=13pt \centerline{\deaths} %\global\advance\pics by 1\relax diff --git a/src/results.i b/src/results.i index 44df4e7..73b8538 100644 --- a/src/results.i +++ b/src/results.i @@ -1,4 +1,5 @@ -\input gen/tables.i +\input tables.i + \font\tablefont=cmr10 at 11pt \font\lrgtbl=cmr10 at 14pt {\offinterlineskip\par} diff --git a/tables.orig.tex b/tables.i index 72d67ba..511b818 100644 --- a/tables.orig.tex +++ b/tables.i @@ -8,7 +8,7 @@ \setbox0=\vbox{\offinterlineskip \halign{\vrule\cell{##}&&\cell{##}\cr\noalign{\hrule} Trial Size& Date& Introduced& Deaths& Pits formed\cr\noalign{\hrule} -%%DEATHTABLE%% +\input gen/deathtable.i }}% \dimen0\wd0 \vbox{\box0{\hsize\dimen0\caption{Number of Deaths and Pits Successfully @@ -21,7 +21,7 @@ Formed in Each Trial/Subtrial}}}% \halign{\vrule\cell{##}&&\cell{##}\cr\multispan{4}\leaders\hrule\hfil\cr Dimensions (in)& Pit Depth (cm)& Pit Width (cm)& Nearest Neighbor (cm)\cr\multispan{4}\leaders\hrule\hfil\cr -%%MAINTABLE%% +\input gen/table.i }}% \dimen0\wd0 \vbox{\box0\hbox to \dimen0{\hss\vbox{\caption{The Pit Depths, Widths, and |