如何删除表格单元格中列表前的垂直空格?

如何删除表格单元格中列表前的垂直空格?

我想在表格单元格中获得非常紧凑的列表,但第一个列表项之前仍然有一个垂直空间(见下面的屏幕截图)。我该如何删除这个垂直空间?

示例截图

LaTeX 代码示例

\documentclass{scrbook}

\usepackage{array} 
\usepackage{tabularx} 
\usepackage{longtable}
\usepackage{booktabs} 
\usepackage{paralist}

\newenvironment{tcitem}{%
  \setdefaultleftmargin{1em}{1em}{1em}{1em}{1em}{1em}%
  \vspace{-\topsep}%
  \compactitem[-]
}{\raggedright
  \vspace*{-\ht\strutbox}%
  \endcompactitem
}


\begin{document}

\begin{tabularx}{\textwidth}{XXX }
\toprule
Column 1 & Column 2 & Column 3 \\
\midrule
Text in Col 1 
& \begin{tcitem}
\item First item
\item Second item
\item Third item
\end{tcitem}
& \begin{tcitem}
\item Forth item
\item Fifth item
\item Sixth item
\item Seventh item
\end{tcitem}
\\ 
\midrule
Text in second row & no items, no vertical space & no items, no vertical space  \\
\bottomrule
\end{tabularx}

\end{document}

文件列表

 *File List*
 scrbook.cls    2014/10/28 v3.14 KOMA-Script document class (book)
scrkbase.sty    2014/10/28 v3.14 KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
 scrbase.sty    2014/10/28 v3.14 KOMA-Script package (KOMA-Script-independent basics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2014/10/28 v3.14 KOMA-Script package (loading files)
tocbasic.sty    2014/10/28 v3.14 KOMA-Script package (handling toc-files)
scrsize11pt.clo    2014/10/28 v3.14 KOMA-Script font size class option (11pt)
typearea.sty    2014/10/28 v3.14 KOMA-Script package (type area)
   array.sty    2014/10/28 v2.4c Tabular extension package (FMi)
tabularx.sty    2014/10/28 v2.10 `tabularx' package (DPC)
longtable.sty    2014/10/28 v4.11 Multi-page Table package (DPC)
booktabs.sty    2005/04/14 v1.61803 publication quality tables
paralist.sty    2013/06/09 v2.4 Extended list environments
 ***********

答案1

当前文件不显示空间KOMA 3.16,TL2013 的最新 KOMA( )也不显示空间KOMA 3.12。 它显示为KOMA 3.14

相关内容