suzanne.soy
2021-3-21 15:12:06

@suzanne.soy has joined the channel


suzanne.soy
2021-3-21 15:33:27

Hi, I did indeed add support for KaTeX (and changed my name since).

I’m not too active on Racket these days (not using it for work and my hobbies mostly involve FreeCAD lately). I’m happy to review & merge proposed changes, but it’s unlikely that I’ll spend much time making changes myself, sorry.

If you open a MR and I don’t reply within a few days I might have missed the notification so please do bug me on and I’ll try to look at it ASAP :)


suzanne.soy
2021-3-21 15:35:51

Not sure I understood, does @$${\tag{1} x^2+y^2=1} fail in some way? Or are you looking for something like @$t[#:tag 1]{x^2+y^2=1} which would produce same result as the former?


soegaard2
2021-3-21 17:02:41

@suzanne.soy Thanks for the update. FreeCAD looks interesting. Are you using it for 3d printing?


comer
2021-3-21 19:14:29

Thank you very much @suzanne.soy for your information concerning @$${\tab{1} x^2+Y2=1}, it worked fine (now I know) for PDF rendering, but for HTML rendering the result is \tag1x²+y²=1 (with "\tag" marked in red). I tried with @$t[#:tab 1]{x^2+y^2=1}, but in my current DrRacket configuration I get the error "$t: unbound identifier" . The following very simple code, is my source: #lang scribble/base @require[scribble-math] @$t[#:tab 1]{x^2+y^2=1} Thanks again for your support, and for any suggestion on how to proceed. Also, congratulations for your involvement with freeCAD, it looks like a great project. I wonder if in the future we can have some connection to freeCAD from Racket, as in the case with Asymptote. Or may be, some kind of access from Racket, the way http://web.ist.utl.pt/antonio.menezes.leitao/Rosetta/about/about.html\|Rosetta. connect with other CAD environments. Best regards.


suzanne.soy
2021-3-21 19:38:58

Oh, @$t does not exist, I was asking if you wanted some “shortcut” like this. Sorry about the confusion.


suzanne.soy
2021-3-21 19:39:46

In the source of the HTML, does the \tag{1} appear properly, or is it somehow damaged (e.g. the {} might have disappeared or something)


suzanne.soy
2021-3-21 19:40:43

scribble-math doesn’t define \tag or \boxed or anything like that, it just copies the contents as-is to be interpreted by LaTeX or KaTeX


suzanne.soy
2021-3-21 19:41:10

It’s quite possible that \tag was added by KaTeX “recently”, and scribble-math may be using an outdated version


suzanne.soy
2021-3-21 19:41:55

You can check that by replacing the .js with a more recent version after generating the HTML, or copying from the source of the HTML and trying online.


suzanne.soy
2021-3-21 19:42:31

If that’s indeed the issue, I’ll try to find a bit of time to look at how KaTeX was supposed to be updated in scribble-math.


soegaard2
2021-3-21 19:51:01

That could be it. I think both \tag and \boxed are “recent”.


suzanne.soy
2021-3-21 20:03:41

I’m using it for cutting 2D cardstock (I have a small CNC for paper and card) and then fold+assemble to make 3D objects :slightly_smiling_face: Hope things are going well for you and in the community here!


soegaard2
2021-3-21 20:12:20

Sounds like a fun project. I’ve got a small “Silhouette” paper cutter, but I am afraid it is just collecting dust.