aboutsummaryrefslogtreecommitdiff
path: root/tables.i
blob: b1cad689ed54d7148ee3ca144cfec7e22d5079ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\def\multirow#1#2{{\count0=#1\advance\count0 by -1%
    \dimen0=\rowht\multiply\dimen0 by \count0\smash{\lower\dimen0\hbox{\hss#2\hss}}}}
\def\cline{\omit\vrule\hfil\vrule&\multispan{3}{\leaders\hrule\hfil}\cr}
\newskip\tableskipamount\tableskipamount=2pt plus 1fill
\def\tableskip{\hskip\tableskipamount}
\def\goodstrut{{\setbox0\hbox{(}\dimen0\ht0\vrule width 0pt height 1.2\dimen0 depth .2\dimen0}}
\def\cell#1{\tableskip\goodstrut\ignorespaces #1\unskip\tableskip\vrule}

\def\vardeaths#1{%
\setbox0=\vbox{\offinterlineskip
\halign{\vrule\cell{##}&&\cell{##}\cr\noalign{\hrule}
Trial Size& Date& Introduced& Deaths& Pits formed\cr\noalign{\hrule}
\input gen/deathtable.i
}}%
\dimen0\wd0
\vbox{\box0{\hsize\dimen0\caption{#1}}}%
}
\def\deaths{\vardeaths{Number of Deaths and Pits Successfully Formed in
Each Trial/Subtrial}}

\def\territory{%
\setbox0=\vbox{\strut\hrule}\dimen0=.5\ht0
\edef\rowht{\the\dimen0}
\setbox0=\vbox{\offinterlineskip
\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
\input gen/table.i
}}%
\dimen0\wd0
\vbox{\box0\hbox to \dimen0{\hss\vbox{\caption{The Pit Depths, Widths, and
``Territory,'' Observed in Each Trial}}\hss}}%
}

\def\tabrule{\noalign{\hrule}}
\def\stats#1{%
\setbox0=\vbox{\offinterlineskip
\halign{\vrule\cell{##}&&\cell{##}\cr
\input gen/deathtable2.i
}}%
\dimen0\wd0
\vbox{\box0\hbox to \dimen0{\hss\vbox{\caption{#1}}\hss}}
}

\def\pvals#1{%
\setbox0=\vbox{\offinterlineskip
\halign{\vrule\cell{##}&&\cell{##}\cr
\input gen/pvals.i
}}%
\dimen0\wd0
\vbox{\box0\hbox to \dimen0{\hss\vbox{\caption{#1}}\hss}}%
}