Place table footnotes and legend

footnotestables

I'm trying to reproduce the following table in latex:

enter image description here

But I can't put the table footnotes under the table. I would also like to add who is the author of the table below, as is done in the figures.

enter image description here

\begin{table}[htb!]
\setlength\tabcolsep{0pt}
%\small % <-- optional
\caption{Correntes de \textit{inrush} para diferentes conexões do transformador}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} cccccc }
\toprule
\multicolumn{2}{c}{Conexão do} & 
\multicolumn{2}{c}{Banco de} & 
\multicolumn{2}{c}{Transformador} \\
\multicolumn{2}{c}{Transformador} & 
\multicolumn{2}{c}{Transformadores } &
\multicolumn{2}{c}{Trifásico} \\
\cmidrule{1-2} \cmidrule{3-4} \cmidrule{5-6}
Primário  & Secundário & Chaveamento & Chaveamento & Chaveamento & Chaveamento  \\
          &            & Simultâneo  & Sequencial  & Simultâneo  & Sequencial   \\
\midrule
 Y (Aterrado) & $\Delta$ ou Y & 26$\times$normal... & 26$\times$normal... & 13$\times$normal... & 14.5$\times$normal... \\
 Y (Aterrado) & $\Delta$      & 26$\times$normal... & 29$\times$normal... & 13$\times$normal... & 14.5$\times$normal... \\
\addlinespace
 Y            & $\Delta$ ou Y & 20$\times$normal... & 20$\times$normal... & 11$\times$normal... &   11$\times$normal... \\
 Y            & $\Delta$      & 20$\times$normal... & 20$\times$normal... & 11$\times$normal... &   11$\times$normal... \\
\addlinespace
 $\Delta$     & $\Delta$ ou Y & 20*$\times$normal...& 30\textdagger$\times$normal...& 15.5\textdaggerdbl$\times$normal...  & 15.5\textdaggerdbl$\times$normal... \\
 $\Delta$     & $\Delta$      & 20*$\times$normal...& 30\textdagger$\times$normal...& 15.5\textdaggerdbl$\times$normal... & 15.5\textdaggerdbl$\times$normal...\\
\bottomrule   
\end{tabular*}

\end{table}

I'm using the following compiler: pt.overleaf.com/latex/templates/pcall-tcc/dywydszxydqd. And the document class is abntex2

Best Answer

I'd like to suggest you employ machinery of the threeparttable package. Use \tnote{...} directives -- where ... could be \textasteriskcentered, \textdagger, or \textdagggerdbl -- inside the tabular environment to plant footnote markers. Then, use a tablenotes environment with \item[...] directives to typeset the corresponding footnote texts.

No special machinery seems to be needed for the Source attribution; see the code below for an implementation of this claim.

enter image description here

\documentclass{abntex2}

\usepackage[flushleft]{threeparttable}  % <-- new

\begin{document}
\begin{table}[htb!]
\setlength\tabcolsep{0pt}
\begin{threeparttable}
\caption{Correntes de \textit{inrush} para diferentes conexões do transformador}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} cccccc }
\toprule
\multicolumn{2}{c}{Conexão do} & 
\multicolumn{2}{c}{Banco de} & 
\multicolumn{2}{c}{Transformador} \\
\multicolumn{2}{c}{Transformador} & 
\multicolumn{2}{c}{Transformadores } &
\multicolumn{2}{c}{Trifásico} \\
\cmidrule{1-2} \cmidrule{3-4} \cmidrule{5-6}
Primário  & Secundário & Chaveamento & Chaveamento & Chaveamento & Chaveamento  \\
          &            & Simultâneo  & Sequencial  & Simultâneo  & Sequencial   \\
\midrule
 Y (Aterrado) & $\Delta$ ou Y & 26$\times$normal... & 26$\times$normal... & 13$\times$normal... & 14.5$\times$normal... \\
 Y (Aterrado) & $\Delta$      & 26$\times$normal... & 29$\times$normal... & 13$\times$normal... & 14.5$\times$normal... \\
\addlinespace
 Y            & $\Delta$ ou Y & 20$\times$normal... & 20$\times$normal... & 11$\times$normal... &   11$\times$normal... \\
 Y            & $\Delta$      & 20$\times$normal... & 20$\times$normal... & 11$\times$normal... &   11$\times$normal... \\
\addlinespace
 $\Delta$     & $\Delta$ ou Y & 
20\tnote{\textasteriskcentered}$\times$normal...& 
30\tnote{\textdagger}$\times$normal...& 
15.5\tnote{\textdaggerdbl}$\times$normal...  & 
15.5\tnote{\textdaggerdbl}$\times$normal... \\
 $\Delta$     & $\Delta$      & 
20\tnote{\textasteriskcentered}$\times$normal...& 
30\tnote{\textdagger}$\times$normal...& 
15.5\tnote{\textdaggerdbl}$\times$normal... & 
15.5\tnote{\textdaggerdbl}$\times$normal...\\
\bottomrule   
\end{tabular*}

\smallskip
\small
\begin{tablenotes}
\item[\textasteriskcentered] Based on normal phase current; equals 11.5 based on normal line current.
\item[\textdagger] Based on normal phase current; equals 17.3 based on normal line current.
\item[\textdaggerdbl] Based on normal phase current; equals \phantom{0}9.0 based on normal line current.
\end{tablenotes}

\smallskip
\centering
Fonte: \textsc{el hawary} (1986)

\end{threeparttable}
\end{table}
\end{document}