In the past I have been using tabularx, caption and parnotes packages to design my tables. Now the user John Kormylo has mentioned the package threeparttable:
What advantages does threeparttable provide over the other packages mentioned?
My classic approach looked like that so far:
\documentclass{article}
\usepackage{tabularx}
\usepackage{caption}
\usepackage{parnotes}
\begin{document}
\begin{table}[htbp]
\caption{This is the caption}
\begin{tabularx}{\textwidth}{|l|l|}
\parnoteclear
Bla\parnote{First parnote} & Blub\parnote{Second parnote} \\
\end{tabularx}
\parnotes
\end{table}
\end{document}
- When does it make sense to go ahead with
threeparttable? While common
parnotesrefer to their item identifiers automatically by themselves, inthreeparttableI would manually have to type42\tnote{1}within the table and\begin{tablenotes} \item [1] the first note ... \end{tablenotes}below the table where I want to put my notes. This seems to be way more time consuming than just using
\parnote{This is a parnote}and get everything done by itself?
threeparttableis that the caption width is set to the real width of the table, which maybe useful in some cases. – Bernard Mar 31 '19 at 21:41\captionsetup{width=0.8\textwidth}and it's done, isn't it? – Dave Mar 31 '19 at 21:430.8\textwidth?" - I've expected it will be exactly0.8when writing\begin{tabularx}{0.8\textwidth}..., or could there be some issues? – Dave Mar 31 '19 at 21:47parnotesalways keep attached to the table while commonfootnotesappear in the document footer, or am I wrong? At least, that is what the upper MWE does. – Dave Mar 31 '19 at 21:48tabularx" - oh, did I do that in the upper MWE? I thought this is common usage oftabularx? – Dave Mar 31 '19 at 21:51tabularxthe problem is different. Anyway, other packages measure the width of tables or figures, such asfloatrow. – Bernard Mar 31 '19 at 21:54tabular*, usually). – egreg Mar 31 '19 at 21:55tabularxusage here is wrong, you have twolcolumns and noXbut as egreg hints, it is better not to usetabularxhere. Only use tabularx if you have tables with paragraphs in the cells andtabularxcan control the line breaking – David Carlisle Mar 31 '19 at 22:11