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
Originally posted by mbourne June 15, 2022
It's been a long while since I used KaTeX "from scratch" so I made use of the Starter Template on this page: https://katex.org/docs/browser.html
I placed some equations in the body and loaded the page, but it just showed the equations as text. It turned out it was the issue I reported on the default delimiters - the environments I was using happened to not be in that default list. There was no error message since KaTeX just thought the page was devoid of math and I was stumped until I tried a few $$ ... $$ equations, which did work OK.
It would have helped if the Starter Template was a bit more extensive and included a body with some examples that will actually work out of the box, and a note that if other environments were required, to add an options object, as per https://katex.org/docs/autorender.html (or, if all supported environments were included in the defaults, as I mentioned.)
This will help people who are brand new to the library, I believe.
I'm sorry if this is documented somewhere and I missed it.
"Nobody really understands git." I tried to create a PR but "Create pull request" was greyed out and life is short.
So here are 2 suggested templates for possible inclusion. The first is basic, intended for super-nubies. The second is a bit more extensive. If you end up including all supported environments in the default delimiters in the auto-render script, then I'll re-do the second one.
Discussed in #3660
Originally posted by mbourne June 15, 2022
It's been a long while since I used KaTeX "from scratch" so I made use of the Starter Template on this page: https://katex.org/docs/browser.html
I placed some equations in the
body
and loaded the page, but it just showed the equations as text. It turned out it was the issue I reported on the default delimiters - the environments I was using happened to not be in that default list. There was no error message since KaTeX just thought the page was devoid of math and I was stumped until I tried a few$$ ... $$
equations, which did work OK.It would have helped if the Starter Template was a bit more extensive and included a
body
with some examples that will actually work out of the box, and a note that if other environments were required, to add anoptions
object, as per https://katex.org/docs/autorender.html (or, if all supported environments were included in the defaults, as I mentioned.)This will help people who are brand new to the library, I believe.
I'm sorry if this is documented somewhere and I missed it.
@mbourne feel free to submit a PR that replaces the
...
in https://katex.org/docs/browser.html#starter-template with a<body>
that has some actual math in it!The text was updated successfully, but these errors were encountered: