最后一栏空间太大

问题描述 投票:0回答:1

我正在使用乳胶准备一篇文章,并且正在创建一张长桌子。问题在于最后一列与其前面的一列之间的空间太大。这是我的代码和表格的图片:

\documentclass[sn-mathphys-num]{sn-jnl}% Math and Physical 

\usepackage{graphicx}%
\usepackage{multirow}%
\usepackage{amsmath,amssymb,amsfonts}%
\usepackage{amsthm}%
\usepackage{mathrsfs}%
\usepackage[title]{appendix}%
\usepackage{xcolor}%
\usepackage{textcomp}%
\usepackage{manyfoot}%
\usepackage{booktabs}%
\usepackage{algorithm}%
\usepackage{algorithmicx}%
\usepackage{algpseudocode}%
\usepackage{listings}%
\usepackage{flexisym}
\usepackage{booktabs}%


\usepackage{booktabs}
\usepackage{longtable}


\begin{document}

\begin{center}
\begin{longtable}[c]{c cc}
\caption{Graph embedding techniques: types, used models and algorithms \cite{cai2018comprehensive}.\label{long}}
\\
\hline
Graph Embedding Technique & Model Type & Algorithm\\ [0.5ex] 
\hline  
\multirow{11}{*}{Matrix factorization} & \multirow{6}{*}{Graph Laplacian Eigenmaps} & Isomap\\
~&~& ARE \cite{lin2005semantic}\\
~&~& LPP \cite{he2003locality}\\
~&~& SLE \cite{gong2014signed}\\
~&~& HSL \cite{sun2008hypergraph}\\
~&~& Diffusion maps\\\cmidrule{2-3}
&~\multirow{7}{*}{Node proximity matrix factorization}&LLE \cite{roweis2000nonlinear}\\
&~&~CMF \cite{}\\
&~&~GraRep \cite{cao2015grarep}\\
&~&~ULGE \cite{nie2017unsupervised}\\
&~&~FONPE \cite{pang2017flexible}\\
&~&~SPE \cite{shaw2009structure}\\
.
.
\end{longtable}
\end{center}
\end{document}

在此输入图片描述

我提前感谢您的想法和评论,

latex overleaf
1个回答
0
投票
\documentclass[sn-mathphys-num]{sn-jnl}

\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}

\begin{longtblr}[
  caption={Graph embedding techniques: types, used models and algorithms \cite{cai2018comprehensive}},
  label={long}
]{
  colspec={@{}X[halign=l]X[halign=l]X[halign=l]@{}}
}
\toprule
Graph Embedding Technique & Model Type & Algorithm\\
\midrule
\SetCell[r=11]{} Matrix factorization & \SetCell[r=6]{} Graph Laplacian Eigenmaps & Isomap\\
&& ARE \cite{lin2005semantic}\\
&& LPP \cite{he2003locality}\\
&& SLE \cite{gong2014signed}\\
&& HSL \cite{sun2008hypergraph}\\
&& Diffusion maps\\
\cmidrule{2-3}
&\SetCell[r=6]{} Node proximity matrix factorization &LLE \cite{roweis2000nonlinear}\\
&&CMF \\
&&GraRep \cite{cao2015grarep}\\
&&ULGE \cite{nie2017unsupervised}\\
&&FONPE \cite{pang2017flexible}\\
&&SPE \cite{shaw2009structure}\\
\bottomrule
\end{longtblr}

\end{document}
© www.soinside.com 2019 - 2024. All rights reserved.