1

I do have a problem putting a common tablenote - which is important for both panels - below the following table:

\documentclass[a4paper,12pt]{article}
\usepackage{fancyhdr}
\usepackage[a4paper,lmargin={2.5cm},rmargin={2.5cm},
tmargin={2cm},bmargin = {2cm}]{geometry}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage[]{graphicx}
\usepackage{float}
\usepackage{eurosym}
\usepackage{amsmath} % for equations over multiple lines
\usepackage[hang,bottom]{footmisc} % Fußzeile bleibt am Boden %
\usepackage{natbib}  % havard style citation
\usepackage{grffile}
\usepackage{bbm}
\usepackage{longtable} % table over two pages
\usepackage{graphicx}
\usepackage{caption}
\usepackage{adjustbox}
\usepackage{subcaption}

\usepackage[flushleft]{threeparttable} %note below table

\usepackage{url}
\makeatletter
\g@addto@macro{\UrlBreaks}{\UrlOrds}
\makeatother


\newtheorem{theorem}{Definition}[section]




\setlength{\parindent}{0pt}
\setlength{\footnotemargin}{0.8em}

\usepackage[titletoc,title]{appendix}
\usepackage[nottoc,notlot,notlof]{tocbibind}

\usepackage{hyperref}
\linespread{1.25}
\floatstyle{plaintop}
\restylefloat{table}

\begin{document}



\begin{table}[H]
\scalebox{0.9}{%
\caption{How to put a common table note below both tables - on that is nut just below one but holds for both panels? } 

\begin{tabular}{cc}

    \begin{minipage}{.5\linewidth}
   \begin{threeparttable}
\subcaption*{Panel A: Default Classification}
\begin{tabular}{lrr}
\hline\hline
\multicolumn{1}{l}{Variable}&\multicolumn{1}{c}{A}&\multicolumn{1}{c}{B(\%)}\tabularnewline
\hline
yyyyyyyyyyyyyyyyyy&$0.5104$&$0.02$\tabularnewline
xxxxxxxxxxxxxxxxxx&$0.5098$&$0.00$\tabularnewline
\hline
\end{tabular}


\end{threeparttable}
    \end{minipage} &

    \begin{minipage}{.5\linewidth}
      \begin{threeparttable}
      \subcaption*{Panel B: Prepaid Classification}
\begin{tabular}{lrr}
\hline\hline
\multicolumn{1}{l}{Variable}&\multicolumn{1}{c}{A}&\multicolumn{1}{c}{B(\%)}\tabularnewline
\hline
yyyyyyyyyyyyyyyyyy&$0.5104$&$0.02$\tabularnewline
xxxxxxxxxxxxxxxxxx&$0.5098$&$0.00$\tabularnewline
\hline
\end{tabular}

\end{threeparttable}
    \end{minipage} 


\end{tabular}
}


\end{table}


\end{document}

I allready tried raggedright and threeparttable - but without success.

Any help is welcome!

1

You can use the threeparttable mechanism of \tnote and tablenotes but put the tablenotes in a new threeparttable centered below the others:

Sample output

\documentclass[a4paper,12pt]{article}

\usepackage{float}
\usepackage[hang,bottom]{footmisc} % Fußzeile bleibt am Boden %
\usepackage{graphicx}
\usepackage{subcaption}

\usepackage[flushleft]{threeparttable} %note below table

\setlength{\parindent}{0pt}
\setlength{\footnotemargin}{0.8em}

\usepackage{hyperref}
\linespread{1.25}
\floatstyle{plaintop}
\restylefloat{table}

\begin{document}

\begin{table}
  \caption{How to put a common table note below both tables---one that
  is not just below one but holds for both panels? }
  \centering
  \begin{threeparttable}
    \subcaption*{Panel A: Default Classification}
    \begin{tabular}{lrr}
      \hline\hline
      \multicolumn{1}{l}{Variable\tnote{1}}
      &\multicolumn{1}{c}{A}
      &\multicolumn{1}{c}{B(\%)}
        \tabularnewline
        \hline
        yyyyyyyyyyyyyy
      &$0.5104$
      &$0.02$
        \tabularnewline
        xxxxxxxxxxxxxx
      &$0.5098$
      &$0.00$
        \tabularnewline
        \hline
    \end{tabular}
  \end{threeparttable}
  \quad
  \begin{threeparttable}
    \subcaption*{Panel B: Prepaid Classification}
    \begin{tabular}{lrr}
      \hline\hline
      \multicolumn{1}{l}{Variable\tnote{1}}
      &\multicolumn{1}{c}{A}
      &\multicolumn{1}{c}{B(\%)}
        \tabularnewline
        \hline
        yyyyyyyyyyyyy
      &$0.5104$
      &$0.02$
          \tabularnewline
        xxxxxxxxxxxxx
      &$0.5098$
      &$0.00$
        \tabularnewline
        \hline
      \end{tabular}
    \end{threeparttable}

    \begin{minipage}{.5\linewidth}
      \begin{threeparttable}
        \begin{tablenotes}
        \item[1] These variables have long names.
        \end{tablenotes}
      \end{threeparttable}
    \end{minipage}

  \end{table}

\end{document}

I have removed packages not relevant for the particular problem.

| improve this answer | |
  • Thank you very much for the reply! I'm currently very busy such that I could not answer instantly... – Jogi Oct 24 '17 at 5:50
1

A solution with floatrow:

\documentclass[a4paper,12pt, english]{article}
\usepackage{fancyhdr}
\usepackage[a4paper,hmargin=2.5cm, vmargin=2cm]{geometry}
\usepackage{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
%\usepackage{float}
\usepackage{eurosym}
\usepackage{amsmath} % for equations over multiple lines
\usepackage[hang,bottom]{footmisc} % Fußzeile bleibt am Boden %
\usepackage{natbib} % harvard style citation
\usepackage{grffile}
\usepackage{bbm}
\usepackage{longtable} % table over two pages
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{floatrow}
\usepackage[flushleft]{threeparttable} %note below table

\usepackage{url}
\makeatletter
\g@addto@macro{\UrlBreaks}{\UrlOrds}
\makeatother

\newtheorem{theorem}{Definition}[section]

\setlength{\parindent}{0pt}
\setlength{\footnotemargin}{0.8em}

\usepackage[titletoc,title]{appendix}
\usepackage[nottoc,notlot,notlof]{tocbibind}

\usepackage{hyperref}
\linespread{1.25}
\floatstyle{plaintop}
\restylefloat{table}

\begin{document}

\begin{table}[!h]
\captionsetup[sub]{font=footnotesize}
\floatsetup[subtable]{floatrowsep=qquad}
\ttabbox[\FBwidth]{%
\begin{threeparttable}%
\begin{subfloatrow}%
\ttabbox[\FBwidth]{\caption*{Panel A: Default Classification}}
{%
\begin{tabular}{lrr}
\hline\hline
\multicolumn{1}{l}{Variable\tnote{a}}&\multicolumn{1}{c}{A}&\multicolumn{1}{c}{B(\%)}\tabularnewline
\hline
yyyyyyyyyyyyyyyyyy&$0.5104$&$0.02$\\
xxxxxxxxxxxxxxxxxx&$0.5098$&$0.00$\\
\hline
\end{tabular}}%
\ttabbox[\FBwidth]{\caption*{Panel B: Prepaid Classification}}
{\begin{tabular}{lrr}
\hline\hline
\multicolumn{1}{l}{Variable}&\multicolumn{1}{c}{A}&\multicolumn{1}{c}{B(\%)}\tabularnewline
\hline
yyyyyyyyyyyyyyyyyy&$0.5104$&$0.02$\tnote{b}\\
xxxxxxxxxxxxxxxxxx&$0.5098$&$0.00$\\
\hline
\end{tabular}}
\end{subfloatrow}
\begin{tablenotes}\footnotesize
 \item[a] First table note.
\item[b] Another table note, with some quite long text. Some more text.
\end{tablenotes}
\end{threeparttable}}%
{\caption{How to put a common table note below both tables - on that is nut just below one but holds for both panels? }}
\end{table}

\end{document} 

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.