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

threeparttable and captionwidth

651 views
Skip to first unread message

Steven Van Hove

unread,
Apr 11, 2003, 12:59:59 PM4/11/03
to
Hi there,

I'm very pleased with the things possible with the threeparttable allthough
I 've a problem with the possibility of changing the captionwidth.

Threeparttable is putting the caption as wide as the table, wich gives odd
results with narrow tables in combination with a large (lots of text)
caption.

With the ccaption package it isn't possible to change this captionwidth
because it is simply ignored by threeparttable.

Does anyone have a suggestion how to solve this problem, maybe by modifying
the .sty file.

Thanx in advance,

Steven

ps: in this newsgroup this problem is allready mentioned but no solution was
offered.


Donald Arseneau

unread,
Apr 11, 2003, 10:19:30 PM4/11/03
to
"Steven Van Hove" <steven....@student.kuleuven.ac.be> writes:

> Threeparttable is putting the caption as wide as the table, wich gives odd
> results with narrow tables in combination with a large (lots of text)
> caption.

...That being rather the point of the exercise. What I do, and at
least some publishers do (I make no claim that they all do, or that
it is truly the right thing) is make the table wider (tabular*).

If you don't want a matching caption, I presume you are using
threeparttable for the notes, but don't you need wider table
notes too?

It will take some investigating. Please send more details on the
precise application.

Donald Arseneau as...@triumf.ca

Steven Van Hove

unread,
Apr 12, 2003, 3:17:46 AM4/12/03
to

> > Threeparttable is putting the caption as wide as the table, wich gives
odd
>> results with narrow tables in combination with a large (lots of text)
> > caption.
>
> ...That being rather the point of the exercise. What I do, and at
> least some publishers do (I make no claim that they all do, or that
> it is truly the right thing) is make the table wider (tabular*).
>
> If you don't want a matching caption, I presume you are using
> threeparttable for the notes, but don't you need wider table
> notes too?

I'm indeed using the threeparttable for the notes wich is an excellent way
to prevent me from using footnotes.
These notes are most of the time just a few words or a little bit of comment
so they are never wider than the table


> It will take some investigating. Please send more details on the
> precise application.

this wat I'm using now:

%begin LaTeX code

\begin{table}[!hbt]
\begin{center}
\begin{threeparttable}
\caption{This is a very large caption wich is absolute neccesary for the
readers to understand the table}
\label{tab:elisaT1}
\begin{tabular}{|l|c|c|}
\hline
Column1 & A number\tnote{a} & A number\tnote{a} \\
\hline
Name1 & 0.090 & 0.070 \\
\hline
Name2 & 0.074 & 0.033 \\
\hline
Name3 & 0.180 & 0.081 \\
\hline
\end{tabular}
\begin{tablenotes}
\item[a]{small comment}
\end{tablenotes}
\end{threeparttable}
\end{center}
\end{table}

%end LaTeX code

The only thing I want is caption that is wider than the table (for example
\textwidth)

I'm using pdfTeX.


I hope you can help me around this issue.

Steven Van Hove


M. Shell

unread,
Apr 12, 2003, 4:06:49 AM4/12/03
to
Steven Van Hove wrote:
>
> The only thing I want is caption that is wider than the table (for example
> \textwidth)

I am a big fan of threeparttable.sty. However, a different approach for
this case is to do things the good ol' fashioned manual way.
Try:


\begin{table}[!hbt]
\centering
\caption{This is a very large caption which is absolutely necessary for the


readers to understand the table}
\label{tab:elisaT1}
\begin{tabular}{|l|c|c|}
\hline

Column1 & A number\textsuperscript{a} & A number\tnote{a} \\


\hline
Name1 & 0.090 & 0.070 \\
\hline
Name2 & 0.074 & 0.033 \\
\hline
Name3 & 0.180 & 0.081 \\
\hline

\multicolumn{3}{l}{}\\[-0.75\normalbaselineskip]%
\multicolumn{3}{l}{\textsuperscript{a}small comment}%
\end{tabular}
\end{table}

and see how you like it.

Mike Shell

Steven Van Hove

unread,
Apr 12, 2003, 7:33:12 AM4/12/03
to

> I am a big fan of threeparttable.sty. However, a different approach for
> this case is to do things the good ol' fashioned manual way.
> Try:
>
>
> \begin{table}[!hbt]
> \centering
> \caption{This is a very large caption which is absolutely necessary for
the
> readers to understand the table}
> \label{tab:elisaT1}
> \begin{tabular}{|l|c|c|}
> \hline
> Column1 & A number\textsuperscript{a} & A number\tnote{a} \\
> \hline
> Name1 & 0.090 & 0.070 \\
> \hline
> Name2 & 0.074 & 0.033 \\
> \hline
> Name3 & 0.180 & 0.081 \\
> \hline
> \multicolumn{3}{l}{}\\[-0.75\normalbaselineskip]%
> \multicolumn{3}{l}{\textsuperscript{a}small comment}%
> \end{tabular}
> \end{table}
>

>
> and see how you like it.

I like it, it looks the way I want it.
So a manipulation of the threeparttable isn't necessary anymore.

>
> Mike Shell
>

Thanx,
Steven


Donald Arseneau

unread,
Apr 14, 2003, 6:30:43 AM4/14/03
to
"Steven Van Hove" <steven....@student.kuleuven.ac.be> writes:

> I'm indeed using the threeparttable for the notes

OK, if you are using floating tables (table environment)
just put the caption outside of threeparttable.

Donald Arseneau as...@triumf.ca

0 new messages