mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.07k stars 206 forks source link

Use to render Mathematica Formatted in Browser #740

Open 7fe opened 6 years ago

7fe commented 6 years ago

I am trying to determine a way where you can have 1 block a code in HTML let's say. This would apply to both Mathics and Mathematica. I guess this is a feature request.

Hold[Power[-8, 3^-1]]

Or better yet the BoxData

RowBox[{"Hold", "[", 
RowBox[{"Power", "[", 
RowBox[{
RowBox[{"-", "8"}], ",", 
RowBox[{"3", "^", 
 RowBox[{"-", "1"}]}]}], "]"}], "]"}]]

or mathml code that results in pretty print on the screen which is formatted while allowing you to still get to a form that is evaluatable in mathematica or mathml.

Is the formatting written in JS or python? Ideally I would like to be able to display mathematica code on my site with prettish formatting.

7fe commented 6 years ago

So I have been doing some research into this. This is an alternative idea.

https://github.com/approach0/search-engine

This allows editing of the equations here but I am not sure if we can go backwards from latex to code.

GarkGarcia commented 4 years ago

Hi there. I'm not sure I understand your problem.