色彩缤纷的长桌和线条宽度的变化。

色彩缤纷的长桌和线条宽度的变化。

我有一张彩色长表。我想更改某些行的线宽。我的意思是\cline。我已经找到了信息,但当我这样做时,我的表格中出现了白色间隙。见下图。我该如何解决我的问题?

感谢帮助。

\documentclass[10pt,a6paper]{article}
%46paper
\usepackage[utf8]{inputenc}
\usepackage[main=slovak,english]{babel}
\usepackage[cm]{fullpage}
\usepackage[a6paper, top=15mm, hmargin=10mm, bottom=10mm,foot=5mm,marginparsep=0mm]{geometry}
%showframe
\usepackage{tipa}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{lscape}
\usepackage{pdflscape}

\usepackage{enumitem}
\usepackage{longtable, tabularx, makecell, multirow, booktabs, hhline}
\usepackage[table, dvipsnames]{xcolor}
\usepackage{mathtools}
%\pagenumbering{alph}
%\pagenumbering{Roman}

\usepackage{ wasysym, marvosym }
\usepackage{fontawesome}
\usepackage{stackengine}
\usepackage{textcomp}
%------------------------------------------------
\usepackage{tikz}
\usepackage{ amssymb }
%---------------------------------------
\usepackage{listings}
\usepackage{framed}
\usepackage{soul}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
%---------------------------------------
% different width of a line
\makeatletter
\def\Cline#1#2{\@Cline#1#2\@nil}
\def\@Cline#1-#2#3\@nil{%
  \omit
  \@multicnt#1%
  \advance\@multispan\m@ne
  \ifnum\@multicnt=\@ne\@firstofone{&\omit}\fi
  \@multicnt#2%
  \advance\@multicnt-#1%
  \advance\@multispan\@ne
  \leaders\hrule\@height#3\hfill
  \cr}
\makeatother
%-------------------------------------

\begin{document}
\catcode`\-=12
\sloppy

\clearpage

{\Large
\begin{longtable}{|p{2cm}|p{2cm}|p{2cm}|}
\hline
\cellcolor{BurntOrange}  ABC & \cellcolor{BurntOrange}                        & \cellcolor{BurntOrange} \\  \Cline{1-1}{1pt}
\cellcolor{BurntOrange}  ABC & \cellcolor{BurntOrange} \multirow{-2}{*}{ABC}  & \cellcolor{BurntOrange} \\  \Cline{1-2}{1pt}
\cellcolor{BurntOrange}  ABC & \cellcolor{BurntOrange}                        & \cellcolor{BurntOrange} \\  \Cline{1-1}{1pt}
\cellcolor{BurntOrange}  ABC & \cellcolor{BurntOrange} \multirow{-2}{*}{ABC}  & \cellcolor{BurntOrange} \multirow{-4}{*}{ABC} \\
\hline
\end{longtable}
}

\end{document} 

在此处输入图片描述

相关内容