2열 문서의 전체 페이지 너비(표* 포함)에 걸쳐 나란히 있는 두 개의 표 형식에서 각주 너비 확장을 보장하는 방법은 무엇입니까?

2열 문서의 전체 페이지 너비(표* 포함)에 걸쳐 나란히 있는 두 개의 표 형식에서 각주 너비 확장을 보장하는 방법은 무엇입니까?

내 테이블 내의 내용은 footnote첫 번째 테이블 섹션의 너비로 제한되어 있으며 테이블의 전체 너비를 차지하도록 확장하는 방법을 찾고 있습니다.

내 문서는 스타일에 맞게 형식이 지정되어 있으며 전체 페이지 너비에 걸쳐 표를 확장하는 환경을 two-column사용했습니다 . table*이 구조 내에서 두 개의 테이블 섹션을 나란히 배열하여 두 개의 개별 테이블을 구성했습니다. 또한 threeparttable패키지를 활용하여 테이블 노트를 통합하고 있습니다.

제공된 코드는 아래 그림과 같은 출력을 생성합니다. 빨간색으로 강조 표시된 모든 공백을 포함하도록 각주를 향상시키고 싶습니다.

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

\documentclass[twocolumn]{article}

\usepackage{graphicx} % Required for inserting images
\usepackage{booktabs} 
\usepackage{tabularx} 
\usepackage{threeparttable}
\usepackage{makecell}
\usepackage{colortbl}
\usepackage{amsmath} 
\usepackage{lipsum} % For dummy text; you can remove this in your actual document

\usepackage{geometry} %margins of the document
 \geometry{
 a4paper,
 total={170mm,257mm},
 left=20mm,
 top=20mm,
 }

\usepackage{showframe} % to show page margins

\title{two_colums_two_columns}
\author{alexyshr }
\date{January 2024}

\begin{document}
\definecolor{light-gray}{gray}{0.95}

\section{Introduction}
\lipsum[1-2]


\addtolength{\tabcolsep}{-5pt} %reduce default column separation

\begin{table*}[hbt!] %table* will expand the table to all the space available
\caption{SOF Metrics. All providers. Florida Power Grid - PG}

\centering
\fontsize{7}{9}\selectfont
\begin{threeparttable}
\begin{tabular}[t]{>{}clcccccc}
\toprule
  & \textbf{County} & \textbf{\makecell[c]{SOF\\MERS$^\dagger$}} & \textbf{\makecell[c]{SOF\\MERA$^\ast$}} & \textbf{$\beta_0^\ddagger$} & \textbf{$\beta_1^\S$} & \textbf{$\#^\P$} & \vphantom{1} \textbf{\makecell[c]{Risk\\Ratio}}\\
\midrule
\em{1} & OSCEOLA & 46.0 & 0.511 & -7.176 & 0.156 & 10 & 0.720\\
\em{2} & HILLSBOROUGH & 45.0 & 0.500 & -7.003 & 0.156 & 10 & 0.736\\
\em{3} & SUMTER & 44.7 & 0.497 & -8.823 & 0.197 & 10 & 0.740\\
\em{4} & PALM BEACH & 43.9 & 0.488 & -10.656 & 0.243 & 10 & 0.754\\
\em{5} & MIAMI-DADE & 43.6 & 0.484 & -9.377 & 0.215 & 10 & 0.760\\
\bottomrule
\end{tabular}
\begin{tablenotes}[para]
\item[$\ast$] \text{$\equiv$ SOF-MERS: Multi-Event median Robustness wind Speed; }
\item[$\dagger$] \text{$\equiv$ SOF-MERA: Multi-Event Robustness Area.}
\item[$\ddagger$] \text{$\equiv$ Intercept; }
\item[$\S$] \text{$\equiv$ Slope; }
\item[$\P$] \text{$\equiv$ Number of Hurricane Events.}
\end{tablenotes}
\end{threeparttable}
\centering
\begin{tabular}[t]{clcccccc}
\toprule
\em{ } & \textbf{County} & \textbf{\makecell[c]{SOF\\MERS$^\dagger$}} & \textbf{\makecell[c]{SOF\\MERA$^\ast$}} & \textbf{$\beta_0^\ddagger$} & \textbf{$\beta_1^\S$} & \textbf{$\#^\P$} & \textbf{\makecell[c]{Risk\\Ratio}}\\
\midrule
\em{35} & HAMILTON & 32.3 & 0.359 & -7.244 & 0.224 & 10 & 1.024\\
\em{36} & DIXIE & 32.2 & 0.358 & -10.633 & 0.330 & 10 & 1.027\\
\em{37} & PUTNAM & 32.2 & 0.357 & -9.266 & 0.288 & 10 & 1.030\\
\em{38} & FLAGLER & 32.0 & 0.356 & -9.695 & 0.303 & 10 & 1.033\\
\em{\cellcolor{light-gray}{\textbf{$>>$}}} & \cellcolor{light-gray}{\textbf{ALL}} & \cellcolor{light-gray}{\textbf{33.1}} & \cellcolor{light-gray}{\textbf{0.368}} & \cellcolor{light-gray}{\textbf{-7.776}} & \cellcolor{light-gray}{\textbf{0.235}} & \cellcolor{light-gray}{\textbf{683}} & \cellcolor{light-gray}{\textbf{1.000}}\\
\bottomrule
\end{tabular}
\end{table*}

\lipsum[3-15]

%return to normal column separation
\addtolength{\tabcolsep}{1pt} 


\end{document}

답변1

tabular"외부" 2열 환경에 더 작은 환경을 모두 포함 tabular하고 "외부" 테이블 형식 환경을 두는 것이 좋습니다. 텍스트 블록의 전체 너비에 걸쳐 있습니다. 그런 다음 해당 threeparttable환경이 이 "외부" 테이블 형식 환경을 포함하는지 확인하세요 .

또한 패키지를 로드 siunitx하고 두 내부 환경의 열에 S대해 해당 열 유형을 사용하여 소수점 표시의 숫자를 정렬하고 적절한 수학 빼기 기호를 얻습니다.$\beta_0$tabular

그건 그렇고, 그럴 필요는 없어.볼드체헤더 행의 셀.

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

\documentclass[twocolumn]{article}

\usepackage{graphicx} % Required for inserting images
\usepackage{booktabs} 

\usepackage[para]{threeparttable}
\usepackage{makecell}
\usepackage{colortbl,xcolor}
\definecolor{light-gray}{gray}{0.9}

\usepackage{amsmath} 
\usepackage{lipsum} % For dummy text; you can remove this in your actual document

\usepackage{geometry} %margins of the document
\geometry{a4paper, total={170mm,257mm}, margin=20mm}

\usepackage{siunitx} % for 'S' column type


%\usepackage{showframe} % to show page margins


\begin{document}


\section{Introduction}
\lipsum[1-2]

\begin{table*}

\setlength{\tabcolsep}{3pt} % default: 6pt
\footnotesize

\caption{SOF Metrics. All providers. Florida Power Grid -- PG}

\smallskip
\begin{threeparttable}

% "outer" table
\begin{tabular}{@{}cc@{}}
 
% first "inner" table
\begin{tabular}{@{} >{\em}l l cc S[table-format=-1.3] ccc @{}}
\toprule
  & County 
  & \makecell{SOF\\MERS\tnote{\textdagger}} 
  & \makecell{SOF\\MERA\tnote{\textasteriskcentered}} 
  & {$\beta_0$\tnote{$\ddagger$}}
  & $\beta_1$\tnote{\S} 
  & \#\tnote{\P}
  & \makecell{Risk\\Ratio}\\
\midrule
1 & OSCEOLA      & 46.0 & 0.511 &  -7.176 & 0.156 & 10 & 0.720\\
2 & HILLSBOROUGH & 45.0 & 0.500 &  -7.003 & 0.156 & 10 & 0.736\\
3 & SUMTER       & 44.7 & 0.497 &  -8.823 & 0.197 & 10 & 0.740\\
4 & PALM BEACH.  & 43.9 & 0.488 & -10.656 & 0.243 & 10 & 0.754\\
5 & MIAMI-DADE   & 43.6 & 0.484 &  -9.377 & 0.215 & 10 & 0.760\\
\bottomrule
\end{tabular} % end of first "inner" table
\hspace{5pt}
% second "inner" table
\begin{tabular}{@{\hspace{2pt}} >{\em}l l cc S[table-format=-1.3] ccc @{\hspace{2pt}}} 
\toprule
  & County 
  & \makecell{SOF\\MERS\tnote{\textdagger}} 
  & \makecell{SOF\\MERA\tnote{\textasteriskcentered}} 
  & {$\beta_0$\tnote{$\ddagger$}}
  & $\beta_1$\tnote{\S}
  & \#\tnote{\P}
  & \makecell{Risk\\Ratio}\\
\midrule
35 & HAMILTON & 32.3 & 0.359 &  -7.244 & 0.224 &  10 & 1.024\\
36 & DIXIE    & 32.2 & 0.358 & -10.633 & 0.330 &  10 & 1.027\\
37 & PUTNAM   & 32.2 & 0.357 &  -9.266 & 0.288 &  10 & 1.030\\
38 & FLAGLER  & 32.0 & 0.356 &  -9.695 & 0.303 &  10 & 1.033\\
\rowcolor{light-gray}
 & ALL               & 33.1 & 0.368 &  -7.776 & 0.235 & 683 & 1.000\\
\bottomrule
\end{tabular}\null
\end{tabular} % end of "outer" tabular

\smallskip
\begin{tablenotes}
\item[\textdagger] SOF-MERS: Multi-Event median Robustness wind Speed; 
\item[\textasteriskcentered] SOF-MERA: Multi-Event Robustness Area;
\item[$\ddagger$] Intercept;
\item[\S] Slope; 
\item[\P] Number of Hurricane Events.
\end{tablenotes}

\end{threeparttable}

\end{table*}

\lipsum[3-15]

\end{document}

관련 정보