無法使用表格在多列內使用 itemize

無法使用表格在多列內使用 itemize

我正在使用 tabulary 套件來建立表(無法使用其他表包,因為 tabulary 已在文件中的其他地方使用)。但由於某種原因,我無法將清單放入多列中。這是我的 MWE:

\documentclass[a4paper,12pt]{book}
\usepackage{tabulary}
\begin{document}
The following is random text for checking table containing itemize with multicolumn
\\ 
\begin{center}
\begin{tabulary}{\textwidth}{|p{4cm}|p{6.5cm}|p{6cm}|}
 \hline
   Text in col1 
& 
\begin{itemize}
  \item item 1
  \item item 2
\end{itemize}
& Text in col 3.  \\ \hline

\multicolumn{3}{|c|}{
   \begin{itemize}
  \item item 1
  \item item 2
\end{itemize}
}\\ \hline

\end{tabulary}
\end{center}
\end{document}

Itemize 在常規列中運作正常,但在多列中則不行。錯誤是:

Runaway argument? { \begin {itemize} \item item 1 \item item 2 \end {itemize} 
! Paragraph ended before \multicolumn was complete.

我究竟做錯了什麼?

相關內容