template
template copied to clipboard
Equation numbering in template.v2.js?
Hi,
Is there a way to add equation numbers to code below? And more generally API documentation on what markdown is available inside <d-math>
and <d-math block>
tags?
<d-math block>
\begin{aligned}
\mathbb{E}_{z \sim q_\phi(z|x)}[
\log \dfrac{p_\theta(x, z)}{q_\phi(z|x)} + \log
\dfrac{q_\phi(z|x)}{p_\theta(z|x)}]
\end{aligned}
</d-math>
A fuller example is here
Thanks very much!
Henry
Hi distill uses katex and you can do equation numbering in katex by using its tag functionality - so
\tag{something} doesn t work in normal latex but was added to katex additionally to exactly make the numbering of the quations