在概念中使用latex表格

2022-05-06

以下示例是关于Tex中包含在概念中使用latex表格用法的示例代码,想了解在概念中使用latex表格的具体用法?在概念中使用latex表格怎么用?在概念中使用latex表格使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

文件名:use latex table in notion[英]:use latex table in notion源码类型:Tex


If you want to create a table in Notion, you can make use of Table block. Default tables in Notion are packed with features which are not always needed. Making a simpler table (like in OneNote or Apple Notes) seems not to be that obvious.

After some research I decided to give Math equation block a try. I figured out that for this block, Notion seems to be using KaTeX under the hood. Math block supports only some TeX functionalities, for example regular \tabular TeX block (a table) did not work there. However, I was able to figure out that the following snipped seems to work:

\begin{array}{|c | c |c |}\hline
     \text{ Hello } & \text{ World } & \text{ From a simple table } \\\hline
     equals()       & true           & false \\\hline
     compare()      & 0              & \text{Here is a text.} \\\hline
     mismatch()     & -1             & \text{ or \textbf{bold} text.} \\\hline
\end{array} 
After pasting this snipped into the Math equation block you should see the following output:

r/Notion - Making a simple table in Notion with Math equation block (LaTeX)


https://www.reddit.com/r/Notion/comments/gforbx/making_a_simple_table_in_notion_with_math/

本文地址:https://www.itbaoku.cn/snippets/785397.html