Is there a library for Visual C ++ that displays mathematical formulas?

I've searched everything, but I can't find anything free that will allow me to just display math formulas in a window. I found one for Visual C ++. Net, but not the API. Is there?

+2


a source to share


3 answers


What format are Math formulas in?



My first impulse would be to try and find a LaTeX library for C ++ that will allow you to render LaTeX to an image. This way you can display most of the basic formulas, but the formulas must be in LaTeX format.

+2


a source


Try ReforMath (http://reformath.webnode.com). Works under Windows and Linux. However, it is incomplete, but it can display multiple items.



+1


a source


What a great question! Yes, now there is: latexpp .

First you need to install VS 2017 Community with a minimum of C ++ features (so it won't take all day).

Then you install Boost using binary (try the latter) .

But you still need to build momentum. Using VS> Tools> Visual Studio Command Prompt. CD to your boost directory and run .\bootstrap.bat

, then .\bjam.exe

. It will take a whole day.

The good news is it still works on Windows 7, 64-bit with the VS 2017 community and the latest 1.6.x.

The Latex library has other requirements and I still haven't tried it, but will post my notes here if there are any hickups.


Make sure all your directories are short eg C:\VisualStudio2017

. However, boost will fail if you use a standard Windows command command unless you do the trick vcvarsall.bat

. VS Command Prompt does this for you, so boost can find your MSVC stuff. Boost will probably fail if you used the default directory and did not use the VS command line.

So again, my boost is in C:\boost_{blah version}

which you should shorten to C:\boost

, assuming you will only be using one version of boost.

One reason is that if you need to add the appropriate directories /bin

to your system Path

, then you won't work if you exceed the length of the value Path

(yes, it has a maximum length). Also the stuff is easy to find and especially from the command line so you can cd

quickly there. If you don't want everything in C:\

, then go for C:\__TOOLS

something short.


I'll post my notes here when I got the LaTeX render.

Notes

  • When building boost with bjam, if it seems to hang for more than 10 minutes on one item, then press ctrl-C

    on the command line once. This seems to untie it without uninstalling.
  • TODO
0


a source







All Articles