미니페이지의 위치

미니페이지의 위치

표의 각주를 오른쪽에 두고 싶어서 미니페이지 환경을 사용했습니다. 어떤 이유에서인지 각주는 표 오른쪽에 위치하지 않고 표 공간의 절반만 차지합니다. 이러한 중복을 어떻게 방지합니까?

\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}

여기에 이미지 설명을 입력하세요

관련 정보