[texhax] alignment of parbox and fbox
Uwe Lück
uwe.lueck at web.de
Wed Sep 16 17:26:33 CEST 2009
At 17:51 15.09.09, hh wrote:
>Most probably it is a lot of work to find out the correct value for
>arraystretch
>when for this problem the use of strut gives an immediate and satisfying
>result.
Why finding out the correct value? If you just don't
\renewcommand{\arraystretch}..., you get the (result of the) usual \strut.
The fact that the name `\arraystretch' was chosen instead of `\arrayshrink'
may indicate that it is intended to have a value of 1 or a greater one --
the choice is a design decision appropriately for the whole document, in
order to get /larger/ distances between baselines of rows than the current
\baselineskip in tabulars or arrays. In this case a manual \strut inserted
by the author doesn't have any effect (at best).
So some values starting from 1 a little upwards may be "correct" from the
design point of view, those less than 1 or more than, say, 4 are "wrong" in
the same view.
Indeed I tend to wonder whether any LaTeX user has \renewcommand'ed
\arraystretch at all.
-- Uwe.
>Date sent: Tue, 15 Sep 2009 12:17:01 +0200
>To: bill lam <cbill.lam at gmail.com>
>From: Uwe Lück <uwe.lueck at web.de>
>Copies to: texhax <texhax at tug.org>,
>reinhard.kotucha at web.de,
> Lars Madsen <daleif at imf.au.dk>, hh <hh-
>brasil at bol.com.br>
>Subject: Re: [texhax] alignment of parbox and fbox
>
> > At 01:28 15.09.09, bill lam wrote:
> > >On Mon, 14 Sep 2009, Uwe Lück wrote:
> > > > to \mathstrut. It is used in tables/arrays (horizontal alignment) to
> > >
> > >Did you mean that using \strut or \vphantom is redundant in rows of
> tabular?
> >
> > I did. I was not perfectly aware: LaTeX automatically puts a modified
> > \strut into every row of tabular/array. Height and depth of the usual
> > \strut are multiplied by \arraystretch which is 1 by default. You can
> > somewhat disprove my claim by \renewcommand{\arraystretch}{0}.
> >
> > Cheers,
> > Uwe.
> >
> > _______________________________________________
> > TeX FAQ: http://www.tex.ac.uk/faq
> > Mailing list archives: http://tug.org/pipermail/texhax/
> > More links: http://tug.org/begin.html
> >
> > Automated subscription management: http://tug.org/mailman/listinfo/texhax
> > Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list