我正在使用表格环境。我希望一行(我在其中描述每个小节)水平横跨表格,而不是停留在一列中。这是我目前拥有的:
\begin{center}
\begin{tabular}{p{4cm} p{13cm}}
\textbf{Table 1} I would like this to go across the table and not stay in column 1\\ \hline
\textit{Predisposing factors} \\ \hline
variable 1 & description \\
variable 2 & description \\
variable i & description \\
\textit{I would like this to go across the table as well} \\
\end{tabular}
\end{center}
我将非常感激您的帮助。
答案1
\begin{center}
\begin{table}
\begin{tabular}{p{4cm} p{13cm}}
\multicolumn{2}{l}{\textbf{Table 1} This will now go across the table} \hline
\textit{Predisposing factors} \\ \hline
variable 1 & description \\
variable 2 & description \\
variable i & description \\
\end{tabular}
\end{table}
\end{center}