Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equation numbering in template.v2.js? #122

Open
hrbigelow opened this issue Feb 19, 2020 · 1 comment
Open

Equation numbering in template.v2.js? #122

hrbigelow opened this issue Feb 19, 2020 · 1 comment

Comments

@hrbigelow
Copy link

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

@martinpflaum
Copy link

martinpflaum commented Jul 11, 2021

Hi distill uses katex and you can do equation numbering in katex by using its tag functionality - so \tag{14} f(x) = x*2 should work - i also programmed a compiler from latex articles to distill which does this automatically https://github.com/martinpflaum/latex_to_html

\tag{something} doesn t work in normal latex but was added to katex additionally to exactly make the numbering of the quations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants