🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #850

Re: Trouble with \halign and \multispan

#850
From: Bill Bormann
Date: Wed, 05 Aug 1992 14:31
47 lines
2377 bytes
In article <1992Aug5.020826.11539@organpipe.uug.arizona.edu>
mjm@spekl.as.arizona.edu (Mark McCaughrean) writes:
 
>
>I'm having trouble getting equally spaced aligned columns using
>\halign in UNIX TeX 3.14t3. As soon as I use \multispan to write
>a title, the last column always ends up padded with more space.
>The following examples show what I mean. Am I using \halign and
>\multispan properly? Help greatly appreciated.
 
I would not consider myself a great TeX expert, but I think you
want to use \hidewidth after the \multispan command.  The following
tables you submitted show the use of \hidewidth, and result in four
tables with centered titles but with the columns of numbers all
aligned as you'd expect:
 
-------------------------------------------------------------------
\tabskip=0pt plus 1fil
\halign to\hsize{\hfil#\hfil&\hfil#\hfil&\hfil#\hfil&\hfil#\hfil\cr
0.00 & 0.78 & 1.83 & 1.48 \cr
0.00 & 0.12 & 0.73 & 0.46 \cr
0.00 & 0.10 & 0.67 & 0.40 \cr}
 
\halign to\hsize{\hfil#\hfil&\hfil#\hfil&\hfil#\hfil&\hfil#\hfil\cr
\multispan4\hidewidth This is the same
      title using multispan\hidewidth\cr
0.00 & 0.78 & 1.83 & 1.48 \cr
0.00 & 0.12 & 0.73 & 0.46 \cr
0.00 & 0.10 & 0.67 & 0.40 \cr}
 
\halign to\hsize{\hfil#\hfil&\hfil#\hfil&\hfil#\hfil&\hfil#\hfil\cr
\multispan4\hidewidth This is the same table again but
                 with an even longer
                 title just to make the point
                 yet more obvious\hidewidth\cr
0.00 & 0.78 & 1.83 & 1.48 \cr
0.00 & 0.12 & 0.73 & 0.46 \cr
0.00 & 0.10 & 0.67 & 0.40 \cr}
-------------------------------------------------------------------
 
Hope this is what you were after ...
 
Bill Bormann
 
expert.cc.purdue.edu!ad2 (USENET)   | Math Sciences Building
bormann@purccvm          (BITNET)   | Purdue University Computing Center
ad2@expert.cc.purdue.edu (Internet) | West Lafayette, IN 47907
Technical Details
Message-ID: <1683A85DC.BORMANN@vm.cc.purdue.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!decwrl!purdue!mentor.cc.purdue.edu!vm.cc.purdue.edu!BORMANN
References: <1992Aug5.020826.11539@organpipe.uug.arizona.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!decwrl!purdue!mentor.cc.purdue.edu!vm.cc.purdue.edu!BORMANN
From: BORMANN@vm.cc.purdue.edu (Bill Bormann)
Newsgroups: comp.text.tex
Subject: Re: Trouble with \halign and \multispan
Message-ID: <1683A85DC.BORMANN@vm.cc.purdue.edu>
Date: 5 Aug 92 14:31:04 GMT
References: <1992Aug5.020826.11539@organpipe.uug.arizona.edu>
Sender: news@mentor.cc.purdue.edu
Organization: Purdue University
Lines: 47