I wonder how to restore width of the caption in threeparttable
environment to regular table
environment. It is important that caption is inside threeparttable
environment. In other words I want to increase caption width (Figure 1).
The minimal working example goes as follows:
\documentclass{article}
\usepackage{threeparttable,booktabs}
\begin{document}
\begin{table}
\centering
\begin{threeparttable}
\caption{This is example table with width equal to default width in table environment}
\begin{tabular}{cccc}
\toprule
Col 1& Col 2 & Col 3 & Col 4 \\
\midrule
1 & 2 & 3 & 4 \\
5 & 6 & 7 & 8 \\
9 & 10 & 11 & 12 \\
\bottomrule
\end{tabular}
\begin{tablenotes}[flushleft]\footnotesize
\item[1] Long, long, long, long, long, long, note
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
When I insert \renewcommand\TPTminimum{\linewidth}
before \caption{...}
the width extends, but the table in left aligned (Figure 2 below).
Any suggestion or pointer is greatly appreciated.
threeparttable
?\vbox
where the\hsize
is the maximum between the table width and\TPTminimum
.threeparttable
, but still insidetable
.\caption{This is example table with width equal \ldots\tnote{a}}
outside thethreeparttable
. However, the notes are printed below the table but the footnote mark in caption is omitted.