Lon*_*Rob 9 latex ipython-notebook jupyter-notebook
根据这个Rich Display System的例子,Jupyter笔记本可以使用%%latex
细胞魔法显示乳胶.
使用align
环境给出的示例在我的system(Notebook Server 3.2.0-8b0eef4
)上运行正常,但是当我尝试显示a tabular
或a时table
,结果就是很好地排版Latex代码!
我需要添加一些序言来使这项工作成功吗?
回答
Jupyter基于MathJax构建并引用“ MathJax不实现表格形式 ”。该链接还将推荐的阵列环境显示为表格替换形式。
解决方法:
乳胶也可以在Markdown单元中使用(Celltype Markdown而不是Code)。您可以选择单元格旁边的左侧区域,然后按“ m”键或通过顶部菜单中的“单元格”>“单元格类型”。然后,您可以将html用于表格。
<table>
<tr>
<td>
\begin{eqnarray}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\end{eqnarray}
</td>
<td>
\begin{eqnarray}
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{eqnarray}
</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
Markdown单元被渲染,因此您看不到生成渲染乳胶的代码。相反,您只看到渲染的版本,直到双击它。另外,您还可以选择Markdown表
归档时间: |
|
查看次数: |
7756 次 |
最近记录: |