最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to use mathjax from command line? - Stack Overflow

programmeradmin1浏览0评论

I was hoping to use Mathjax to render some mathjax snippets into svg files.

At this point I believe that a mand in the form

<javascript interpter> <Mathjax jax file> 'mathjax snippet here' 

should work, I'm not sure what jax file I'm supposed to pick and how to set the output mode that I want, or how to configure mathjax in general when calling it from the mand line.

I need this because I have to render this math expressions offline without a browser.

I was hoping to use Mathjax to render some mathjax snippets into svg files.

At this point I believe that a mand in the form

<javascript interpter> <Mathjax jax file> 'mathjax snippet here' 

should work, I'm not sure what jax file I'm supposed to pick and how to set the output mode that I want, or how to configure mathjax in general when calling it from the mand line.

I need this because I have to render this math expressions offline without a browser.

Share Improve this question asked May 3, 2014 at 4:33 user2485710user2485710 9,85116 gold badges62 silver badges108 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 5

See this post on the MathJax forum for some code that does this using Phantom.js (there are some subtleties to be considered, so look at the code carefully if you need to modify it). Several others have taken this further. The svgtex project listed in that conversation apparently has been discontinued in favor of the Mathoid project that underlies Wikimedia's latest math support code.

EDIT: there is now the MathJax-node project that uses node.js to run MathJax via the mand line or via your own node.js code.

I think you can use nodejs with some wrappers for MathJax - https://www.npmjs/search?q=Mathjax

Hey I am not expert in mathjax. but i read have read a article on it. I am passing some links to you. One of which is a documentation of it. Hope it helps you. documentation pdf. and second one

发布评论

评论列表(0)

  1. 暂无评论