Any possibility of translating MathJax to C/C++?

379 views
Skip to first unread message

ardi

unread,
Jul 9, 2015, 11:26:03 AM7/9/15
to mathja...@googlegroups.com
After some search, I learnt it's quite complicated to translate JavaScript to C or C++, due to the dynamic nature of the language.

However, considering that I'm only interested in displaying LaTeX math from an offline application, without requiring a browser, and with fast performance, I'm wondering if I'd just need an small part of the MathJax code and, if affirmative, whether it would be feasible for me to translate it to C/C++ by some means.

Embedding a JavaScript engine in my app involves some difficulties that I'd prefer to avoid.

If there's some hope, please tell!!

William F Hammond

unread,
Jul 9, 2015, 1:23:10 PM7/9/15
to mathja...@googlegroups.com
blahtex/blahtexml may not be quite what you want, but might be a start.
http://gva.noekeon.org/blahtexml/


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

will.c...@gmail.com

unread,
Jul 18, 2016, 12:02:58 PM7/18/16
to MathJax Users
This post is fairly old, but we've been working on a C++ library that does exactly what you need. Its based on a library we originally developed for an Excel pluging (called fxRender) that converted excel equations into readable images of the equation. Following various requests to provide the same within embedded environments, we've gone onto develop a C++ implementation. We're still testing and ensure the code works across all platforms; but we aim to release a version this autumn. It'll be availabel on www.codecogs.com. Only 1 year and 3 months after your original request! Will

Christophe Bal

unread,
Jul 18, 2016, 12:26:28 PM7/18/16
to mathja...@googlegroups.com

Hello.

Do you know that LaTeX allows to produce cropped images ? Take à look ar "standalone".


--
Reply all
Reply to author
Forward
0 new messages