줄 사이의 테이블 간격

줄 사이의 테이블 간격

A열에 변수가 있는 테이블이 있고 B열에 두 줄의 결과가 있습니다. 그러나 숫자가 서로 너무 가깝기 때문에(제 생각에는) 두 번째 줄마다 약간의 간격이 있으면 더 좋아 보일 것입니다. . 현재 다음과 같습니다.

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

하지만 어떻게든 다음과 같아야 합니다.

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

훨씬 좋아 보이지는 않지만. 내가 기본적으로 원하는 것은 각 괄호 뒤에 약간의 공백이 있는 것입니다.

다음 예를 보면 더 명확해질 것 같습니다.

\documentclass[a4paper, 12pt]{article}
\usepackage[paper=portrait,pagesize]{typearea}
\usepackage{lscape}
\usepackage{a4wide}
\usepackage{tabularx, booktabs}
\usepackage{setspace,geometry}
\usepackage{pdflscape}
\usepackage{multirow}
\usepackage{threeparttable}
\usepackage[export]{adjustbox}
\usepackage{etoolbox}
\usepackage[hyperfootnotes=false]{hyperref}
\usepackage{footnotebackref}
\usepackage[bottom,hang,flushmargin]{footmisc} %footnotes always appear on bottom and not end of text on single page
\geometry{a4paper, top=30mm, left=30mm, right=30mm, bottom=30mm,headsep=10mm, footskip=12mm}


\begin{document}

\begin{table}[h]
  \centering
  \caption{Threshold Regression Results}
  \label{tab1:threshold}
  \begin{threeparttable}
  \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}*{2}{c}}
  \toprule
    \multicolumn{1}{l}{Variable} &  \multicolumn{1}{c}{Regime 1} & \multicolumn{1}{c}{Regime 2} \\
\midrule
    \multirow{2}[1]{*}{x} & -0.962*** & \multicolumn{1}{p{5.39em}}{-2.092***} \\
    \multicolumn{1}{c}{} & (-5.170) & \multicolumn{1}{p{5.39em}}{(-8.410)} \\
    \multirow{2}[0]{*}{y} & \multicolumn{1}{c}{-0.099} & -0.081 \\
    \multicolumn{1}{c}{} & (-0.880) & \multicolumn{1}{p{5.39em}}{(-0.320)} \\
    \multirow{2}[1]{*}{Constant} & 0.696*** & \multicolumn{1}{p{5.39em}}{1.606***} \\
    \multicolumn{1}{c}{} & \multicolumn{1}{c}{(-4.710)} & (-9.450) \\
    \midrule
    Threshold variable & \multicolumn{2}{c}{0.3245} \\
    Bitcoin($t-1$) & \multicolumn{2}{c}{SSR = 2.1297} \\
    \bottomrule

  \end{tabular*}
  \begin{tablenotes}[para,flushleft]
  \footnotesize
  \item\hspace{-2.5pt}\noindent\textit{Note:} This table presents Threshold regression estimation results for x, y and z. Standard deviation in parentheses; *** p < 0.01; ** p < 0.05; * p < 0.10.
  \end{tablenotes}
  \end{threeparttable}
\end{table}

\end{document}

답변1

관련 .\addlinespace​ 나는 (소수점의 숫자 정렬), (캡션과 테이블 사이의 더 나은 간격, 조정 가능한 캡션 글꼴) 및 (열 머리글의 일반적인 형식)을 \\사용하여 테이블에 몇 가지 개선 사항을 추가할 기회를 얻었습니다 .siunitxcaptionmakecell

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{multirow, booktabs, makecell, caption}
\usepackage{threeparttable}
\usepackage{siunitx}

\renewcommand{\theadfont}{\small\bfseries}
\captionsetup{font=bf}

\begin{document}

\begin{table}[h]
  \centering
\sisetup{table-format=-1.3, table-number-alignment=center, table-space-text-pre =(, table-space-text-post=$^{***}$, table-align-text-pre=false, table-align-text-post=false}
  \caption{Threshold Regression Results}
  \label{tab1:threshold}
  \begin{threeparttable}
  \begin{tabular*}{\textwidth}{c@{\extracolsep{\fill}}*{2}{S}}
  \toprule
    \thead{Variable} & {\thead{Regime 1}} & {\thead{Regime 2}} \\
\midrule
    \multirow{2}[1]{*}{x} & -0.962*** & -2.092*** \\
    \multicolumn{1}{c}{} & {(}-5.170{)} & {(}-8.410{)} \\
\addlinespace
    \multirow{2}[0]{*}{y} & -0.099 & -0.081 \\
    \multicolumn{1}{c}{} & {(}-0.880{)} & {(}-0.320{)} \\
\addlinespace
    \multirow{2}[1]{*}{Constant} & 0.696*** & 1.606*** \\
    \multicolumn{1}{c}{} & {(}-4.710{)} & {(}-9.450{)} \\
    \midrule
    Threshold variable & \multicolumn{2}{c}{0.3245} \\
   (Bitcoin$_{t-1}$) & \multicolumn{2}{c}{SSR = 2.1297} \\
    \bottomrule

  \end{tabular*}
  \begin{tablenotes}[para,flushleft]
  \footnotesize\smallskip
  \item\hspace{-2.5pt}\noindent\textit{Note:} This table presents Threshold regression estimation results for x, y and z. Standard deviation in parentheses; \enspace *** $p < 0.01$; \enspace ** $p < 0.05$;\enspace * $p < 0.10$.
  \end{tablenotes}
  \end{threeparttable}
\end{table}

\end{document} 

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

관련 정보