如何在Latex表格单元格中添加空格?

问题描述 投票:0回答:1

在 Google Colaboratory 中,我可以使用嵌入 Markdown 的 Latex 制作表格。但单词之间有空格,例如

table header
,代码渲染时消失。

$$
\begin{array}{|c|c|c|c|}
\hline
 & table header & table header & table header \\ \hline
table content & table content & table content & table content\\ \hline
\end{array}
$$

这段代码的渲染如下:

如何在表格单元格的单词之间添加空格?

latex google-colaboratory
1个回答
0
投票

您应该在每个单元格中使用

& \text{table header} &
。似乎单元格默认为数学模式,这会删除空格。

© www.soinside.com 2019 - 2024. All rights reserved.