在 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}