setup-tables.tex 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. % -*- Mode: TeX -*-
  2. %% Definitions of table-related macros
  3. \def\displaytwo #1#2{
  4. \boxfig
  5. {\dimen0=.75pc
  6. \tabskip \dimen0 plus .5 fil
  7. \halign to \hsize {\misc{##}\hfil\tabskip \dimen0 plus 1fil&
  8. \misc{##}\hfil\cr
  9. \noalign{\vskip -9pt}
  10. #2
  11. \noalign{\vskip -9pt}
  12. }}
  13. \caption{#1}
  14. \endfig
  15. \goodbreak
  16. }
  17. \def\displaythree #1#2{
  18. \boxfig
  19. {\dimen0=.75pc
  20. \tabskip \dimen0 plus .5 fil
  21. \halign to \hsize {\misc{##}\hfil\tabskip \dimen0 plus 1fil&
  22. \misc{##}\hfil\tabskip \dimen0 plus 1fil&
  23. \misc{##}\hfil\cr
  24. \noalign{\vskip -9pt}
  25. #2
  26. \noalign{\vskip -9pt}
  27. }}
  28. \caption{#1}
  29. \endfig
  30. \goodbreak
  31. }
  32. \def\displayfour #1#2{
  33. \boxfig
  34. {\dimen0=.75pc
  35. \tabskip \dimen0 plus .5 fil
  36. \halign to \hsize {\misc{##}\hfil\tabskip \dimen0 plus 1fil&
  37. \misc{##}\hfil\tabskip \dimen0 plus 1fil&
  38. \misc{##}\hfil\tabskip \dimen0 plus 1fil&
  39. \misc{##}\hfil\cr
  40. \noalign{\vskip -9pt}
  41. #2
  42. \noalign{\vskip -9pt}
  43. }}
  44. \caption{#1}
  45. \endfig
  46. \goodbreak
  47. }
  48. \def\displayfive #1#2{
  49. \boxfig
  50. {\dimen0=.75pc
  51. \tabskip \dimen0 plus .5 fil
  52. \halign to \hsize {\misc{##}\hfil\tabskip \dimen0 plus 1fil&
  53. \misc{##}\hfil\tabskip \dimen0 plus 1fil&
  54. \misc{##}\hfil\tabskip \dimen0 plus 1fil&
  55. \misc{##}\hfil\tabskip \dimen0 plus 1fil&
  56. \misc{##}\hfil\cr
  57. \noalign{\vskip -9pt}
  58. #2
  59. \noalign{\vskip -9pt}
  60. }}
  61. \caption{#1}
  62. \endfig
  63. \goodbreak
  64. }
  65. \def\showtwo #1#2{
  66. \boxfig
  67. {\dimen0=.75pc
  68. \tabskip \dimen0 plus .5 fil
  69. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&
  70. ##\hfil\cr
  71. \noalign{\vskip -9pt}
  72. #2
  73. \noalign{\vskip -9pt}
  74. }}
  75. \caption{#1}
  76. \endfig
  77. \goodbreak
  78. }
  79. \def\showthree #1#2{
  80. \boxfig
  81. {\dimen0=.75pc
  82. \tabskip \dimen0 plus .5 fil
  83. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&
  84. ##\hfil\tabskip \dimen0 plus 1fil&
  85. ##\hfil\cr
  86. \noalign{\vskip -9pt}
  87. #2
  88. \noalign{\vskip -9pt}
  89. }}
  90. \caption{#1}
  91. \endfig
  92. \goodbreak
  93. }
  94. \def\showfour #1#2{
  95. \boxfig
  96. {\dimen0=.75pc
  97. \tabskip \dimen0 plus .5 fil
  98. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&
  99. ##\hfil\tabskip \dimen0 plus 1fil&
  100. ##\hfil\tabskip \dimen0 plus 1fil&
  101. ##\hfil\cr
  102. \noalign{\vskip -9pt}
  103. #2
  104. \noalign{\vskip -9pt}
  105. }}
  106. \caption{#1}
  107. \endfig
  108. \goodbreak
  109. }
  110. \def\showfive #1#2{
  111. \boxfig
  112. {\dimen0=.75pc
  113. \tabskip \dimen0 plus .5 fil
  114. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&
  115. ##\hfil\tabskip \dimen0 plus 1fil&
  116. ##\hfil\tabskip \dimen0 plus 1fil&
  117. ##\hfil\tabskip \dimen0 plus 1fil&
  118. ##\hfil\cr
  119. \noalign{\vskip -9pt}
  120. #2
  121. \noalign{\vskip -9pt}
  122. }}
  123. \caption{#1}
  124. \endfig
  125. \goodbreak
  126. }
  127. \def\tabletwo#1#2#3{\def\entry##1##2{&##1&&##2&\cr}
  128. $$\vbox{\offinterlineskip
  129. \hrule
  130. \halign{&\vrule##&\strut\quad##\hfil\quad\cr
  131. height2pt&\omit&&\omit&\cr
  132. &\b{#1}&&\b{#2}&\cr
  133. height2pt&\omit&&\omit&\cr
  134. \noalign{\hrule}
  135. height2pt&\omit&&\omit&\cr
  136. #3
  137. height2pt&\omit&&\omit&\cr}
  138. \hrule}$$}
  139. \def\tablefigtwo#1#2#3#4{\boxfig
  140. {\dimen0=.75pc
  141. \tabskip \dimen0 plus .5 fil
  142. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&##\hfil\cr
  143. \noalign{\vskip -9pt}
  144. {\bf #2}\hfil&{\bf #3}\hfil\cr
  145. \noalign{\vskip 2pt\hrule\vskip 2pt}
  146. #4
  147. \noalign{\vskip -9pt}
  148. }}
  149. \caption{#1}
  150. \endfig}
  151. \def\tablefigthree#1#2#3#4#5{\boxfig
  152. {\dimen0=.75pc
  153. \tabskip \dimen0 plus .5 fil
  154. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&##\hfil\tabskip \dimen0 plus
  155. 1fil&##\hfil\cr
  156. \noalign{\vskip -9pt}
  157. {\bf #2}&{\bf #3}&{\bf #4}\cr
  158. \noalign{\vskip 2pt\hrule\vskip 2pt}
  159. #5
  160. \noalign{\vskip -9pt}
  161. }}
  162. \caption{#1}
  163. \endfig}
  164. \def\tablefigfour#1#2#3#4#5#6{\boxfig
  165. {\dimen0=1pc
  166. \tabskip 2\dimen0
  167. \halign to \hsize {##\hfil\tabskip \dimen0&##\hfil
  168. \tabskip 0pt plus 1fil&\tabskip 1\dimen0
  169. ##\hfil&##\hfil\tabskip 2\dimen0\cr
  170. \noalign{\vskip -9pt}
  171. {\bf #2}&{\bf #3}&{\bf #4}&{\bf #5}\cr
  172. \noalign{\vskip 2pt\hrule\vskip 2pt}
  173. #6
  174. \noalign{\vskip -9pt}
  175. }}
  176. \caption{#1}
  177. \endfig}
  178. %Untested. Taken from table in FLOOR, now flushed. -kmp 3-Oct-91
  179. \def\tablefigfive#1#2#3#4#5#6#7{\boxfig
  180. {\dimen0=.75pc
  181. \tabskip \dimen0 plus .5 fil
  182. \halign to \hsize {##\hfil\tabskip \dimen0 plus 1fil&##\hfil\tabskip
  183. \dimen0 plus .5 fil&##\hfil\tabskip \dimen0 plus 1fil&##\hfil\tabskip \dimen0
  184. plus 1fil&##\hfil\cr
  185. \noalign{\vskip -9pt}
  186. {\bf #2}&{\bf #3}&{\bf #4}&{\bf #5}&{\bf #6}\cr
  187. \noalign{\vskip 2pt\hrule\vskip 2pt}
  188. #7
  189. \noalign{\vskip -9pt}
  190. }}
  191. \caption{#1}
  192. \endfig}
  193. \def\tablefigsix#1#2#3#4#5#6#7#8{\boxfig
  194. {\dimen0=1pc
  195. \tabskip 2\dimen0
  196. \halign to \hsize {##\hfil\tabskip \dimen0&##\hfil
  197. \tabskip 0pt plus 1fil&\tabskip 1\dimen0
  198. ##\hfil&##\hfil\tabskip \dimen0&##\hfil
  199. \tabskip 0pt plus 1fil&\tabskip 1\dimen0
  200. ##\hfil\cr
  201. \noalign{\vskip -9pt}
  202. {\bf #2}&{\bf #3}&{\bf #4}&{\bf #5}&{\bf #6}&{\bf #7}\cr
  203. \noalign{\vskip 2pt\hrule\vskip 2pt}
  204. #8
  205. \noalign{\vskip -9pt}
  206. }}
  207. \caption{#1}
  208. \endfig}