Latex 表格 - \smallskip 中断垂直线

Latex 表格 - \smallskip 中断垂直线

我正在创建一个表格,我想使用 来分隔行组\smallskip。但是,在表格的最左侧有一个\multirow单元格,其垂直线现在已断开。

有没有什么好的解决方案?结果图像:

在此处输入图片描述

\documentclass[runningheads]{llncs}
\usepackage{amsmath,amssymb} % define this before the line numbering.
\usepackage{rotating}
\usepackage{multirow}
\usepackage{hhline}
\begin{document}
\pagestyle{headings}
\mainmatter
    \begin{table}[t]    
        \footnotesize 
        \begin{center}
            \label{table:Sequences}
            \setlength{\tabcolsep}{1pt} 
            \begin{tabular}{|c|c|c|c|c|}
                \cline{5-5}
                \cline{5-5}
                \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{|c|}{\textit{blah}}\\
                \cline{5-5}
                \noalign{\smallskip}
                \cline{1-1}\cline{3-3}\cline{5-5}
                \multirow{11}{*}{\centering\begin{turn}{90}\textit{Broken Multirow}\end{turn}  } & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{a}\end{turn}   }      & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}      & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}      & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}\noalign{\smallskip}
                                                                                                            \cline{3-3}     \cline{5-5}
                                                    {} & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{b}\end{turn}     }  & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}\noalign{\smallskip}
                                                                                                            \cline{3-3}     \cline{5-5}
                                                    {} & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{c}\end{turn}     }  & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}\noalign{\smallskip}
                                                                                                            \cline{3-3}     \cline{5-5}
                                                    {} & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{d}\end{turn}     }  & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}
                \cline{1-1}\cline{3-3}\cline{5-5}
            \end{tabular}
        \end{center}
    \end{table}
\end{document}
\pagestyle{headings}
\mainmatter
    \begin{table}[t]    
        \footnotesize 
        \begin{center}
            \label{table:Sequences}
            \setlength{\tabcolsep}{1pt} 
            \begin{tabular}{|c|c|c|c|c|}
                \cline{5-5}
                \cline{5-5}
                \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{|c|}{\textit{blah}}\\
                \cline{5-5}
                \noalign{\smallskip}
                \cline{1-1}\cline{3-3}\cline{5-5}
                \multirow{11}{*}{\centering\begin{turn}{90}\textit{Broken Multirow}\end{turn}  } & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{a}\end{turn}   }      & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}      & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}      & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}\noalign{\smallskip}
                                                                                                            \cline{3-3}     \cline{5-5}
                                                    {} & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{b}\end{turn}     }  & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}\noalign{\smallskip}
                                                                                                            \cline{3-3}     \cline{5-5}
                                                    {} & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{c}\end{turn}     }  & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}\noalign{\smallskip}
                                                                                                            \cline{3-3}     \cline{5-5}
                                                    {} & {} & \multirow{3}{*}{\centering\begin{turn}{90}\textit{d}\end{turn}     }  & {} & { $1$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $2$ } \\           \cline{5-5}
                                                    {} & {} &                                   {}  & {} & { $3$ } \\   \cline{3-3}     \cline{5-5}
                \cline{1-1}\cline{3-3}\cline{5-5}
            \end{tabular}
        \end{center}
    \end{table}
\end{document}

答案1

不要使用 \smallskip,而是hhline使用包,makecell以简化多行单元格的格式化:

    \documentclass[a4paper]{article}
    \usepackage[utf8]{inputenc}
    \usepackage{heuristica} 

    \usepackage{array}
    \usepackage{graphicx} 
    \usepackage{multirow}
    \usepackage{hhline}
    \usepackage{makecell}
    \renewcommand\cellgape{\Gape[6pt]}
    \renewcommand\theadfont{\itshape}

    \begin{document}

    \begin{table}[!h]
    \begin{tabular}{*{3}{| >{\centering\arraybackslash}m{1cm}|}}
    \hhline{|-||-||-|}
    \multirowthead{9}[-0.5\baselineskip]{\rotatebox{90}{\itshape Unbroken Multirow}} &\multirowthead{3}{\rotatebox{90}{Set 1}} & A1 \\%
    \cline{3-3}
        & & B1 \\
    \cline{3-3}
        & & C1 \\
    \hhline{|~|:=::=:} 
    &\multirowthead{3}{\rotatebox{90}{Set 2}} & A2 \\
    \cline{3-3}
        & & B2 \\
    \cline{3-3}
        & & C2 \\
    \hhline{|~|:=::=:} 
    &\multirowthead{3}{\rotatebox{90}{Set 3}} & A3 \\
    \cline{3-3}
        & & B3 \\
    \cline{3-3}
        & &C3 \\
    \hhline{|-||-||-|}
    \end{tabular}
    \end{table}

    \end{document} 

在此处输入图片描述

相关内容