It seems that all that need to do is to claim widget: mathjax
in the title page. But I can't get the formulas correctly rendered. Anything missing? Thank you.
UPDATE: I checked the final index.html
, and found that many "*"'s have become <em>
or </em>
.
It seems that slidify is mixing the *
in LaTeX and the *
in markdown.
Here is my LaTeX snippet:
\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*}
which is converted to
<li>Inference
$$\begin{align<em>}
&\begin{bmatrix}
\mathbf{y}\
y_</em>
\end{bmatrix}
=\mathcal{N}\left(0,\begin{bmatrix}
K & K<em>*\
K</em><em>^T & K_{</em><em>}
\end{bmatrix}\right)\
\Longrightarrow & 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 & \overline{y<em>*}=K</em><em>K^{-1}\mathbf{y}
\end{align</em>}$$</li>
</ul>
UPDATE 2: I substituted the _
for _
and *
for *
, as well as \\
for some \
. And it looks quite good now:
$$\\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_*\big|\mathbf{y}\sim\mathcal{N}\left(K_*K^{-1}\mathbf{y},K_{**}-K_*K^{-1}K_*^T\right)\\\\
\Longrightarrow & \bar{y}_*=K_*K^{-1}\mathbf{y}
\\end{align*}$$
markdown
package to convert markdown into html. I have never used\begin{align*}
in my equations and am not sure what breaks it. I will check and post back if I have an answer. – Eugeniusz^
s turn into<sup>
s, which didn't happen yesterday. I think it is because the commandoptions(markdown.extensions = c("no_intra_emphasis", "tables", "fenced_code", "autolink", "strikethrough", "lax_spacing", "space_headers", "latex_math"))
has not been executed when my RStudio starts up. So am I missing some options? Thank you. – PincushionsessionInfo()
and I can take a look. – Eugeniusz^
and*
get converted into<em>
and<sup>
tags. – FurzesessionInfo()
on the github repo for slidify. I checked just now and it works perfectly for me. – Eugeniusz