Article View: comp.text.tex
Article #11868Re: [Q] some problems with {tabular*}
From: Donald Arseneau
Date: Thu, 10 Nov 1994 18:59
Date: Thu, 10 Nov 1994 18:59
30 lines
2250 bytes
2250 bytes
In article <LANDAISF.94Nov10172229@mathieu.ima.enst.fr>, landaisf@mathieu.ima.enst.fr (Frederic Landais) writes...
>
>so that one column is aligned on the left edge of the page and the
>other column is aligned on the edge, like this :
>
>\begin{tabular*}{\textwidth}{l@{\hfill}r}
The main problem is that the \hfill is being added to the *contents* of
the second column, not filling the space between the columns. For that
you need: @{\extracolsep{\fill}} (note \fill, not \hfill).
There are more subtleties though...
There are spaces of 1/2 \tabcolsep at the beginning and the end of each line.
You can get rid of them with empty @{} specifications or with an assignment
\setlength\tabcolsep{0pt} before the table.
The whole table tries to start a paragraph, so it may have a paragraph
indentation to its left! You may need to use \noindent\begin{tabular*}.
It is better to use \linewidth rather than \textwidth. If you ever convert
to two-column page layout, you might get a big surprise! (Although, if the
table is too wide for a column, you would have to patch it up in any case.)
All together:
\noindent
\begin{tabular*}{\linewidth}{@{}l@{\extracolsep{\fill}}r@{}}
Donald Arseneau asnd@reg.triumf.ca
Technical Details
Message-ID:
<10NOV199410592525@reg.triumf.ca>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sbusol.rz.uni-sb.de!ciril.fr!univ-lille1.fr!jussieu.fr!univ-lyon1.fr!warwick!usenet.eel.ufl.edu!news.mathworks.com!udel!gatech!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!tribune.usask.ca!quartz.ucs.ualberta.ca!unixg.ubc.ca!reg.triumf.ca!asndReferences:
<LANDAISF.94Nov10172229@mathieu.ima.enst.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,53eab0396a5119ba
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 10ee61,53eab0396a5119ba
X-Google-Attributes: gid10ee61,public
X-Google-ArrivalTime: 1994-11-10 11:41:08 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sbusol.rz.uni-sb.de!ciril.fr!univ-lille1.fr!jussieu.fr!univ-lyon1.fr!warwick!usenet.eel.ufl.edu!news.mathworks.com!udel!gatech!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!tribune.usask.ca!quartz.ucs.ualberta.ca!unixg.ubc.ca!reg.triumf.ca!asnd
From: asnd@reg.triumf.ca (Donald Arseneau)
Newsgroups: comp.text.tex,fr.comp.text.tex
Subject: Re: [Q] some problems with {tabular*}
Date: 10 Nov 1994 10:59 PST
Organization: TRIUMF: Tri-University Meson Facility
Lines: 30
Distribution: world
Message-ID: <10NOV199410592525@reg.triumf.ca>
References: <LANDAISF.94Nov10172229@mathieu.ima.enst.fr>
NNTP-Posting-Host: reg.triumf.ca
News-Software: VAX/VMS VNEWS 1.41