threeparttable、TPTMinimum の再定義、および中央揃え環境に関する問題を解決するのを手伝ってくれる人はいませんか? 私がやろうとしていたことは、他のトピックでは見たことがありません。
次のようなものがあります:
\begin{table}
\centering
\begin{threeparttable}
\renewcommand\TPTminimum{\linewidth}
\captionsetup{font=small}
\begin{tabular}{|c|c|c|c|}
\hline\hline
{\scriptsize \textbf{Parameter}} & {\scriptsize \textbf{Value}} & {\scriptsize \textbf{Unity}} & {\scriptsize \textbf{Reference/Comment}}\\\hline
$\scriptstyle \tau_1$ & $\scriptstyle 10^{-2}$ & $\scriptstyle\text{dia}^{-1}$ & {\scriptsize \citet{Spratt}}\\\hline
$\scriptstyle \tau_2$ & $\scriptstyle 10^{-3}$ & $\scriptstyle\text{dia}^{-1}$ & $\scriptstyle \tau_2 \; < \; \tau_1$\\\hline
%some more lines...
$\scriptstyle \lambda$ & $\scriptstyle 4.16$ & $\scriptstyle\text{dia}^{-1}$ & {\scriptsize \citet{REF2}\tnote{2}}\\\hline
$\scriptstyle a$ & $\scriptstyle 2 \times 10^{3}$ & {\scriptsize mg} & {\scriptsize \citet{REF1}\tnote{1}}\\\hline
$\scriptstyle b$ & $\scriptstyle 5 \times 10^{6}$ & {\scriptsize mg} & {\scriptsize \citet{REF1}\tnote{1}}\\
\hline\hline
\end{tabular}
%NOTES:
\begin{tablenotes}[flushleft]\footnotesize
\item[1] I want it that way because my table isn't so big and the footnotes are getting weird the original way...
\item[2] \,Second Note!
\end{tablenotes}
\end{threeparttable}
\caption{Parameters...}
\end{table}
どんな風に見えますか:
このテーブルを一元化するにはどうすればいいでしょうか? ありがとうございます!
答え1
の提案と同様に、ボックスtabular
内に設定してください。\makebox[\linewidth]
余白を無視して画像を中央に配置する:
\documentclass{article}
\usepackage{amsmath,caption,threeparttable,booktabs}
\newcommand{\citet}[1]{#1}% Just for this example
\begin{document}
\begin{table}
\begin{threeparttable}
\renewcommand\TPTminimum{\linewidth}
\captionsetup{font=small}
\makebox[\linewidth]{\scriptsize%
\begin{tabular}{cccc}
\toprule
\textbf{Parameter} & \textbf{Value} & \textbf{Unity} & \textbf{Reference/Comment} \\
\midrule
$\tau_1$ & $10^{-2}$ & $\text{dia}^{-1}$ & \citet{Spratt} \\
$\tau_2$ & $10^{-3}$ & $\text{dia}^{-1}$ & $\tau_2 \; < \; \tau_1$ \\
%some more lines...
$\lambda$ & $4.16$ & $\text{dia}^{-1}$ & \citet{REF2}\tnote{2} \\
$a$ & $2 \times 10^{3}$ & mg & \citet{REF1}\tnote{1} \\
$b$ & $5 \times 10^{6}$ & mg & \citet{REF1}\tnote{1} \\
\bottomrule
\end{tabular}}
%NOTES:
\begin{tablenotes}[flushleft]\footnotesize
\item[1] I want it that way because my table isn't so big and the footnotes are getting weird the original way...
\item[2] \,Second Note!
\end{tablenotes}
\end{threeparttable}
\caption{Parameters...}
\end{table}
\end{document}
答え2
私の考えです。またthreeparttablex
、他の機能の中でも、メモのフォント サイズをグローバルに設定できることも考慮してください。
キャプションを上部に配置しました。そしてキャプションを下部に配置すると、読者が混乱するだけです。数式では、非テキストを垂直に設定しないでください\text
。これは単位であり、実際にはそのように処理する必要があります ( siunitx
)。
\documentclass{article}
\usepackage{amsmath,threeparttable}
\usepackage[tableposition=top]{caption}
\usepackage{booktabs}
\captionsetup{font=small}
\newcommand{\citet}[1]{#1}% Just for this example
\begin{document}
\begin{table}
\centering
\caption{Parameters...}
\begin{threeparttable}
\scriptsize
\begin{tabular}{
c l c l c l c
}
\toprule
{\textbf{Parameter}} && {\textbf{Value}}
&& {\textbf{Unity}} && {\textbf{Reference/Comment}}
\\
\midrule
$ \tau_1$ && $ 10^{-2}$
&& $\mathrm{dia}^{-1}$ && {\citet{Spratt}}
\\
$ \tau_2$ && $ 10^{-3}$
&& $\mathrm{dia}^{-1}$ && $ \tau_2 < \tau_1$
\\
% some more lines...
$ \lambda$ && $ 4.16$
&& $\mathrm{dia}^{-1}$ && {\citet{REF2}\tnote{2}}
\\
$ a$ && $ 2 \times
10^{3}$ && {mg} && {\citet{REF1}\tnote{1}}
\\
$ b$ && $ 5 \times
10^{6}$ && {mg} && {\citet{REF1}\tnote{1}}
\\
\bottomrule
\end{tabular}
%NOTES:
\begin{tablenotes}%[flushleft]
\footnotesize
\item[1] I want it that way because my table isn't so big and the footnotes are getting weird the original way...
\item[2] Second Note!
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
(画像がコードと100%一致しません)