suzanne.soy
2021-3-23 17:25:01

I upgraded KaTeX (and fixed a small bug with $-mathjax along the way), once this builds https://travis-ci.org/github/jsmaniac/scribble-math/builds/764125150 I’ll merge it into main.


suzanne.soy
2021-3-23 17:25:55

re. referencing equations, how would you do this using KaTeX and MathJax only?


suzanne.soy
2021-3-23 17:27:57

In LaTeX it’s just a \ref{the-tag}, but my knowledge of KaTeX and MathJax has reduced to “black box which renders math”, I have no idea how to expose the defined tags nor how to make reference to those (short of defining a wrapper which puts an anchor and later use a link using scribble’s already-existing anchors and links).


suzanne.soy
2021-3-23 17:29:10

Awesome! Yes, I’m using a Silhouette cutter :smile: although I’ve been so focused on writing plug-ins for FreeCAD that it’s also gathering dust until those are finished :stuck_out_tongue:


suzanne.soy
2021-3-23 17:29:41

I hope to have a way to drive the Silhouette directly from FreeCAD soon(tm).


comer
2021-3-24 00:06:47

Thank you @suzanne.soy , for the upgrade process. I did an update of the scribble-math package (with package manager in DrRacket), and make the former test. That is: with the code: #lang scribble/base @require[scribble-math] @$${\tag{1} x^2+y^2=1} rendering HTML I get the result:


comer
2021-3-24 00:11:10

comer
2021-3-24 00:38:26

May be I should have wait for some process to complete. I apologize, because I don’t know much about Github.

Concerning referencing. Thank you for the reflection. For the moment I was thinking about referring manually. The wrapper (as you said) may be a good option to consider. May be in the future Katex will have support for it. One link that refer to this issue is: https://github.com/KaTeX/KaTeX/issues/2003

Thanks again for all your support concerning the \tag function in HTML, as well as the katex folder path options (in order to have just one katex folder for a group of common scribble documents). Best regards.