Article View: comp.text
Article #5600Re: glue in haligns in TeX (actually LaTeX)
From: David Lau
Date: Sun, 25 Dec 1988 23:12
Date: Sun, 25 Dec 1988 23:12
36 lines
1527 bytes
1527 bytes
In article <MRD.88Dec23215043@sun1.mie.clarkson.edu> mrd@sun1.mie.clarkson.edu (Michael DeCorte) writes:
>
>Below is a little halign; but I am having a problem with it. It seems
>that any form of glue that I put into the items is ignored.
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>\halign to\hsize{&#\tabskip=0pt plus 1fil\cr
>\hskip 0pt plus 1fill hello&how&are\cr
>you&today\cr
>}
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
The \hskip in the entry containing the word 'hello' is essentially a no-op,
simply because of the fact that that entry is the widest in its
column. It's not really clear to me why you put stretchable glue in
the entry containing the word 'hello' when it is the word 'you' in the
entry below you want to have flushed right.
Anyway, to get what you want, a slight change will suffice:
\halign to\hsize{&#\tabskip=0pt plus 1fil\cr
hello&how&are\cr
&\llap{you}today\cr
}
A side note:
you can achieve the above more easily by using \settabs instead:
\settabs 3\columns
\+hello&how&are\cr
\+\hfill you&today&\cr
David
dlau@cs.utexas.edu
Technical Details
Message-ID:
<4421@cs.utexas.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!dlauReferences:
<MRD.88Dec23215043@sun1.mie.clarkson.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!dlau From: dlau@cs.utexas.edu (David Lau) Newsgroups: comp.text Subject: Re: glue in haligns in TeX (actually LaTeX) Message-ID: <4421@cs.utexas.edu> Date: 25 Dec 88 23:12:44 GMT References: <MRD.88Dec23215043@sun1.mie.clarkson.edu> Organization: U. Texas CS Dept., Austin, Texas Lines: 36