From e3675ef3e0eda98482afc093b15fccb5b643a040 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 6 Feb 2020 23:58:54 -0500 Subject: tables programatically generated from python scripts --- data/maketables.sh | 9 +++++++++ data/tables.orig.tex | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100755 data/maketables.sh create mode 100644 data/tables.orig.tex (limited to 'data') 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.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} +} -- cgit