🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #233

Help me with hbox and hfill

#233
From: ajayshah
Date: Wed, 04 Nov 1992 00:44
40 lines
1084 bytes
I'd like to use stretchable glue to do funky kinds of centering.
E.g. I'd like to have

space b1 space space b2 space

where all spaces are equal length, b1 and b2 are boxes.

I believe \hfill will do this.  I was not able to use it effectively.

My simple effort is here:

\documentstyle{article}
\begin{document}

We hbox together two tabulars:

\hbox{
  \hfill
  \begin{tabular}{c|c}
  \hline
  This is & the left table \\
  \hline
  \end{tabular}
  \hfill \hfill
  \begin{tabular}{|l|r|}
  \hline
  title column1 & title column2 \\
  \hline
  1.1 & 1.2 \\
  2.1 & 2.2 \\
      &     \\
  \hline
  \end{tabular}
  \hfill
}
\end{document}

Thanks,

        -ans.
Technical Details
Message-ID: <13788@cis.rand.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!usc!randvax!cis.rand.org!ajayshah

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!usc!randvax!cis.rand.org!ajayshah
From: ajayshah@cis.rand.org
Newsgroups: comp.text.tex
Subject: Help me with hbox and hfill
Message-ID: <13788@cis.rand.org>
Date: 4 Nov 92 00:44:13 GMT
Sender: bobs@cis.rand.org
Reply-To: ajayshah@cis.rand.org
Organization: RAND, Santa Monica CA
Lines: 40