在 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}
$$
这段代码的渲染如下:
如何在表格单元格的单词之间添加空格?
您应该在每个单元格中使用
& \text{table header} &
。似乎单元格默认为数学模式,这会删除空格。