Not quite what you are looking for, but the expresso project contains some 
good tools for representing and manipulating mathematical s-expressions:

https://github.com/clojure-numerics/expresso

If anyone is thinking of writing / building a renderer it would be good to 
co-ordinate on a standard way of representing expressions so that these 
kind of tools can plug+play nicely.

On Saturday, 15 March 2014 11:36:04 UTC+8, t x wrote:
>
> Hi, 
>
>
>   I'm aware of MathJax, JsMath, MathQuill, MathDox. 
>
>
>   However, I'm wondering if anyone have implemented a pure clojure 
> math renderer (not just a binding, but with the actual rendering in 
> Clojure). 
>
>
>
>   What I find frustrating about existing solutions is their 
> im-pureness. The basic idea is: 
>
>   * my cljs code creates a div with some math inside of $\frac{2}{3}$ 
>
>   * I queue some javascript call, which then takes a dom node as 
> input, and through lots of icky stateful destructive updates, replaces 
> the dom element with a bunch of HTML/CSS that represents some math 
>
>
>   What I really want, would be a pure Javascript function, which does 
> something like: 
>
>   (defn magic-func [sexp-representing-math] 
>      ... does some magic ... 
>       .. returns a svg-node-tree which renders the math ...) 
>
>
>   I've spent a few hours of my life searching for this. I have not 
> found anything like it. 
>
>
>   Does anyone know of a piece of software which does something similar? 
>
>
>
> Thanks! 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to