On Sep 23, 7:59 am, Alain Ketterlin <
al...@dpt-info.u-strasbg.fr>
wrote:
> Richard Smith <
rich...@ex-parrot.com> writes:
> > I'm sure this ought to be very simple, but I cannot get it to work. I
> > would like to vertically bottom-align and horizontally right-align one
> > column in a tabularx environment, but I cannot get the array package's
> > b column to work.
>
> To right-align, use >{\raggedleft}b{5em}
[...]
> If by bottom-align you mean:
>
> xxxxxxxx
> xxxxxxxx yyyyy
> xxxxxxxx yyyyy
>
> then use b for both columns (via \tabularxcolumn).
Thanks. That's done exactly what I wanted. As I don't want to change
\tabularxcolumn globally, and as there are likely to be a few other
bits of special formatting (eg. \arraystretch) that I want applying to
this style table but not elsewhere, I've wrapped it up in a new
environment:
\newenvironment{actable}[0]{%
\renewcommand{\tabularxcolumn}[1]{b{##1}}%
\renewcommand{\arraystretch}{1.5}%
\tabularx{\linewidth}%
{@{}X<{~\hrulefill}@{}>{\raggedleft\hrulefill~}b{3.5em}@{}}%
}{\endtabularx}
However if I do this, I find that I have to use \cr instead of \\ as
my line separators. I'm sure I've encountered this before and there's
a simple command called something like \escapelinebreaks that sorts
this out, but I can't seem to find the right thing to put into a
Google search to give me the answer. Any suggestions?
Thanks,
Richard