如何在多行表中设置顶部对齐

如何在多行表中设置顶部对齐

因此,我将longtablemultirow拆分到下一页。这是我的代码:

\documentclass[a4paper,oneside,11pt]{book}
\usepackage[hmargin={3cm,2cm},vmargin={2cm,2cm}]{geometry}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{lipsum}
\usepackage{titlesec}
\usepackage{tabularx}
\usepackage[labelsep=period]{caption}
\titlespacing{\chapter}{0cm}{-1.2cm}{0.7cm}
\titlespacing*{\section}
{0pt}{2ex plus 1ex minus .2ex}{2ex plus .2ex}
\titleformat{\section}
[hang]
{\bfseries}
{\bfseries\thesection}{1ex}{\bfseries}

\begin{document}
    \chapter{Random Text}
    \section{Section Name}
    \lipsum[1-2]
    \vspace*{-5mm}
    \begingroup
    \setlength\extrarowheight{11pt}
    \begin{center}
        \begin{longtable}{|c|c|p{9cm}|}
            \caption{Insert caption here.}
            \label{tabel1}\\
            \hline
            \textbf{No.}&\multicolumn{2}{c|}{\textbf{Text}}\\
            \hline
            \multirow{5}{*}{1}&Row One&Row One One\\
            \cline{2-3}
            &Row 2&Row Two Two\\
            \cline{2-3}
            &Row Three&Row Three Three\\
            \cline{2-3}
            &Row Four&Row Four Four\\
            \cline{2-3}
            &Row Five&Row Five Five\\
            \hline
            \multirow{5}{*}{2}&Row One Again&Row One One Again\\
            \cline{2-3}
            &Row 2&\lipsum[3]\\
            \cline{2-3}
            &Row Three&Row Three Three\\
            \cline{2-3}
            &Row Four&Row Four Four\\
            \cline{2-3}
            &Row Five&Row Five Five\\
            \hline
        \end{longtable}
    \end{center}
    \endgroup
    \vspace*{-12mm}
    \section{Section Name 2}
    \lipsum[1]
\end{document}

问题是:

在此处输入图片描述

如何减少空格(红线)以使表格更整洁?

答案1

在此处输入图片描述

\multirow{1}{*}{1}
    &Row One
        &Row One One\\ \cline{2-3} 

相关内容