在 tabu“X”环境中强制换行

在 tabu“X”环境中强制换行

我想在 tabu 'X' 列中强制换行。使用\newline强制换行,但会包含一些虚线间距,导致文本不再居中。

我尝试过将\\两者结合使用minipage,但makebox没有成功——两者都出现错误并且无法编译。

\documentclass{article}
\usepackage{tabu}

\begin{document}
\SweaveOpts{concordance=TRUE}

\begin{table}
\begin{tabu} to 4in{|X[1,c,m]|X[3,c,m]|}
\hline
Column 1 & Column 2 \\
Some text & Three lines \newline of text \newline here \\
\hline
\end{tabu}
\end{table}

\end{document}

在此处输入图片描述

相关内容