gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
164 stars 30 forks source link

Will it work on windows-7? #67

Open lit-uriy opened 7 years ago

lit-uriy commented 7 years ago

Will it work on windows-7?

I tried to run the gem install mathematical, began dependent software installation process. On the program mathematical process fails, the need to install Ruby DevKit, then I found out that is not enough cmake, it was not in the description of dependencies.

At the moment, I do not install cmake, I am in thought - how much more can all be required?

gjtorikian commented 7 years ago

Parts of this gen may not work in Windows. 😢 I have not yet tested it.

I am working to make a Windows-compatible solution but it is taking me a lot of time.

mojavelinux commented 6 years ago

Are there any chances of getting mathematical compiling on Windows? I'm starting to get more and more users asking about it. With AppVeyor, it should be fairly easy to avoid breakages, but the first step is sorting out how to compile it in the first place.

mojavelinux commented 6 years ago

I'll also mention that the VM images provided by Microsoft make it super easy to test on Windows.

See https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

mwischer commented 6 years ago

I just compiled the mathematical on Windows. I had to make some changes in the extconf.rb and CMakeLists.txt. And yeah :+1: it basically works using svg output I now have created AsciiDoc based PDFs with formulas. Using png output with asciidoctor-mathematical the PNG seems to be broken. I'll check this... Are there any suggestions where to place the needed fonts? First I got this kind of warnings:

(ruby.exe:19744): Pango-WARNING **: couldn't load font "cmex10 Not-Rotated 12", falling back to "Sans Not-Rotated 12", expect ugly output.

For testing I just installed cmex10.ttf and it worked. But I would like to place the fonts into an "shared" folder.

gjtorikian commented 6 years ago

I just compiled the mathematical on Windows. I had to make some changes in the extconf.rb and CMakeLists.txt. And yeah 👍 it basically works using svg output I now have created AsciiDoc based PDFs with formulas.

Can you share your diff so I can bring it into the project? Or better still -- provide a pull request? Thanks!

mwischer commented 6 years ago

Yes, I'll clean up the changes and create a pull request

bwklein commented 5 years ago

Yes, I'll clean up the changes and create a pull request

@mwischer did you get a chance to create that pull request yet?

bwittman commented 5 years ago

Yes, I'll clean up the changes and create a pull request

@mwischer Any chance on that pull request? Or send your extconf.rb and CMakeLists.txt to bwittman@gmail.com?

dsisnero commented 4 years ago

@mwischer can you share your changes. Either fork the project so we can pull them or post them here? Thanks