You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each TexImage widget is an independent rendering "context" in which equation numbering starts over from 1. However in "normal" usage KaTeX can do the expected thing and number equations correctly across environments:
<!DOCTYPE html><html><head><linkrel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-ThssJ7YtjywV52Gj4JE/1SQEDoMEckXyhkFVwaf4nDSm5OBlXeedVYjuuUd0Yua+" crossorigin="anonymous"><scriptdefersrc="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-Bi8OWqMXO1ta+a4EPkZv7bYGIes7C3krGSZoTGNTAnAn5eYQc7IIXrJ/7ck1drAi" crossorigin="anonymous"></script><scriptdefersrc="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script></head><body><p> foo
\begin{equation}
a + b = c
\end{equation}
bar
\begin{equation}
d + e = f
\end{equation}
</p></body></html>
Auto-numbering with "normal" usage of KaTeX is possible because KaTeX has access to the full document, whereas with multiple TexImage widgets the "document" is split up.
It's not clear that there is a way to supply the necessary information to KaTeX to make this work.
The text was updated successfully, but these errors were encountered:
As reported at amake/orgro#42 (comment)
Each
TexImage
widget is an independent rendering "context" in which equation numbering starts over from 1. However in "normal" usage KaTeX can do the expected thing and number equations correctly across environments:Auto-numbering with "normal" usage of KaTeX is possible because KaTeX has access to the full document, whereas with multiple
TexImage
widgets the "document" is split up.It's not clear that there is a way to supply the necessary information to KaTeX to make this work.
The text was updated successfully, but these errors were encountered: