I was thinking which would be better to be honest, with PDFs people won't be able to customise the size of the text and the equations, graphs, drawings. But with EPUBs I have to use webtex SVGs which... actually is better but it is still images. And it depends on a webservice (ugh). I was thinking of being able to do it totally locally, but it seems to me that if I were to do that I would have to probably give up and use LaTex. Publishing tex files to be compiled on the users machine. or not. Have to provide multiple PDFs for each device ahahha, that's not fun.
So I thought, I should give up being stubborn and just use webtex SVGs and serve EPUBs on my gemsite. I tried of thinking doing directly in my gemsite but... it seems lagrange, /cannot/ render SVGs. Which... sucks. Nonetheless it isn't configurable, I mean the size of the PNG. Meaning If I were to do that kind of thing I would just have to use the web (ugh again!).
The solution that most would come up with is just to serve EPUBs because most people would like it being on their local machine rather than reading directly online. reading documents online is very neat for small stuff, but when it comes to these mathematical documents you are better off writing long documents with page counters and topic counters so people can quickly jump to the topic (if they know the name).
There are 2 software I recommend, one for desktop and one for android:
Thanks for reading, I will be coming with some Mathematical documents starting next month!