Is there a library for Visual C ++ that displays mathematical formulas?
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
a source to share