Path: 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: Organization: U. Texas CS Dept., Austin, Texas Lines: 36 In article 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