如何在Slidify中使用MathJax?

ziy*_*ang 6 markdown slidify

似乎所有需要做的就是widget: mathjax在标题页中声明.但我无法正确渲染公式.有什么遗失?谢谢.

在此输入图像描述

更新:我检查了决赛index.html,发现许多"*"已成为<em></em>.似乎滑动混合了*LaTeX和*降价.

这是我的LaTeX片段:

\begin{align*}
&\begin{bmatrix}
\mathbf{y}\\
y_*
\end{bmatrix}
=\mathcal{N}\left(0,\begin{bmatrix}
K & K_*\\
K_*^T & K_{**}
\end{bmatrix}\right)\\
\Longrightarrow & y_*|\mathbf{y}\sim\mathcal{N}\left(K_*K^{-1}\mathbf{y},K_{**}-K_*K^{-1}K_*^T\right)\\
\Longrightarrow & \overline{y_*}=K_*K^{-1}\mathbf{y}
\end{align*}
Run Code Online (Sandbox Code Playgroud)

转换为

<li>Inference
$$\begin{align<em>}
&amp;\begin{bmatrix}
\mathbf{y}\
y_</em>
\end{bmatrix}
=\mathcal{N}\left(0,\begin{bmatrix}
K &amp; K<em>*\
K</em><em>^T &amp; K_{</em><em>}
\end{bmatrix}\right)\
\Longrightarrow &amp; y_</em>|\mathbf{y}\sim\mathcal{N}\left(K<em>*K^{-1}\mathbf{y},K</em>{*<em>}-K<em>*K^{-1}K</em></em>^T\right)\
\Longrightarrow &amp; \overline{y<em>*}=K</em><em>K^{-1}\mathbf{y}
\end{align</em>}$$</li>
</ul>
Run Code Online (Sandbox Code Playgroud)

更新2:我替换了&#95;for _&#42;for *,以及\\for some \.现在看起来很不错:

$$\\begin{align&#42;}
&\\begin{bmatrix}
\mathbf{y}\\\\
y&#95;&#42;
\\end{bmatrix}
=\mathcal{N}\left(0,\begin{bmatrix}
K & K&#95;&#42;\\\\
K&#95;&#42;^T & K&#95;{&#42;&#42;}
\\end{bmatrix}\right)\\\\
\Longrightarrow & y&#95;&#42;\big|\mathbf{y}\sim\mathcal{N}\left(K&#95;&#42;K^{-1}\mathbf{y},K&#95;{&#42;&#42;}-K&#95;&#42;K^{-1}K&#95;&#42;^T\right)\\\\
\Longrightarrow & \bar{y}&#95;&#42;=K&#95;&#42;K^{-1}\mathbf{y}
\\end{align&#42;}$$
Run Code Online (Sandbox Code Playgroud)