aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rwxr-xr-xdata/maketables.sh9
-rw-r--r--data/tables.orig.tex6
3 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 243684e..2145259 100644
--- a/Makefile
+++ b/Makefile
@@ -44,3 +44,7 @@ outputs/qr.png:
outputs/qr-source.png:
qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png
+
+
+data/tables.tex:
+ data/maketables.sh
diff --git a/data/maketables.sh b/data/maketables.sh
new file mode 100755
index 0000000..0f043ad
--- /dev/null
+++ b/data/maketables.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+export TABLE=`mktemp`
+export DEATHTABLE=`mktemp`
+echo $TABLE
+python data.py deathtable > $DEATHTABLE
+python data.py table > $TABLE
+sed -e "/%%DEATHTABLE%%/{r $DEATHTABLE" -e "d}" -e "/%%MAINTABLE%%/{r $TABLE" -e "d}" <data/tables.orig.tex >data/tables.tex
+rm $DEATHTABLE $TABLE
diff --git a/data/tables.orig.tex b/data/tables.orig.tex
new file mode 100644
index 0000000..3e2de5f
--- /dev/null
+++ b/data/tables.orig.tex
@@ -0,0 +1,6 @@
+\def\deaths{%
+ %%DEATHTABLE%%{Number of Deaths and Pits Successfully Formed in Each Trial/Subtrial}
+}
+\def\territory{%
+ %%MAINTABLE%%{The Pit Depths, Widths, and ``Territory,'' Observed in Each Trial}
+}