表格行间距

表格行间距

我的表格在 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在相关之后使用 来执行此操作\\。我借此机会对您的表格进行了一些改进,包括siunitx (小数点上的数字对齐)、caption(标题和表格之间的更好间距、可调整的标题字体)和makecell(列标题的常见格式):

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

在此处输入图片描述

相关内容