
表の脚注を表の右側に配置したいので、ミニページ環境を使用しました。何らかの理由で、脚注は表の右側全体に配置されるのではなく、表のスペースの半分を占めます。この重なりを避けるにはどうすればよいですか?
\begin{table}[ht!]
\caption{Descriptive Statistics}
\begin{minipage}{0.2\textwidth}
\resizebox{8cm}{!} {\begin{tabular}{cccc}
\hline \hline
Variables & Mean & Std. dev. & Range \\
\hline \\
\textit{variable1} & 0.50 & 0.42 & 0-1 \vspace{1mm} \\
\textit{variable2} & 0.11 & 0.76 & 0-1 \vspace{1mm} \\
\textit{variable3} & 34.95 & 9.99 & 25-65 \vspace{1mm} \\
\textit{variable4} & 34.95 & 9.99 & 25-65 \vspace{4mm} \\
\hline Observations & & & 256
\end{tabular}}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\footnotesize \textit{Notes}: Description of variable1, variable2, variable3, variable4
\end{minipage}
\end{table}
答え1
重要な点は、 を使用することです\resizebox{\textwidth}{!}
。最善の方法は、新しい長さを定義して に設定することです8cm
。
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{table}[ht!]
\caption{Descriptive Statistics}
\begin{minipage}{0.49\linewidth}
\resizebox{\textwidth}{!} {\begin{tabular}{cccc}
\hline \hline
Variables & Mean & Std. dev. & Range \\
\hline \\
\textit{variable1} & 0.50 & 0.42 & 0-1 \vspace{1mm} \\
\textit{variable2} & 0.11 & 0.76 & 0-1 \vspace{1mm} \\
\textit{variable3} & 34.95 & 9.99 & 25-65 \vspace{1mm} \\
\textit{variable4} & 34.95 & 9.99 & 25-65 \vspace{4mm} \\
\hline Observations & & & 256
\end{tabular}}
\end{minipage}% %<----- no space
\begin{minipage}{0.5\linewidth}
\footnotesize \textit{Notes}: Description of variable1, variable2, variable3, variable4
\end{minipage}
\end{table}
\newlength{\mytabularwidth}
\setlength{\mytabularwidth}{8cm}
\begin{table}[ht!]
\caption{Descriptive Statistics}
\begin{minipage}{\mytabularwidth}
\resizebox{\textwidth}{!} {\begin{tabular}{cccc}
\hline \hline
Variables & Mean & Std. dev. & Range \\
\hline \\
\textit{variable1} & 0.50 & 0.42 & 0-1 \vspace{1mm} \\
\textit{variable2} & 0.11 & 0.76 & 0-1 \vspace{1mm} \\
\textit{variable3} & 34.95 & 9.99 & 25-65 \vspace{1mm} \\
\textit{variable4} & 34.95 & 9.99 & 25-65 \vspace{4mm} \\
\hline Observations & & & 256
\end{tabular}}
\end{minipage}% %<----- no space
\begin{minipage}{\dimexpr\linewidth-\mytabularwidth\relax}
\footnotesize \textit{Notes}: Description of variable1, variable2, variable3, variable4
\end{minipage}
\end{table}
\end{document}