Quando uso o floatrow
pacote, threeparttable
a capacidade de alterar a largura da legenda para caber na tabela parece ser perdida. A primeira imagem mostra o que espero:
Mas esse comportamento se perde com o floatrow
.
Alguma ideia?
MWE abaixo.
\documentclass[11pt]{scrartcl}
\usepackage{threeparttable}
\usepackage[font=small,labelfont=sc]{caption}
%%% comment the next two lines out and the caption width wortks
\usepackage{floatrow} % this package removes tpt caption width
\floatsetup[table]{capposition=top}
%%%
\begin{document}
\begin{table}[htb] %% add [htb] here for better
\begin{threeparttable}
\caption{Some caption to demonstrate my issue}
\begin{tabular}{lll}
Letter & Number & Number\\
\hline
Alpha & 123 & 10\\
Beta & 246 & 100\\
Delta & 369 & 1000\\
\end{tabular}
\begin{tablenotes}
\item[] Some notes, these seem to be working
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
Responder1
Basta usar a sintaxe floatrow. Aproveitei para melhorar um pouco a tabela com as regras do booktabs
, que possuem algum preenchimento vertical e fazem com que as tabelas pareçam menos apertadas.
\documentclass[11pt]{article}%{scrartcl}
\usepackage[flushleft]{threeparttable}
\usepackage[font=small,labelfont=sc]{caption}
%%% comment the next two lines out and the caption width wortks
\usepackage{floatrow} % this package removes tpt caption width
\floatsetup[table]{capposition=top}
\usepackage{booktabs}
%%%
\begin{document}
\begin{table}[htb] %% add [htb] here for better
\ttabbox{\caption{Some caption to demonstrate my issue}}{\begin{threeparttable}
\begin{tabular}{lll}
Letter & Number & Number\\
\midrule
Alpha & 123 & 10\\
Beta & 246 & 100\\
Delta & 369 & 1000\\
\end{tabular}
\begin{tablenotes}
\item[]\hskip-0.25em Some notes, these seem to be working
\end{tablenotes}
\end{threeparttable}}
\end{table}
\end{document}