我正在尝试在乳胶中重现下表:
但我不能把表格脚注放在表格下面。我还想在下面添加表格的作者是谁,就像在图中所做的那样。
\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}
我使用以下编译器:pt.overleaf.com/latex/templates/pcall-tcc/dywydszxydqd。文档类是 abntex2
答案1
我建议你使用三部分表包。在环境中使用\tnote{...}
指令 -- 其中...
可以是\textasteriskcentered
、\textdagger
或\textdagggerdbl
--tabular
来植入脚注标记。然后,使用tablenotes
带有\item[...]
指令的环境来排版相应的脚注文本。
来源归属似乎不需要任何特殊机制;请参阅下面的代码以了解此声明的实现。
\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}
答案2
lrbox 和 \tablefoot 解决方案
Mico 给出了一个很好的答案,但 threeparttable 已经 19 年没有更新了,所以我担心它无人维护。我还需要页脚与表格完美对齐。最后,我经常需要纯文本作为页脚,而不是脚注列表。
我使用的方法是通过创建一个框,在里面\newsavebox
使用它,然后在宏中使用它。\begin{lrbox}
table
\tablefoot
\RequirePackage{expl3}
\RequirePackage{caption}
\RequirePackage{setspace}
%\RequirePackage{enumitem} % may be useful
%\RequirePackage{tabularray} % LaTeX3 tabular replacement
%\RequirePackage{booktabs} % professional-quality tables
%\RequirePackage{csvsimple-l3} % load CSV data
\def\captionstretch{1.0} % line spacing
\captionsetup[table]%
{
labelfont={small,sf,bf,stretch=\captionstretch},
textfont={small,sf,bf,stretch=\captionstretch},
position=above
}
\newsavebox{\tablebox}
\ProvideDocumentEnvironment{smarttable}{}%
{ \begin{table}\centering \begin{lrbox}{\tablebox} }%
{ \end{lrbox} \end{table} }%
\ProvideDocumentEnvironment{smarttable*}{}%
{ \begin{table*}\centering \begin{lrbox}{\tablebox} }%
{ \end{lrbox} \end{table*} }
\ProvideDocumentCommand{\tablefoot}{m}%
{{
\setstretch{\captionstretch} \sffamily
\usebox{\tablebox}\\[\medskipamount]
\parbox{\wd\tablebox}{ \small #1 }
}}
使用方法:
\begin{document}
\begin{smarttable}
\begin{tabular*}
table contents ...
\end{tabular*}
\tablefoot{
\begin{itemize}[noitemsep]
\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{itemize}
}
\end{smarttable}