[texhax] Tables - How do I typeset something in a cell corner?

Anna Brick brickanna at yahoo.com
Wed Aug 10 07:15:54 CEST 2005


I am using the Latex2e tabular environment, modified
by the array package. I want to create a table and
mark each cell with a small number that should be
placed at  its bottom right corner.  I don't want
these numbers to affect the cell size or layout,
though (i.e., I want the table to look as if it were
first typeset without these numbers, and then the
numbers were pasted onto the bottom right corner of
each cell).

I managed to get pretty close to this using
the !{} preamble option provided by the array package,
as shown in the example below.  For simplicity, the
table contains a headings row and an single additional
row with two cells.  The left cell is marked 5.  The
problem is that the '5' is typeset on the same line
as the cell's contents, and I want it to be "bottom
justified".  I don't want to use Latex's \raisebox
because I don't know the height and depth of the
cells,
and I don't want to hardwire numbers into the
document.

\documentclass[11pt]{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|c|c|} \hline
  Column 1 Heading & Column 2 Heading\\ \hline
  \multicolumn{1}{|c!{\llap{\scriptsize{5} }\vline}}
    {$n>3$} &
  $\displaystyle n<\sum_{i=0}^{\infty}f(i)$ \\ \hline
\end{tabular}
\end{document}

Any help will be much appreciated.

-- A

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the texhax mailing list