Article View: comp.text.tex
Article #966Re: Strange (incorrect??) tabular behaviour in LaTeX
From: David Carlisle
Date: Thu, 06 Aug 1992 12:32
Date: Thu, 06 Aug 1992 12:32
60 lines
2323 bytes
2323 bytes
>>>>> On 6 Aug 92 04:29:14 GMT, sjm@merlin.anu.edu.au (Stephen Meatheringham) said:
...
Stephen> \documentstyle{article}
Stephen>
Stephen> \begin{document}
Stephen>
Stephen> \begin{tabular}{ccc}
Stephen> \multicolumn{3}{c}{this-is-a-very-long-word}\\
Stephen> I & V & H \\
Stephen> 2.2 & 1.9 & 5.2 \\
Stephen> 1.7 & 2.0 & 2.8 \\
Stephen> \end{tabular}
Stephen>
Stephen> \end{document}
Stephen> Now, what I see is that the 3 output columns (I, V and H) are not spread
Stephen> evenly under the heading, but there is a lot more space between the V and H
Stephen> columns than between the I and V columns.
......
There was an identical post to this a couple of days ago. (except it
was in plain dialect)
I posted a solution using \hidewidth,
asnd@msr.triumf.ca (Donald Arseneau) posted a really nice use of
shrinkable tabskip glue to solve the same problem. So here are these
two solutions again (in LaTeX form).
\begin{document}
\begin{tabular}{ccc}
\multicolumn{3}{c}{\hidewidth this-is-a-very-long-word\hidewidth\null}\\
I & V & H \\
2.2 & 1.9 & 5.2 \\
1.7 & 2.0 & 2.8 \\
\end{tabular}
\begin{tabular*}{2in}{@{\hspace{\tabcolsep}\extracolsep{2in minus 2in}}ccc}
\multicolumn{3}{c}{this-is-a-very-long-word}\\
I & V & H \\
2.2 & 1.9 & 5.2 \\
1.7 & 2.0 & 2.8 \\
\end{tabular*}
\end{document}
--
David Carlisle
JANET: carlisle@uk.ac.man.cs
Computer Science Department
Manchester University
Oxford Road
Manchester
England
M13 9PL
Technical Details
Message-ID:
<CARLISLE.92Aug6133247@r8d.cs.man.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mucs!m1!carlisleReferences:
<1992Aug6.042914.24864@newshost.anu.edu.au>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mucs!m1!carlisle From: carlisle@cs.man.ac.uk (David Carlisle) Newsgroups: comp.text.tex Subject: Re: Strange (incorrect??) tabular behaviour in LaTeX Message-ID: <CARLISLE.92Aug6133247@r8d.cs.man.ac.uk> Date: 6 Aug 92 12:32:47 GMT References: <1992Aug6.042914.24864@newshost.anu.edu.au> Sender: news@cs.man.ac.uk Organization: Department of Computer Science, University of Manchester Lines: 60 In-reply-to: sjm@merlin.anu.edu.au's message of 6 Aug 92 04:29:14 GMT