편집: 이제 특히 A5 용지로 작업하고 있기 때문에 매우 긴 메모에 문제가 있다는 것을 깨달았습니다. Mica 솔루션 사용:
그러나 가지고 있으면 tablenotes
flushleft
잘 작동합니다.
하나의 두 가지 질문:
tablenotes
테이블과 그림의 왼쪽부터 시작하도록 어떻게 정렬합니까 ? (flushleft
옵션은threeparttable
세 부분 테이블 전체에 영향을 미치고 불일치를 만듭니다)tablenotes
그림과 표를 비교할 때 내 코드에서 이러한 차이가 표시되는 이유는 무엇입니까 ?
\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}
답변1
flushleft
다음 예에서는 개별 환경에 대한 옵션을 사용했습니다 tablenotes
. 또한 정렬 문제를 극복하기 위해 환경 tikzpicture
에 포함시켰습니다 .tabular
\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}[]
\caption{Pressão}
\label{fig:pvapor2}
\begin{threeparttable}
\begin{tabular}{@{}c@{}}
\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}
\end{tabular}
\begin{tablenotes}[flushleft]
\item Fonte: Autor.
\end{tablenotes}
\end{threeparttable}
\end{figure}
\begin{table}
\caption{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}[flushleft]
\item Fonte: Autor.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
답변2
\tnote
어떤 지시어도 사용하지 않는다는 점을 고려하면 threeparttable
기계와 tablenotes
환경을 사용하는 것은 부적절하거나 적어도 엄청난 과잉 공격처럼 보입니다. 서식 지정 목적을 위한 가장 간단한 솔루션은 "Fonte"("소스" 맞죠?) 줄을 배치하는 것으로 보입니다.몸 속으로환경 의 tabular
. 아래 코드에서는 다음과 같이 작성합니다.
\multicolumn{4}{@{}l}{\footnotesize Fonte: Autor.}
조정을 수행하는 동안 열 유형을 사용하는 방식에 있어 좀 더 신중해야 합니다 . 특히 모든 경우에 적용되는 단일 접근 방식은 바람직하지 않다는 S
점을 고려하면 더욱 그렇습니다 .SSSS
환경 내 물질 처리에 대해서도 동일한 주장이 적용됩니다 figure
. 환경 기계가 필요하지 않습니다 threeparttable
. 열 유형을 사용하여 tikzpicture
단일 열 환경에 환경을 배치하고 두 번째 행을 다음으로 구성하십시오.tabular
@{}l@{}
\footnotesize Fonte: Autor. % second "row"
\documentclass{memoir}
\usepackage{lmodern} % Usa a fonte Latin Modern
\usepackage[T1]{fontenc} % Selecao de codigos de fonte.
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage{siunitx}
\sisetup{range-phrase={\,a\,},
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=1ex,
%width=0.95\linewidth,
}
\setfloatadjustment{table}{\centering}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\setcounter{chapter}{2} % just for this example
\begin{table}
\caption{Planejamento}
\label{tab:planejamentoexperimental}
\begin{tabular}{@{} *{2}{S[table-format=2.0]}
*{2}{S[table-format=-1.5]} @{}}
\toprule
{Ordem} & {Ensaio} & {Fator A} & {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
\addlinespace
\multicolumn{4}{@{}l}{\footnotesize Fonte: Autor.}
\end{tabular}
\end{table}
\begin{figure}[h!]
\centering
\caption{Pressão}
\label{fig:pvapor2}
\begin{tabular}{@{}l@{}}
\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}\\ % end of first "row"
\footnotesize Fonte: Autor. % second "row"
\end{tabular}
\end{figure}
\end{document}