🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2460

Equal vertical size in tables

#2460
From: G.W.Bultman
Date: Wed, 19 Aug 1992 09:59
78 lines
3744 bytes
Hi,

I'm a novice at TeX, and my first task eludes me.
I'm trying to typeset a table containing math formulas, but although
I can get the table to align horizontally, using \halign, the
formulas get either squashed in their boxes, or blow up the boxes to
be much higher than others in the same column.

How do I get the boxes to be the same height in all rows?

I've enclosed the part of my file that causes the problem
(it is a partial solution to a puzzle)
(tex it & print it to see the squashed formulas/stretched boxes effect),


P.S. if you have any better answers to the puzzle, write me!
(direct: bultman@dgw.rws.nl, not to this group)

===============================================================================
\def\tenwithones{$(11-1)$}
\def\tenwithtwos{$default$}
\def\tenwiththrees{$default$}
\def\tenwithfours{$default$}
\def\tenwithfives{$default$}
\def\tenwithsixes{$default$}
\def\tenwithsevens{$default$}
\def\tenwitheights{$default$}
\def\tenwithnines{$default$}

\def\hundredwithones{$default$}
\def\hundredwithtwos{$(2+2 \times 2 \times 2 )^2$}
\def\hundredwiththrees{$default$}
\def\hundredwithfours{$default$}
\def\hundredwithfives{$default$}
\def\hundredwithsixes{$default$}
\def\hundredwithsevens{$default$}
\def\hundredwitheights{$default$}
\def\hundredwithnines{$default$}

\def\thousandwithones{$(11-1)^{1+1+1}$}
\def\thousandwithtwos{$\sqrt{2^{22-2}}-(2+2)!$}
\def\thousandwiththrees{$(3 \times 3 + {3 \over 3} ) ^ 3 $}
\def\thousandwithfours{$4 \times 4 ^ 4 - 4! $}
\def\thousandwithfives{$\sqrt{ \sqrt{ \sqrt{ (5+5)^ { { 5! } \over 5} } } } $}
\def\thousandwithsixes{$\sqrt{{({66-6}\over 6 )} ^ 6}$}
\def\thousandwithsevens{$default$}
\def\thousandwitheights{$\sqrt{\sqrt{\sqrt{(8+\sqrt{\sqrt{8+8}})^
                        {{(\sqrt{8+8})}!}}}}$}
\def\thousandwithnines{${(9+ {9 \over 9} )} ^ {\sqrt 9 }$}

\vbox{\tabskip=0pt \offinterlineskip
\def\tablerule{\noalign{\hrule}}
\halign to\hsize{\strut#& \vrule#\tabskip=1em plus2em&
  \hfil#& \vrule#& \hfil#\hfil& \vrule#&
  \hfil#& \vrule#\tabskip=0pt\cr\tablerule
&&\multispan5\hfil 10-100-100 \hfil&\cr\tablerule
&&\tenwithones&&\hundredwithones&&\thousandwithones&\cr\tablerule
&&\tenwithtwos&&\hundredwithtwos&&\thousandwithtwos&\cr\tablerule
&&\tenwiththrees&&\hundredwiththrees&&\thousandwiththrees&\cr\tablerule
&&\tenwithfours&&\hundredwithfours&&\thousandwithfours&\cr\tablerule
&&\tenwithfives&&\hundredwithfives&&\thousandwithfives&\cr\tablerule
&&\tenwithsixes&&\hundredwithsixes&&\thousandwithsixes&\cr\tablerule
&&\tenwithsevens&&\hundredwithsevens&&\thousandwithsevens&\cr\tablerule
&&\tenwitheights&&\hundredwitheights&&\thousandwitheights&\cr\tablerule
&&\tenwithnines&&\hundredwithnines&&\thousandwithnines&\cr\tablerule
\noalign{\smallskip}
&\multispan7* (g.w.bultman)\hfil\cr}}

\end
===============================================================================

--

    o                                                                o
  / | \    Gert Bultman <bultman@dgw.rws.nl>   Koningskade 4       / | \
 o--o--o   Tidal Waters Division               2596 AA The Hague  o--o--o
  \ | /    Rijkswaterstaat                     The Netherlands     \ | /
    o                                                                o
Technical Details
Message-ID: <9208190815.AA23127@sun4nl.nluug.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!eff!sol.ctr.columbia.edu!usc!orion.oac.uci.edu!unogate!mvb.saic.com!info-tex

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!eff!sol.ctr.columbia.edu!usc!orion.oac.uci.edu!unogate!mvb.saic.com!info-tex
From: G.W.Bultman <bultman@dgw.rws.nl>
Newsgroups: comp.text.tex
Subject: Equal vertical size in tables
Message-ID: <9208190815.AA23127@sun4nl.nluug.nl>
Date: Wed, 19 Aug 92 9:59:40 METDST
Organization: Info-Tex<==>Comp.Text.Tex Gateway
X-Gateway-Source-Info: Mailing List
Lines: 79