Edit: Now I realize there is a issue with very long notes, specially because I am working with A5 paper. Using Mica's solution:
Having the tablenotes
flushleft
however works just fine.
Two questions in one:
- How do I align the
tablenotes
to start at the left of the table and figure? (Theflushleft
option ofthreeparttable
does affect the whole threeparttable and creates inconsistency) - Why my code displays this difference in the
tablenotes
, when comparing figure and table?
\documentclass{memoir}
\usepackage{lmodern} % Usa a fonte Latin Modern
\usepackage[T1]{fontenc} % Selecao de codigos de fonte.
\usepackage[utf8]{inputenc} % Codificacao do documento (conv. auto. dos acentos)
\usepackage[brazil]{babel}
\usepackage[range-phrase={\,a\,}]{siunitx}
\sisetup{
group-digits=true,
group-four-digits=true,
group-separator={\,},
output-decimal-marker={,}
}
\usepackage{caption}
\captionsetup{
justification=justified,
%labelsep=quad,
labelsep=endash, %% ABNT q manda
position=above,
skip=\onelineskip,
width=0.95\linewidth,
}
\setfloatadjustment{table}{\centering}
\setfloatadjustment{figure}{\centering}
\setfloatadjustment{threeparttable}{\centering}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage[]{threeparttable}
\begin{document}
\begin{figure}[]
\captionof{figure}{Pressão}
\label{fig:pvapor2}
\begin{threeparttable}
\begin{tikzpicture}[]
\begin{axis}[grid=both,trim axis left, trim axis right,
xlabel={Something else}, ylabel={Something},
xmin= 1150,
xmax=1550,
ymin=-0.02
]
\addplot+[ultra thick] coordinates {
(1300-273,101325*4.278*10^-11)
(1400-273,101325*8.133*10^-10)
(1500-273,101325*1.040*10^-8)
(1600-273,101325*9.636*10^-8)
(1687-273,101325*5.377*10^-7)
(1700-273,101325*6.662*10^-7)
(1800-273,101325*3.117*10^-6)
(1900-273,101325*1.238*10^-5)
};
\end{axis}
\end{tikzpicture}
\begin{tablenotes}
\item Fonte: Autor.
\end{tablenotes}
\end{threeparttable}
\end{figure}
\begin{table}
\captionof{table}{Planejamento}
\label{tab:planejamentoexperimental}
\begin{threeparttable}[t]
\begin{tabular}{@{}SSSS @{}}
\toprule
\text{Ordem} & \text{Ensaio} & \text{Fator A} & \text{Fator B} \\
\midrule
12 & 1 & 0 & 0\\
5 & 2 & -1.41421 & 0\\
2 & 3 & 1 & -1\\
11 & 4 & 0 & 0\\
13 & 5 & 0 & 0\\
10 & 6 & 0 & 0\\
8 & 7 & 0 & 1.41421\\
1 & 8 & -1 & -1\\
9 & 9 & 0 & 0\\
7 & 10 & 0 & -1.41421\\
3 & 11 & -1 & 1\\
4 & 12 & 1 & 1\\
6 & 13 & 1.414214 & 0\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item Fonte: Autor.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
threeparttable
reads the last tables size, this does not work for your TikZ picture, which explains the difference in behaviour?\renewcommand\TPTminimum{\linewidth}
but dont know how exactly