Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to add descriptive notes to a long table?

1,896 views
Skip to first unread message

joe hou

unread,
May 28, 2005, 3:05:51 PM5/28/05
to
Hi all,

I'm trying to add descriptive notes to a long table like below:

\begin{longtable}{c|cccccc|c}
\caption{some title} \\
\footnotesize{This table shows ...} % this is the note to explain the
table.
\hline Left& center & right \\
\hline \endfirsthead \caption[]{continued}\\
\hline left & center & right \\
\hline \endhead \hline \multicolumn{3}{r}{continued} \endfoot \hline
\endlastfoot
\hline\hline

but the result is not what I wanted. If I put notes under the Table
environment, it's fine (but I couldn't get the long table). How to
achieve this? Thanks.

Gianluca Pignalberi

unread,
May 28, 2005, 3:55:34 PM5/28/05
to
Hi,
please, have a look at the file /misc/threeparttable.sty of your
distribution (I'm assuming you have teTeX). Maybe it can be helpful.
Gianluca

Donald Arseneau

unread,
May 28, 2005, 5:46:53 PM5/28/05
to
Gianluca Pignalberi <g.pign...@tiscali.it> writes:

> please, have a look at the file /misc/threeparttable.sty

> > Hi all,
> > I'm trying to add descriptive notes to a long table

Threeparttable isn't the answer for longtable, because
threeparttable makes a box that won't break.

There may be a solution using mdwtools

http://groups-beta.google.com/group/comp.text.tex/browse_thread/thread/1c9dbc140bad0477

--
Donald Arseneau as...@triumf.ca

joe hou

unread,
May 28, 2005, 10:06:26 PM5/28/05
to
Thanks for the replies. i'm afraid I didn't make my question clear and
I guess the question is a stupid and newbie one: I just want to put
some text under the table caption to explain what the table is about
etc. So the desired output should look like this:

Table 1 Caption
Some text about this table...
start of the table...

It's a common style seen in a journal paper. But I just have a long
table here. Any suggestion? Thanks a lot.

Lars Madsen

unread,
May 28, 2005, 11:01:19 PM5/28/05
to

\caption{...}
....
\multicolumn{your number of cols}{p{some width}}{text}\\
the rest of the table

--
/daleif (remove RTFSIGNATURE for email)

joe hou

unread,
May 29, 2005, 4:45:29 AM5/29/05
to
I tried your method, but I'm not sure if {some width} argument can be
used in \multicolumn. In fact, LaTeX gave me an error when I use
\textwidth as an argument. I know this is dumb, but could you or anyone
else please give me a simple example? Thanks.

Axel Sommerfeldt

unread,
May 29, 2005, 6:33:30 AM5/29/05
to
"joe hou" <yf...@business.hku.hk> wrote:

> \begin{longtable}{c|cccccc|c}
> \caption{some title} \\
> \footnotesize{This table shows ...} % this is the note to explain the
> table.
> \hline Left& center & right \\

> [...]


>
> but the result is not what I wanted. If I put notes under the Table
> environment, it's fine (but I couldn't get the long table). How to
> achieve this? Thanks.

What about this:

\begin{longtable}{c|cccccc|c}
\caption{some title} \\

\caption*{\footnotesize This table shows ...} \\
\hline Left & center & right \\
...

HTH,
Axel

joe hou

unread,
May 29, 2005, 8:13:29 AM5/29/05
to
Hi Axel,
your suggestion works but later I figured out how to use

\multicolumn{your number of cols}{p{some width}}{text}\\

suggested by Lars. It basically delivers what I want, except that the
text shown has a bit wider space across rows (as is the case for text
and numbers in a table) than a plain text in LaTeX.

But I find another puzzle. I use 'longtable' and 'dcolumn' packages
when I construct long tables. I also use 'tabls' package in order to
automatically determines the height of a row in a table (which delivers
a prettier table than without). it worked well without 'longtable' and
'dcolumn' packages, but seemed to fail to work with the latter two.
Anyone knows how to fix this? Thanks in advance.

joe hou

unread,
May 29, 2005, 9:29:47 AM5/29/05
to
I find the following link explaining the conflict between dcolumn and
tabls packages. I use 'booktabs' package. The '\hline \hline' appear
again. But the row's height is still not satisfactory. Any table
package can fix this?

http://groups-beta.google.com/group/comp.text.tex/browse_thread/thread/c410edf2c7f4951/8221c23528885b09?q=dcolumn+and+tabls&rnum=1#8221c23528885b09

Donald Arseneau

unread,
May 29, 2005, 5:27:00 PM5/29/05
to
"joe hou" <yf...@business.hku.hk> writes:

> But I find another puzzle. I use 'longtable' and 'dcolumn' packages
> when I construct long tables. I also use 'tabls' package

tabls is not currently compatible with array.sty

--
Donald Arseneau as...@triumf.ca

0 new messages