This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-02
Channels
- # adventofcode (63)
- # announcements (21)
- # babashka-sci-dev (1)
- # beginners (24)
- # biff (2)
- # calva (78)
- # cherry (6)
- # clj-commons (3)
- # clj-kondo (7)
- # clojure (91)
- # clojure-austin (2)
- # clojure-bay-area (6)
- # clojure-denmark (1)
- # clojure-europe (45)
- # clojure-nl (1)
- # clojure-norway (16)
- # clojure-portugal (3)
- # clojure-uk (1)
- # clojurescript (20)
- # conjure (11)
- # datalevin (13)
- # datomic (5)
- # emacs (14)
- # etaoin (15)
- # events (7)
- # fulcro (9)
- # funcool (1)
- # honeysql (26)
- # joyride (4)
- # kaocha (3)
- # lambdaisland (2)
- # malli (7)
- # off-topic (22)
- # pathom (29)
- # portal (58)
- # practicalli (8)
- # rdf (25)
- # reagent (14)
- # sci (3)
- # scittle (37)
- # shadow-cljs (10)
- # slack-help (2)
- # spacemacs (7)
- # sql (7)
- # tools-deps (1)
- # xtdb (2)
🌱 https://github.clerk.garden, a simple publishing space for https://clerk.vision notebooks, is officialy available today! Find out about how it works and how to build and publish your Clerk notebooks at https://github.clerk.garden or head to #clerk-garden for questions and suggestions.


Announcing v0.1.0 of mathlive.cljs
! This library provides a #reagent component wrapping the https://cortexjs.io/mathlive/ equation editor. Enter math in a lovely, easy-to-use editor and extract it as LaTeX, MathJSON and many other formats.
Please give the library a try via the https://mentat-collective.github.io/mathlive.cljs/ written with #clerk.
• Clojars: https://clojars.org/org.mentat/mathlive.cljs
• Github: https://github.com/mentat-collective/mathlive.cljs
• cljdoc: https://cljdoc.org/d/org.mentat/mathlive.cljs/0.1.0
• Interactive docs: https://mentat-collective.github.io/mathlive.cljs/
https://user-images.githubusercontent.com/69635/205183928-e0fb6227-c45c-4db7-982d-c8e8a3cb3ee8.gif
As far as you know, will this work in any reagent built cljs frontend?
could be a nice addition to Saite
for sure. @U06C63VL4 i’m working on a layer beyond this that will parse MathJSON into a proper Clojure expression, so you can define proper functions etc with these fields
very nice!
Brilliant! Have you looked at automatically recognizing simple exponents, so 3-x-2 gets parsed as 3x^2? http://tiltonsalgebra.com/#mathpaper
@U0PUGPSFR I like that a lot, and I like your whole site. I’m not sure mathlive can do that out of the box but I’ve asked over at their gitter site, so I’ll know soon! https://gitter.im/cortex-js/community
it’s probably something we could rig up in the :on-change
handler of course, detecting this and implementing that substitution
Oh, I was surfing too casually, did not notice you sit on top of a separate editor! Hope with the RFE pans out! But the code is tricky. eg, if the sequence were 3 x 4 2, we get 3x^42. But after typing the 3x4, the insertion caret stays on the baseline! I have actually toyed with showing two insertion points. 🙂 Fortunately this is just for basic Algebra, so the UX can cater to simpler expressions.
The two cursor comment reminds me of this, @U0PUGPSFR: https://www.hogbaysoftware.com/posts/bike-rich-text/
such a nice idea
Bike addresses some serious pain points!
@U0PUGPSFR looks like you can do it with onInlineShortcut, see this page and search for the first occurrence of that string https://cortexjs.io/mathlive/guides/shortcuts/
Ah, yes:
'eta': {
after:
'nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text',
value: '\\eta',
},
Nice little DSL. I prolly should have done sth like that, that code is a bear! But a static translation will have a problem: in my editor, if we type "x+2" then back up to change to "x-2" and first delete the "+", we get "x2", unconventional but legal, then can type our "-". A static translation of `variable+digit' would convert that to x-squared before I could type the "-"!
FYI, I am thinking of porting my (Common Lisp) maths editor to ClojureDart/Flutter, so I can do sth mathy on mobile. A CLJD version would translate nicely to CLJS.flutter_tex
was straightforward to get working, anyway. Next up is a Common Lisp->Clojure port of the editor.
Practicalli online books moving to mkdocs and material theme, starting with https://practical.li/neovim/ Content can now be edited directly via the website (via GitHub edit links )
Looks awesome, I'm also considering mkdocs-material for #C029PTWD3HR and if that works out, also bb
@U05254DQM Is this out of date or is it also still using gitbook? https://github.com/practicalli/neovim/ is written in markdown and uses GitBook to generate the website via a GitHub action.
On the contribute page, yes that should be updated. I've done a PR from my tablet using the edit ✏️ link on that page, really quite handy, especially for quick fixes.