【发布时间】:2014-03-14 00:28:07
【问题描述】:
在 iPython 中,可以使用由 MathJax 解释的 Latex 语法编写方程。
但现在我还想在 iPython 中做其他花哨的乳胶东西,比如用一些乳胶包编写伪代码。有没有可能在 iPython 中写这样的东西?
例子:
%%latex
\usepackage[]{algorithmicx}
\begin{algorithmic}
\If {$i\geq maxval$}
\State $i\gets 0$
\Else
\If {$i+k\leq maxval$}
\State $i\gets i+k$
\EndIf
\EndIf
\end{algorithmic}
【问题讨论】:
标签: jupyter-notebook latex pseudocode