From b7091a621da911b9de627967de06402ca845fca5 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Wed, 5 Feb 2020 13:20:21 -0500 Subject: fixed tabular layouts --- generic.tex | 6 +++--- poster/format.tex | 1 + poster/results.tex | 25 ++++++++++++++----------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/generic.tex b/generic.tex index 19e5226..49ed0f0 100644 --- a/generic.tex +++ b/generic.tex @@ -42,9 +42,9 @@ %% Table \def\table#1#2{ - \medskip - \halign{&\vrule\vbox to \baselineskip{\vfil\parindent=0in\hsize=#2\relax \hbox to \hsize{\hfil ##\hfil}\vfil}\vrule\cr\noalign{\hrule} + \medskip\line{\hfil + \vbox{\halign{&\vrule\vphantom{\vbox{\vskip10pt}}\strut\hskip3pt\hfil ##\hfil\hskip3pt\vrule\cr\noalign{\hrule} #1 - } + }}\hfil} \medskip } diff --git a/poster/format.tex b/poster/format.tex index c43ac56..3effd3a 100644 --- a/poster/format.tex +++ b/poster/format.tex @@ -65,6 +65,7 @@ \def\pic#1#2{\pdfximage width #1{#2}\pdfrefximage\pdflastximage} \def\caption#1{\def\a{#1}\ifx\a\empty\else\global\advance\pics by 1\line{\vbox{\baselineskip=18pt\smallskip\leftskip=0pt plus 1fill\rightskip=0pt plus 1fill\parindent=0pt\relax Fig \number\pics: #1\bigskip}}\fi} \def\picture#1#2#3{\vbox{\pic{#3}{#1}\hsize=#3\caption{#2}}} +\def\picturetop#1#2#3{\vtop{\pic{#3}{#1}\hsize=#3\caption{#2}}} %% the godly `pre` diff --git a/poster/results.tex b/poster/results.tex index 6a2bd09..4302075 100644 --- a/poster/results.tex +++ b/poster/results.tex @@ -1,15 +1,18 @@ \newfont tablefont=cmr10@10pt -\def\table#1#2#3{% - \tablefont - \vbox{\setbox0=\vbox{\hsize=#2\halign{&\vrule\vbox to \baselineskip{\vfil\noindent ##\vfil}\vrule\cr\noalign{\hrule} +\def\tabletop#1#2{ + \vtop{\setbox0=\vtop{\halign{&\vrule\strut\hskip3pt\hfil {\tablefont ##}\hfil\hskip3pt\vrule\cr\noalign{\hrule} #1 - }}\hsize=\wd0\box0\caption{#3}} + }}\hsize=\wd0\box0\caption{#2}} } - -\line{\picture{../graph/depth_width.png}{Antlions' pits' depths and widths correlate strongly with square root of trial area, meaning that antlions are aware of how to optimally obtain ants for the group. Bigger dots mean more pits of that size in that trial area}{6in}\hfil - \picture{../photos/pcr.jpg}{DNA Ladder and PCR tests were used to detect Cytochrome-B gene appearance in a primed DNA mixture from crushed antlions.}{3in} +\def\table#1#2{ + \vbox{\setbox0=\vbox{\halign{&\vrule\strut\hskip3pt\hfil {\tablefont ##}\hfil\hskip3pt\vrule\cr\noalign{\hrule} + #1 + }}\hsize=\wd0\box0\caption{#2}} +} +\line{\picturetop{../graph/depth_width.png}{Antlions' pits' depths and widths correlate strongly with square root of trial area, meaning that antlions are aware of how to optimally obtain ants for the group. Bigger dots mean more pits of that size in that trial area}{6in}\hfil + \picturetop{../photos/pcr.jpg}{DNA Ladder and PCR tests were used to detect Cytochrome-B gene appearance in a primed DNA mixture from crushed antlions.}{4in} } -\hbox{ +\kern-1.3in\hbox{ \picture{../graph/nearest_neighbor.png}{The geometric average of trial edge length correlates closely with nearest neighbor distance, demonstrating consistent spacing by antlions.}{6in} \table{ Trial Size& Introduced& Deaths& Pits formed\cr\noalign{\hrule\penalty-5\hrule} @@ -19,11 +22,11 @@ 17x16& 10& 0& 3\cr\noalign{\hrule\penalty-5\hrule} 8x7& 12& 4& 3\cr\noalign{\hrule\penalty-5\hrule} 8x7& 5& 0& 4\cr\noalign{\hrule\penalty-5\hrule} - }{1.1in}{Number of Deaths and Pits Successfully Formed in Each Trial/Subtrial} + }{Number of Deaths and Pits Successfully Formed in Each Trial/Subtrial} } %%the remainder of this file is ripped from ../documents/tables.tex with minor edits -\table{ +\line{\hfil\table{ Dimensions (in)& Pit Depth (cm)& Pit Width (cm)& Nearest Neighbor (cm)\cr\noalign{\hrule\penalty-5\hrule} 33x32& 1.3& 4.2& 6.00\cr\noalign{\hrule\penalty-5\hrule} 33x32& 1.4& 3.7& 12.04\cr\noalign{\hrule\penalty-5\hrule} @@ -58,4 +61,4 @@ Dimensions (in)& Pit Depth (cm)& Pit Width (cm)& Nearest Neighbor (cm)\cr\noalig 8x7& 0.8& 0.8& 6.40\cr\noalign{\hrule\penalty-5\hrule} 8x7& 0.8& 0.8& 2.24\cr\noalign{\hrule\penalty-5\hrule} 8x7& 0.8& 0.8& 4.47\cr\noalign{\hrule\penalty-5\hrule} -}{2in}{The Pit Depths, Widths, and ``Territory,'' Observed in Each Trial} +}{The Pit Depths, Widths, and ``Territory,'' Observed in Each Trial}\hfil} -- cgit