Math in VisualNEO web - Forum

Forum Navigation
You need to log in to create posts and topics.

Math in VisualNEO web

Hi,

How can we type math in the visualNEO Web?

I have seen a sample of math in the below site.

https://www.mathjax.org/#demo

Hi @asmat,

Just add the libraries to your project and use the appropiated syntax according to the MathJax documentation.
I have attached a sample (Libraries added from CDN in Project > Properties > Advanced > Custom Metadata > Head)

Regards.

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

By the way, this is an interesting online editor that makes possible to export to MathML format:
http://visualmatheditor.equatheque.net/

Thank you luishp, this is great!

hi luishp,

I want store a math formula in a variable, I tried this:

SetVar [formula] "$${{n!} \over {r!\left( {n - r} \right)!}}$$"

but when i use this variable with setobjectHTML  command it does not render something that i have expect.
SetObjectHTML "tex" "[formula]"

 

Uploaded files:
  • You need to login to have access to uploads.

@asmat Take a look here:

https://docs.mathjax.org/en/v2.2-latest/typeset.html

Hope it helps!

asmat has reacted to this post.
asmat

Hi luishp,

how i can use the above example without cdn, i mean use in offline mode?

@asmat see attached sample.
Just download the .js file and add it to Project > Properties > Libraries/Files

Uploaded files:
  • You need to login to have access to uploads.
Vadim and asmat have reacted to this post.
Vadimasmat

Hi luishp,

The above example used math ML( its work in html5 without any js) . but I want use mathJax(math Tex).

You can see it in attachment:

 

Uploaded files:
  • You need to login to have access to uploads.

@asmat I have had to follow all the dependencies as the main .js file call other .js files in different folders.
I have used the web browser console to follow step by step the clue for every needed file and/or folder.
See attached file.

Uploaded files:
  • You need to login to have access to uploads.

Hi @luishp,

I have test your sample in firefox and chrome it works good, but when I add  one more formula it does not work.

please see the attached file.

Uploaded files:
  • You need to login to have access to uploads.

Hi @asmat. Please refer to Mathjax documentation to learn how to install it.
In my sample I just added some JavaScript libraries I found in their website by looking at a sample source code but probably I missed some files.

If you look at the Console while running your sample app you will see a message like this one:

Error: Can't load "file:///C:/Users/.../math1/input/tex/extensions/action.js

So it seems an extension file whose name is "action.js" is needed.

Regards.