
No tablenotes
ambiente definido pelo threeparttable
pacote, eu queria redimensionar minhas anotações globalmente em todo o documento.
Encontrei esta resposta para uma pergunta que alguém postou em relação a um problema semelhante:Usando \appto
do etoolbox
pacote para anexar a\TPTnoteSettings
.
Acontece que esta solução não funciona se threeparttable
for invocada com uma opção como flushleft
, consulte o MWE. O resultado é assim (observe que o texto abaixo da tabela tem o mesmo tamanho que o texto da tabela):
Compare isso com chamar o pacote sem nenhuma opção ou com [normal]
, que também funciona:
\documentclass{scrartcl}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{etoolbox}
\appto\TPTnoteSettings{\footnotesize}
\begin{document}
\begin{table}
\begin{threeparttable}[b]
\caption{A caption}
\begin{tabular}{llll}
\toprule
42& some & text & to have room\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item the first note
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
Responder1
Trabalhe com \TPT@defaults
(usando \g@addto@macro
você não precisa etoolbox
):
\documentclass{scrartcl}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\makeatletter
\g@addto@macro\TPT@defaults{\footnotesize}
\makeatother
\begin{document}
\begin{table}
\begin{threeparttable}[b]
\caption{A caption}
\begin{tabular}{llll}
\toprule
42& some & text & to have room\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item the first note
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}